- Notifications
You must be signed in to change notification settings - Fork 69
event type use enum class#9
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| fromenumimportEnum | ||
| classEventType(Enum): | ||
| """ | ||
| Event enum type | ||
| """ | ||
| CommitComment='commit_comment' | ||
| Create='create' | ||
| Delete='delete' | ||
| Deployment='deployment' | ||
| DeploymentStatus='deployment_status' | ||
| Fork='fork' | ||
| Gollum='gollum' | ||
| IssueComment='issue_comment' | ||
| Issues='issues' | ||
| Member='member' | ||
| Membership='membership' | ||
| PageBuild='page_build' | ||
| Ping='ping' | ||
| Public='public' | ||
| PullRequest='pull_request' | ||
| PullRequestReview='pull_request_review' | ||
| PullRequestReviewComment='pull_request_review_comment' | ||
| Push='push' | ||
| Release='release' | ||
| Repository='repository' | ||
| Status='status' | ||
| TeamAdd='team_add' | ||
| Watch='watch' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are a half dozen events that are missing here compared to the list on: | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -8,7 +8,7 @@ | ||
| author_email="[email protected], [email protected], [email protected], [email protected]", | ||
| license='Apache 2.0', | ||
| packages=["github_webhook"], | ||
| install_requires=['flask', 'six'], | ||
| install_requires=['flask', 'six', 'enum34'], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps use the | ||
| tests_require=['mock', 'nose'], | ||
| classifiers=[ | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good to link to https://developer.github.com/v3/activity/events/types/ in the docstring so it shows up in the docs, plus anyone keeping this event list up to date in the future knows where to look