You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have no checks for whether we can open or close an issue which causes some bugs like #25883.
I notice that #25883 is not enough to fix this problem, as we also have api of changing issue status
and not only merged PRs but also PRs with deleted branch.
If you created a new branch with the same branch name, the Commits and Files Changed will be broken: https://try.gitea.io/yp05327/testrepo/pulls/8
But you can access Files Changed page, and get a strange block here:
Maybe we should discuss a summary about when we should not open/close an issue at first, and then fix it.
Gitea Version
latest
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
build
Database
None
The text was updated successfully, but these errors were encountered:
Description
We have no checks for whether we can open or close an issue which causes some bugs like #25883.
I notice that #25883 is not enough to fix this problem, as we also have api of changing issue status
and not only merged PRs but also PRs with deleted branch.
You can see that I reopened this PR but the branch is already deleted here:
![image](https://private-user-images.githubusercontent.com/18380374/255772385-4d140b1a-fdbb-4a7f-9ed1-d239ca6f25d3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NzcyNjAsIm5iZiI6MTczOTk3Njk2MCwicGF0aCI6Ii8xODM4MDM3NC8yNTU3NzIzODUtNGQxNDBiMWEtZmRiYi00YTdmLTllZDEtZDIzOWNhNmYyNWQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE0NTYwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdmYTViMTFhODA3YjlhNTg3NmMzZmYzYTgzM2EyZGFlNjViNmFkYzUzZjgwMDJiNTU4NzFmYTRiMzBiZmU1NjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.zoyGeW6KOKcdoCYNdYlQoiRkkY7RHF2BF0Vpzg_P1ig)
https://try.gitea.io/yp05327/testrepo/pulls/7
Normally we can not open it in the PR view page, but you can do it in the issue list(select one, then click open/close button)
![image](https://private-user-images.githubusercontent.com/18380374/255772323-74734c3b-f0a8-4cbe-8069-118a885d431a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NzcyNjAsIm5iZiI6MTczOTk3Njk2MCwicGF0aCI6Ii8xODM4MDM3NC8yNTU3NzIzMjMtNzQ3MzRjM2ItZjBhOC00Y2JlLTgwNjktMTE4YTg4NWQ0MzFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE0NTYwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBjZWI0NTI2MWE5MWI1ZDc2YTAzNzliYzc1ODBiZDYxNGYwNGRhMjI5NjExZWQ1ZDBhN2NiMTAzOGQzZjhmZjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.sF0tFNmK63YPeMXhTGYeEai9kIhU_rSZZmpiYDBCZUk)
https://try.gitea.io/yp05327/testrepo/pulls/9
If you created a new branch with the same branch name, the
![image](https://private-user-images.githubusercontent.com/18380374/255772728-2be6844d-b54e-4282-bd21-deadd20416bc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NzcyNjAsIm5iZiI6MTczOTk3Njk2MCwicGF0aCI6Ii8xODM4MDM3NC8yNTU3NzI3MjgtMmJlNjg0NGQtYjU0ZS00MjgyLWJkMjEtZGVhZGQyMDQxNmJjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE0NTYwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRlOTczYzA0MWRlNTAyZDllMzJlZDkyMjcyM2ZlNzIzNTg2N2NmNTFhNGJiYWQ4ZmJlODZmZmFjYmE5MGMwZDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Y53ii5lN-feZtNQv47n6cn3CG0sRE1-aYVnJpsc3IUc)
![image](https://private-user-images.githubusercontent.com/18380374/255772925-abc085a2-87d1-49c7-aaa3-98928c1959f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NzcyNjAsIm5iZiI6MTczOTk3Njk2MCwicGF0aCI6Ii8xODM4MDM3NC8yNTU3NzI5MjUtYWJjMDg1YTItODdkMS00OWM3LWFhYTMtOTg5MjhjMTk1OWY1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE0NTYwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwZjlhYWEwZGY3YmE3M2M4MDE1MGU0MDM1YTAwZmY5ZTM5ODhkMTRlZjlhODk5ZjRkOTIwNmZlNDU0MjY1Y2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ElSU4FhAPGiBXnDzmy9KL49ZK8f_QOiizyU1u0SqVg4)
Commits
andFiles Changed
will be broken:https://try.gitea.io/yp05327/testrepo/pulls/8
But you can access
Files Changed
page, and get a strange block here:Maybe we should discuss a summary about when we should not open/close an issue at first, and then fix it.
Gitea Version
latest
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
build
Database
None
The text was updated successfully, but these errors were encountered: