0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-11 02:24:44 +01:00
gitea/services
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
agit
asymkey Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
attachment
auth
automerge
context
convert
cron
externalaccount
forms
gitdiff
issue
lfs
mailer
markup
migrations
mirror
org
packages
pull Refresh the refernce of the closed PR when reopening (#24231) 2023-05-08 14:39:32 +08:00
release
repository
task
user
webhook
wiki