You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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`.
2 years ago
..
actions Handle canceled workflow as a warning instead of a fail (#24282) 2 years ago
agit add user rename endpoint to admin api (#22789) 2 years ago
asymkey Add context cache as a request level cache (#22294) 2 years ago
attachment Preserve file size when creating attachments (#23406) 2 years ago
auth Update LDAP filters to include both username and email address (#24547) 2 years ago
automerge Add force_merge to merge request and fix checking mergable (#23010) 2 years ago
context Use User.ID instead of User.Name in ActivityPub API for Person IRI (#23823) 2 years ago
convert Display when a repo was archived (#22664) 2 years ago
cron Add Cargo package registry (#21888) 2 years ago
externalaccount Implement FSFE REUSE for golang files (#21840) 2 years ago
forms Add RPM registry (#23380) 2 years ago
gitdiff Simplify template helper functions (#24570) 2 years ago
issue Use more specific test methods (#24265) 2 years ago
lfs Fix auth check bug (#24382) 2 years ago
mailer Add ntlm authentication support for mail (#23811) 2 years ago
markup Implement FSFE REUSE for golang files (#21840) 2 years ago
migrations Improve test logger (#24235) 2 years ago
mirror Fill head commit to in payload when notifying push commits for mirroring (#23215) 2 years ago
org Implement FSFE REUSE for golang files (#21840) 2 years ago
packages Add RPM registry (#23380) 2 years ago
pull Refresh the refernce of the closed PR when reopening (#24231) 2 years ago
release Delete deleted release attachments immediately from storage (#23913) 2 years ago
repository Fix unclear `IsRepositoryExist` logic (#24374) 2 years ago
task Implement FSFE REUSE for golang files (#21840) 2 years ago
user add user rename endpoint to admin api (#22789) 2 years ago
webhook Merge setting.InitXXX into one function with options (#24389) 2 years ago
wiki Improve wiki user title test (#24559) 2 years ago