github_webhook 1.4.0 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +12 -12
- data/.ruby-version +1 -1
- data/README.md +1 -1
- data/lib/github_webhook/processor.rb +16 -6
- data/lib/github_webhook/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa70acb6ee3b0d0c86fedf89cd0cd5abfa2b85112149ecb79810c691d3d6af10
|
4
|
+
data.tar.gz: 7fb5db48729f31f08fb62a20cc0e251cf8b67b823d9b13649625ec77485508bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 062f18ed749edf436cd3bf4024d152923982c647c43b7184281a99adf9e6bd7f9591b490d990338630f03fae3486e2f26b89542ddc818e0e8a02d53e72cb7611
|
7
|
+
data.tar.gz: c3bcb2afb42473e7ce4485ed01fa12298e67028834768f234a0ddae7145965d37b3e1e7095da6925098a5ac9c39775b9f88120386bda1b33e51712d45a98344d
|
data/.github/workflows/ruby.yml
CHANGED
@@ -8,17 +8,17 @@ on:
|
|
8
8
|
|
9
9
|
jobs:
|
10
10
|
build:
|
11
|
-
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
ruby: ['2.7', '3.0', '3.1', '3.2', head]
|
12
15
|
runs-on: ubuntu-latest
|
13
|
-
|
14
16
|
steps:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
bundle install --jobs 4 --retry 3
|
24
|
-
bundle exec rake
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
- name: Set up Ruby 3.2
|
19
|
+
uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
22
|
+
bundler-cache: true
|
23
|
+
- name: Build and test with Rake
|
24
|
+
run: bundle exec rake
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
3.2.0
|
data/README.md
CHANGED
@@ -41,7 +41,7 @@ Then create a new controller:
|
|
41
41
|
|
42
42
|
```ruby
|
43
43
|
# app/controllers/github_webhooks_controller.rb
|
44
|
-
class GithubWebhooksController < ActionController::
|
44
|
+
class GithubWebhooksController < ActionController::API
|
45
45
|
include GithubWebhook::Processor
|
46
46
|
|
47
47
|
# Handle push event
|
@@ -11,13 +11,14 @@ module GithubWebhook::Processor
|
|
11
11
|
# run this little JS code in the console:
|
12
12
|
# document.querySelectorAll('.list-style-none li.lh-condensed a').forEach(e => console.log(e.text))
|
13
13
|
GITHUB_EVENTS = %w(
|
14
|
+
branch_protection_rule
|
14
15
|
check_run
|
15
16
|
check_suite
|
16
17
|
code_scanning_alert
|
17
18
|
commit_comment
|
18
|
-
content_reference
|
19
19
|
create
|
20
20
|
delete
|
21
|
+
dependabot_alert
|
21
22
|
deploy_key
|
22
23
|
deployment
|
23
24
|
deployment_status
|
@@ -28,41 +29,50 @@ module GithubWebhook::Processor
|
|
28
29
|
gollum
|
29
30
|
installation
|
30
31
|
installation_repositories
|
32
|
+
installation_target
|
31
33
|
issue_comment
|
32
34
|
issues
|
33
35
|
label
|
34
36
|
marketplace_purchase
|
35
37
|
member
|
36
38
|
membership
|
39
|
+
merge_group
|
37
40
|
meta
|
38
41
|
milestone
|
39
|
-
organization
|
40
42
|
org_block
|
43
|
+
organization
|
41
44
|
package
|
42
45
|
page_build
|
43
46
|
ping
|
44
47
|
project_card
|
45
|
-
project_column
|
46
48
|
project
|
49
|
+
project_column
|
50
|
+
projects_v2
|
51
|
+
projects_v2_item
|
47
52
|
public
|
48
53
|
pull_request
|
49
|
-
pull_request_review
|
50
54
|
pull_request_review_comment
|
55
|
+
pull_request_review
|
56
|
+
pull_request_review_thread
|
51
57
|
push
|
58
|
+
registry_package
|
52
59
|
release
|
53
|
-
repository_dispatch
|
54
60
|
repository
|
61
|
+
repository_dispatch
|
55
62
|
repository_import
|
56
63
|
repository_vulnerability_alert
|
57
64
|
secret_scanning_alert
|
65
|
+
secret_scanning_alert_location
|
58
66
|
security_advisory
|
67
|
+
security_and_analysis
|
59
68
|
sponsorship
|
60
69
|
star
|
61
70
|
status
|
62
|
-
team
|
63
71
|
team_add
|
72
|
+
team
|
64
73
|
watch
|
65
74
|
workflow_dispatch
|
75
|
+
workflow_job
|
66
76
|
workflow_run
|
67
77
|
)
|
68
78
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_webhook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastien Saunier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
|
-
rubygems_version: 3.
|
141
|
+
rubygems_version: 3.4.2
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Process GitHub Webhooks in your Rails app (Controller mixin)
|