Skip to content

Used API to create a new webhook and the "events" are wrong #35462

Description

@Mo0rBy

Description

Hello, I am creating a library of API requests so that myself and my team can more easily (and possibly create an automated way later) manage our Gitea instance.

I just tried creating a new webhook on a repository using the API and it worked, but the webhook events that were added were completely incorrect.
Now, this could be a sort of regex thing where the "events" field is being read and adding all possible events that fit it.
I only wanted to use "pull_request", but ALL the different "pull_request*" options were added.

Please see the screenshots for more details.

Gitea Version

1.24.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Image Image

Git Version

No response

Operating System

No response

How are you running Gitea?

Installed using the Helm chart on an AWS EKS cluster.

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions