File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class App < Sinatra::Base
23
23
create
24
24
delete
25
25
repository
26
- integration_installation
26
+ installation
27
27
installation_repositories
28
28
]
29
29
@@ -110,7 +110,7 @@ def github_pr_event?
110
110
111
111
def github_apps_event?
112
112
[
113
- 'integration_installation ' ,
113
+ 'installation ' ,
114
114
'installation_repositories' ,
115
115
] . include? event_type
116
116
end
@@ -138,7 +138,7 @@ def sync_event
138
138
)
139
139
140
140
case event_type
141
- when 'integration_installation '
141
+ when 'installation '
142
142
Travis ::Sidekiq ::GithubSync . gh_app_install ( data )
143
143
when 'installation_repositories'
144
144
Travis ::Sidekiq ::GithubSync . gh_app_repos ( data )
File renamed without changes.
Original file line number Diff line number Diff line change 14
14
before { create }
15
15
16
16
def create ( opts = { } )
17
- if [ "integration_installation " , "installation_repositories" ] . include? type
17
+ if [ "installation " , "installation_repositories" ] . include? type
18
18
params = payload
19
19
else
20
20
params = { :payload => ( opts [ :payload ] || payload ) }
@@ -90,9 +90,9 @@ def create(opts = {})
90
90
include_examples 'queues gatekeeper event'
91
91
end
92
92
93
- describe 'an integration_installation event' do
94
- let ( :type ) { 'integration_installation ' }
95
- let ( :event ) { 'integration_installation ' }
93
+ describe 'an installation event' do
94
+ let ( :type ) { 'installation ' }
95
+ let ( :event ) { 'installation ' }
96
96
97
97
it { expect ( gh_sync_queue )
98
98
. to have_received ( :push )
You can’t perform that action at this time.
0 commit comments