github-event-types
All Event types of the Github API
[
'CommitCommentEvent',
'CreateEvent',
'DeleteEvent',
'DeploymentEvent',
'DeploymentStatusEvent',
'DownloadEvent',
'FollowEvent',
'ForkEvent',
// ...
'WatchEvent'
]
Installation
Package managers
npm
npm install github-event-types
Yarn
yarn add github-event-types
Bower
bower install github-event-types
Standalone
Download the JSON file directly.
API
import githubEventTypes from 'github-event-types';
githubEventTypes
Type: Array
of String
githubEventTypes.includes('PushEvent'); //=> true
githubEventTypes.includes('foo'); //=> false