1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-15 06:04:32 -04: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 Handle canceled workflow as a warning instead of a fail (#24282) 2023-04-23 14:41:55 -04:00
agit
asymkey
attachment
auth Update LDAP filters to include both username and email address (#24547) 2023-05-05 14:18:53 -04:00
automerge
context
convert Display when a repo was archived (#22664) 2023-04-26 10:46:26 -04:00
cron
externalaccount
forms Add RPM registry (#23380) 2023-05-05 20:33:37 +00:00
gitdiff Simplify template helper functions (#24570) 2023-05-07 09:49:46 +00:00
issue
lfs Fix auth check bug (#24382) 2023-04-27 22:43:27 +02:00
mailer Add ntlm authentication support for mail (#23811) 2023-05-02 17:40:46 -04:00
markup
migrations
mirror
org
packages Add RPM registry (#23380) 2023-05-05 20:33:37 +00:00
pull Refresh the refernce of the closed PR when reopening (#24231) 2023-05-08 14:39:32 +08:00
release
repository Fix unclear IsRepositoryExist logic (#24374) 2023-04-28 14:14:26 -04:00
task
user
webhook Merge setting.InitXXX into one function with options (#24389) 2023-05-04 11:55:35 +08:00
wiki Improve wiki user title test (#24559) 2023-05-06 11:24:18 +00:00