Skip to content

The webhook related API cannot cover all events in the update scenario #19250

Closed
@XiaoBoya

Description

@XiaoBoya

Description

https://github.com/go-gitea/gitea/blob/main/routers/api/v1/utils/hook.go
In the addHook method, if the passed parameter includes pull_request, all events related to pr will be checked. But there is no way to select events such as PullRequestSync in editHook. This results in no way to manipulate all events through the update operation when updating the webhook.

Gitea Version

branch:master

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions