Skip to content

Commit e1d99bf

Browse files
authored
Create EventType.java (#201)
* Create EventType.java Make it easier for parsing github events from request header * Update EventType.java * Update EventType.java
1 parent 1b174d3 commit e1d99bf

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*-
2+
* -\-\-
3+
* github-api
4+
* --
5+
* Copyright (C) 2016 - 2020 Spotify AB
6+
* --
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* -/-/-
19+
*/
20+
21+
package com.spotify.github.v3.activity.events;
22+
23+
public enum EventType {
24+
BRANCH_PROTECTION_RULE,
25+
CHECK_RUN,
26+
CHECK_SUITE,
27+
CODE_SCANNING_ALERT,
28+
COMMIT_COMMENT,
29+
CONTENT_REFERENCE,
30+
CREATE,
31+
DELETE,
32+
DEPLOY_KEY,
33+
DEPLOYMENT,
34+
DEPLOYMENT_STATUS,
35+
DISCUSSION,
36+
DISCUSSION_COMMENT,
37+
DOWNLOAD,
38+
FOLLOW,
39+
FORK,
40+
FORK_APPLY,
41+
GITHUB_APP_AUTHORIZATION,
42+
GIST,
43+
GOLLUM,
44+
INSTALLATION,
45+
INSTALLATION_REPOSITORIES,
46+
INTEGRATION_INSTALLATION_REPOSITORIES,
47+
ISSUE_COMMENT,
48+
ISSUES,
49+
LABEL,
50+
MARKETPLACE_PURCHASE,
51+
MEMBER,
52+
MEMBERSHIP,
53+
MERGE_QUEUE_ENTRY,
54+
MERGE_GROUP,
55+
META,
56+
MILESTONE,
57+
ORGANIZATION,
58+
ORG_BLOCK,
59+
PACKAGE,
60+
PAGE_BUILD,
61+
PROJECT_CARD,
62+
PROJECT_COLUMN,
63+
PROJECT,
64+
PING,
65+
PUBLIC,
66+
PULL_REQUEST,
67+
PULL_REQUEST_REVIEW,
68+
PULL_REQUEST_REVIEW_COMMENT,
69+
PULL_REQUEST_REVIEW_THREAD,
70+
PUSH,
71+
REGISTRY_PACKAGE,
72+
RELEASE,
73+
REPOSITORY_DISPATCH,
74+
REPOSITORY,
75+
REPOSITORY_IMPORT,
76+
REPOSITORY_VULNERABILITY_ALERT,
77+
SCHEDULE,
78+
SECURITY_ADVISORY,
79+
STAR,
80+
STATUS,
81+
TEAM,
82+
TEAM_ADD,
83+
WATCH,
84+
WORKFLOW_JOB,
85+
WORKFLOW_DISPATCH,
86+
WORKFLOW_RUN,
87+
UNKNOWN,
88+
ALL;
89+
90+
@Override
91+
public String toString() {
92+
return this.name().toLowerCase();
93+
}
94+
}

0 commit comments

Comments
 (0)