Skip to content

Commit

Permalink
Updating event list
Browse files Browse the repository at this point in the history
  • Loading branch information
ssaunier committed Aug 22, 2018
1 parent 6c925fe commit 1800f9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
20 changes: 8 additions & 12 deletions lib/github_webhook/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@ class UnsupportedContentTypeError < StandardError; end

# To fetch list from https://developer.github.com/v3/activity/events/types
# run this little JS code in the console:
# var events = "ping";
# $('h3').each(function(i, item) {
# if ($(item).text().match(/webhook event name/i)) {
# events = events + ' ' + $(item).next('p').find('code').html();
# }
# });
# console.log(events);
# $("h3:contains('Webhook event name')").next('p').each((_, p) => console.log(p.innerText))
GITHUB_EVENTS = %w(
check_run
check_suite
commit_comment
create
delete
Expand All @@ -30,33 +26,33 @@ class UnsupportedContentTypeError < StandardError; end
follow
fork
fork_apply
github_app_authorization
gist
gollum
installation
installation_repositories
integration_installation
integration_installation_repositories
issues
issue_comment
issues
label
marketplace_purchase
member
membership
milestone
organization
org_block
page_build
ping
project
project_card
project_column
project
public
pull_request
pull_request_review
pull_request_review_comment
push
release
repository
repository_import
repository_vulnerability_alert
status
team
team_add
Expand Down
2 changes: 1 addition & 1 deletion lib/github_webhook/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module GithubWebhook
VERSION = "1.1.0"
VERSION = "1.1.1"
end

0 comments on commit 1800f9a

Please sign in to comment.