Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Patch] Fix closed PR also triggers Webhooks and actions #23782

Merged
merged 5 commits into from
Mar 30, 2023

Conversation

sillyguodong
Copy link
Contributor

@sillyguodong sillyguodong commented Mar 29, 2023

Fix #23707
Cause by #23189
This PR is a quick fix that, when pushing commits to closed PR, webhook and actions also be triggered.

@lunny lunny added type/bug outdated/backport/v1.19 This PR should be backported to Gitea 1.19 labels Mar 29, 2023
@silverwind
Copy link
Member

silverwind commented Mar 29, 2023

Was there an open issue for this? I think preferences may vary on this one and we may need an option to control this behaviour.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 29, 2023
@jolheiser
Copy link
Member

Was there an open issue for this? I think preferences may vary on this one and we may need an option to control this behaviour.

#23707

@silverwind
Copy link
Member

Do we know GitHub behaviour? Do they run CI on closed PRs?

@sillyguodong
Copy link
Contributor Author

Do we know GitHub behaviour? Do they run CI on closed PRs?

On GH, only open PR will trigger action

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 30, 2023
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 30, 2023
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 30, 2023
@lunny lunny added this to the 1.20.0 milestone Mar 30, 2023
@lunny lunny merged commit 35cb786 into go-gitea:main Mar 30, 2023
@jolheiser jolheiser removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 30, 2023
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request Mar 31, 2023
)

Fix go-gitea#23707 
Cause by go-gitea#23189
This PR is a quick fix that, when pushing commits to closed PR, webhook
and actions also be triggered.
@GiteaBot GiteaBot added the backport/done All backports for this PR have been created label Mar 31, 2023
zjjhot added a commit to zjjhot/gitea that referenced this pull request Mar 31, 2023
* upstream/main:
  [skip ci] Updated translations via Crowdin
  Fix dropdown direction behavior (go-gitea#23806)
  Fix incorrect/Improve error handle in edit user page (go-gitea#23805)
  Fix "Updating branch by merge" bug in "update_branch_by_merge.tmpl" (go-gitea#23790)
  Fix incorrect visibility dropdown list in add/edit user page (go-gitea#23804)
  Convert issue list checkboxes to native (go-gitea#23596)
  Fix checks for `needs` in Actions (go-gitea#23789)
  Diff improvements (go-gitea#23553)
  [Patch] Fix closed PR also triggers Webhooks and actions (go-gitea#23782)
  Improve backport-locales.go (go-gitea#23807)
  [skip ci] Updated translations via Crowdin
  Refactor commit status for Actions jobs (go-gitea#23786)
  Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict (go-gitea#23766)
  Don't apply the group filter when listing LDAP group membership if it is empty (go-gitea#23745)
lunny pushed a commit that referenced this pull request Mar 31, 2023
…3834)

Backport #23782 by @sillyguodong

Fix #23707 
Cause by #23189
This PR is a quick fix that, when pushing commits to closed PR, webhook
and actions also be triggered.

Co-authored-by: sillyguodong <33891828+sillyguodong@users.noreply.github.com>
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
@sillyguodong sillyguodong deleted the patch/fix_webhook_action_tirgger branch July 11, 2023 08:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. outdated/backport/v1.19 This PR should be backported to Gitea 1.19 type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Closed PRs trigger synchronize webhooks when new PR with same branch name is created
6 participants