-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(webhooks): Add constants for webhook events * test(webhooks): Update tests to use constants Co-authored-by: Thomas O'Neill <toneill@new-innov.com>
- Loading branch information
1 parent
c59b996
commit f850913
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package bitbucket | ||
|
||
const ( | ||
RepoPushEvent string = "repo:push" | ||
RepoForkEvent string = "repo:fork" | ||
RepoUpdatedEvent string = "repo:updated" | ||
RepoCommitCommentCreatedEvent string = "repo:commit_comment_created" | ||
RepoCommitStatusCreatedEvent string = "repo:commit_status_created" | ||
RepoCommitStatusUpdatedEvent string = "repo:commit_status_updated" | ||
IssueCreatedEvent string = "issue:created" | ||
IssueUpdatedEvent string = "issue:updated" | ||
IssueCommentCreatedEvent string = "issue:comment_created" | ||
PullRequestCreatedEvent string = "pullrequest:created" | ||
PullRequestUpdatedEvent string = "pullrequest:updated" | ||
PullRequestApprovedEvent string = "pullrequest:approved" | ||
PullRequestUnapprovedEvent string = "pullrequest:unapproved" | ||
PullRequestMergedEvent string = "pullrequest:fulfilled" | ||
PullRequestDeclinedEvent string = "pullrequest:rejected" | ||
PullRequestCommentCreatedEvent string = "pullrequest:comment_created" | ||
PullRequestCommentUpdatedEvent string = "pullrequest:comment_updated" | ||
PullRequestCommentDeletedEvent string = "pullrequest:comment_deleted" | ||
) |