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

document webhook event types #21478

Open
KiaraGrouwstra opened this issue Oct 16, 2022 · 4 comments
Open

document webhook event types #21478

KiaraGrouwstra opened this issue Oct 16, 2022 · 4 comments
Assignees
Labels
type/docs This PR mainly updates/creates documentation

Comments

@KiaraGrouwstra
Copy link
Contributor

Feature Description

our webhook docs imply an event type, for which they mention push as an example.
it would be nice if we could document what event types gitea offers, and when these might trigger, if more than just push.

Screenshots

No response

@KiaraGrouwstra KiaraGrouwstra added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Oct 16, 2022
@lunny lunny added type/docs This PR mainly updates/creates documentation and removed type/proposal The new feature has not been accepted yet but needs to be discussed first. type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Oct 16, 2022
@Timoses
Copy link

Timoses commented Nov 22, 2022

Dito.

A good place to start may be:

@jolheiser
Copy link
Member

jolheiser commented Nov 22, 2022

You could also take a look at https://gitea.com/jolheiser/gitea-webhook where I had done a little work to get this started.

Admittedly I meet to rerun, as they are a bit out of date, but it should be a good start.

I'll try to get them updated soon. Updated them this morning. 🙂

@lmorais-dev
Copy link

It's funny how there's still no proper documentation in web hooks after so much time. Thanks @Timoses andd @jolheiser you help me big time.

@lunny lunny self-assigned this Feb 25, 2024
@Lucifergene
Copy link

This is the list of all Hook Events Types directly from their codebase:
https://github.com/go-gitea/gitea/blob/main/modules/webhook/type.go#L6

Till @lunny updates the docs, here is the list:

	HookEventCreate                    HookEventType = "create"
	HookEventDelete                    HookEventType = "delete"
	HookEventFork                      HookEventType = "fork"
	HookEventPush                      HookEventType = "push"
	HookEventIssues                    HookEventType = "issues"
	HookEventIssueAssign               HookEventType = "issue_assign"
	HookEventIssueLabel                HookEventType = "issue_label"
	HookEventIssueMilestone            HookEventType = "issue_milestone"
	HookEventIssueComment              HookEventType = "issue_comment"
	HookEventPullRequest               HookEventType = "pull_request"
	HookEventPullRequestAssign         HookEventType = "pull_request_assign"
	HookEventPullRequestLabel          HookEventType = "pull_request_label"
	HookEventPullRequestMilestone      HookEventType = "pull_request_milestone"
	HookEventPullRequestComment        HookEventType = "pull_request_comment"
	HookEventPullRequestReviewApproved HookEventType = "pull_request_review_approved"
	HookEventPullRequestReviewRejected HookEventType = "pull_request_review_rejected"
	HookEventPullRequestReviewComment  HookEventType = "pull_request_review_comment"
	HookEventPullRequestSync           HookEventType = "pull_request_sync"
	HookEventPullRequestReviewRequest  HookEventType = "pull_request_review_request"
	HookEventWiki                      HookEventType = "wiki"
	HookEventRepository                HookEventType = "repository"
	HookEventRelease                   HookEventType = "release"
	HookEventPackage                   HookEventType = "package"
	HookEventSchedule                  HookEventType = "schedule"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

No branches or pull requests

6 participants