Webhook deleting branch considered a push #4990

Closed
opened 2025-11-02 06:10:15 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @iarepandemonium on GitHub (Mar 2, 2020).

  • Gitea version (or commit ref): 1.11+ (We built a develop version of 1.12 that isnt released.)
  • Git version:
  • Operating system: Ubuntu
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

When I delete a branch its considered a push to the branch instead of deleting. Same with if a PR gets syncronized, its considered a push. If its accurate for them to be pushed, it would be helpful if deleting a branch ALSO had the 'action' field, that way I can filter it out so it doesn't built on my pipeline when i delete branches.
...

Screenshots

Originally created by @iarepandemonium on GitHub (Mar 2, 2020). - Gitea version (or commit ref): 1.11+ (We built a develop version of 1.12 that isnt released.) - Git version: - Operating system: Ubuntu - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X] Not relevant - Log gist: ## Description When I delete a branch its considered a push to the branch instead of deleting. Same with if a PR gets syncronized, its considered a push. If its accurate for them to be pushed, it would be helpful if deleting a branch ALSO had the 'action' field, that way I can filter it out so it doesn't built on my pipeline when i delete branches. ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 06:10:15 -06:00
Author
Owner

@svenborn commented on GitHub (Apr 2, 2020):

Same for me. I've configured the webhook to only be triggered on Create and Push Events but the webhook is always triggered on Delete Events (git push -d origin branch).

image

@svenborn commented on GitHub (Apr 2, 2020): Same for me. I've configured the webhook to only be triggered on _Create_ and _Push Events_ but the webhook is always triggered on _Delete Events_ (git push -d origin branch). ![image](https://user-images.githubusercontent.com/38210667/78224105-3a61f180-74c8-11ea-85f6-f1dca8af63dc.png)
Author
Owner

@stale[bot] commented on GitHub (Jun 2, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Jun 2, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@iarepandemonium commented on GitHub (Jun 2, 2020):

Still would like a resolution to this issue

On Tue, Jun 2, 2020 at 2:47 AM stale[bot] notifications@github.com wrote:

This issue has been automatically marked as stale because it has not had
recent activity. I am here to help clear issues left open even if solved or
waiting for more insight. This issue will be closed if no further activity
occurs during the next 2 weeks. If the issue is still valid just add a
comment to keep it alive. Thank you for your contributions.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/go-gitea/gitea/issues/10578#issuecomment-637317618,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB7R7JO57R4PG4I2PJD6M5TRUSN7VANCNFSM4K7ZC72A
.

--
Kimberly Boynton
Umass Amherst '14

@iarepandemonium commented on GitHub (Jun 2, 2020): Still would like a resolution to this issue On Tue, Jun 2, 2020 at 2:47 AM stale[bot] <notifications@github.com> wrote: > This issue has been automatically marked as stale because it has not had > recent activity. I am here to help clear issues left open even if solved or > waiting for more insight. This issue will be closed if no further activity > occurs during the next 2 weeks. If the issue is still valid just add a > comment to keep it alive. Thank you for your contributions. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/go-gitea/gitea/issues/10578#issuecomment-637317618>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AB7R7JO57R4PG4I2PJD6M5TRUSN7VANCNFSM4K7ZC72A> > . > -- *Kimberly Boynton* *Umass Amherst '14*
Author
Owner

@stale[bot] commented on GitHub (Aug 1, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Aug 1, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@zeripath commented on GitHub (Sep 5, 2020):

Fixed by #12212

@zeripath commented on GitHub (Sep 5, 2020): Fixed by #12212
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4990