0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:06:38 +01:00
gitea/models/issues
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
..
assignees_test.go
assignees.go
comment_code.go
comment_list.go
comment_test.go
comment.go
content_history_test.go
content_history.go
dependency_test.go
dependency.go
issue_index.go
issue_list_test.go
issue_list.go
issue_lock.go
issue_project.go
issue_test.go
issue_user_test.go
issue_user.go
issue_watch_test.go
issue_watch.go
issue_xref_test.go
issue_xref.go
issue.go
label_test.go
label.go
main_test.go Merge setting.InitXXX into one function with options (#24389) 2023-05-04 11:55:35 +08:00
milestone_test.go
milestone.go
pull_list.go Refresh the refernce of the closed PR when reopening (#24231) 2023-05-08 14:39:32 +08:00
pull_test.go Refresh the refernce of the closed PR when reopening (#24231) 2023-05-08 14:39:32 +08:00
pull.go Refresh the refernce of the closed PR when reopening (#24231) 2023-05-08 14:39:32 +08:00
reaction_test.go
reaction.go
review_test.go
review.go
stopwatch_test.go
stopwatch.go
tracked_time_test.go
tracked_time.go