mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-11 00:11:22 +00:00
65 lines
1.1 KiB
Java
65 lines
1.1 KiB
Java
package org.kohsuke.github;
|
|
|
|
import java.util.Locale;
|
|
|
|
/**
|
|
* Hook event type.
|
|
*
|
|
* @author Kohsuke Kawaguchi
|
|
* @see GHEventInfo
|
|
* @see <a href="https://developer.github.com/v3/activity/events/types/">Event type reference</a>
|
|
*/
|
|
public enum GHEvent {
|
|
COMMIT_COMMENT,
|
|
CREATE,
|
|
DELETE,
|
|
DEPLOYMENT,
|
|
DEPLOYMENT_STATUS,
|
|
DOWNLOAD,
|
|
FOLLOW,
|
|
FORK,
|
|
FORK_APPLY,
|
|
GIST,
|
|
GOLLUM,
|
|
INSTALLATION,
|
|
INSTALLATION_REPOSITORIES,
|
|
ISSUE_COMMENT,
|
|
ISSUES,
|
|
LABEL,
|
|
MARKETPLACE_PURCHASE,
|
|
MEMBER,
|
|
MEMBERSHIP,
|
|
MILESTONE,
|
|
ORGANIZATION,
|
|
ORG_BLOCK,
|
|
PAGE_BUILD,
|
|
PROJECT_CARD,
|
|
PROJECT_COLUMN,
|
|
PROJECT,
|
|
PUBLIC,
|
|
PULL_REQUEST,
|
|
PULL_REQUEST_REVIEW,
|
|
PULL_REQUEST_REVIEW_COMMENT,
|
|
PUSH,
|
|
RELEASE,
|
|
REPOSITORY, // only valid for org hooks
|
|
STATUS,
|
|
TEAM,
|
|
TEAM_ADD,
|
|
WATCH,
|
|
PING,
|
|
/**
|
|
* Special event type that means "every possible event"
|
|
*/
|
|
ALL;
|
|
|
|
|
|
/**
|
|
* Returns GitHub's internal representation of this event.
|
|
*/
|
|
String symbol() {
|
|
if (this==ALL) return "*";
|
|
return name().toLowerCase(Locale.ENGLISH);
|
|
}
|
|
}
|