1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-19 00:14:56 +01:00
gitea/models
sillyguodong e962ade99c
Refresh the refernce of the closed PR when reopening (#24231)
Close #24213 
Replace #23830

#### Cause

- Before, in order to making PR can get latest commit after reopening,
the `ref`(${REPO_PATH}/refs/pull/${PR_INDEX}/head) of evrey closed PR
will be updated when pushing commits to the `head branch` of the closed
PR.

#### Changes

- For closed PR , won't perform these behavior: insert`comment`, push
`notification` (UI and email), exectue
[pushToBaseRepo](7422503341/services/pull/pull.go (L409))
function and trigger `action` any more when pushing to the `head branch`
of the closed PR.
- Refresh the reference of the PR when reopening the closed PR (**even
if the head branch has been deleted before**). Make the reference of PR
consistent with the `head branch`.
2023-05-08 14:39:32 +08:00
..
actions
activities
admin
asymkey Merge setting.InitXXX into one function with options (#24389) 2023-05-04 11:55:35 +08:00
auth
avatars
db
dbfs Merge setting.InitXXX into one function with options (#24389) 2023-05-04 11:55:35 +08:00
fixtures
git
issues Refresh the refernce of the closed PR when reopening (#24231) 2023-05-08 14:39:32 +08:00
migrations Merge setting.InitXXX into one function with options (#24389) 2023-05-04 11:55:35 +08:00
organization
packages Add RPM registry (#23380) 2023-05-05 20:33:37 +00:00
perm
project
pull
repo
secret
system
unit Require at least one unit to be enabled (#24189) 2023-05-06 17:39:06 +08:00
unittest Merge setting.InitXXX into one function with options (#24389) 2023-05-04 11:55:35 +08:00
user
webhook Fix incorrect webhook time and use relative-time to display it (#24477) 2023-05-03 19:53:43 -04:00
error.go
fixture_generation.go
fixture_test.go
main_test.go Merge setting.InitXXX into one function with options (#24389) 2023-05-04 11:55:35 +08:00
migrate_test.go
migrate.go
org_team_test.go
org_team.go
org_test.go
org.go
repo_collaboration_test.go
repo_collaboration.go
repo_test.go
repo_transfer_test.go
repo_transfer.go
repo.go Require at least one unit to be enabled (#24189) 2023-05-06 17:39:06 +08:00