Skip to content

Commit 57f59f7

Browse files
author
Stanislav Kolotinskiy
committed
Remove gh usage
1 parent cf091e3 commit 57f59f7

File tree

4 files changed

+2
-20
lines changed

4 files changed

+2
-20
lines changed

Gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ gem 'travis-rollout', git: 'https://github.com/travis-ci/travis-rollout'
99
gem 'travis-exceptions', git: 'https://github.com/travis-ci/travis-exceptions'
1010
gem 'travis-logger', git: 'https://github.com/travis-ci/travis-logger'
1111
gem 'travis-settings', git: 'https://github.com/travis-ci/travis-settings'
12-
gem 'gh', git: 'https://github.com/travis-ci/gh'
1312
gem 'coder', git: 'https://github.com/rkh/coder'
1413

1514
gem 'metriks', git: 'https://github.com/travis-ci/metriks'

Gemfile.lock

-16
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@ GIT
44
specs:
55
coder (0.4.0)
66

7-
GIT
8-
remote: https://github.com/travis-ci/gh
9-
revision: 38fb339510ff9ae67cb08c6df7698f4c393f5a44
10-
specs:
11-
gh (0.15.1)
12-
addressable (~> 2.4)
13-
backports
14-
faraday (~> 0.8)
15-
multi_json (~> 1.0)
16-
net-http-persistent (~> 2.9)
17-
net-http-pipeline
18-
197
GIT
208
remote: https://github.com/travis-ci/marginalia
219
revision: 46bbe301640efb5ea81828cb7deeaf874516de78
@@ -102,7 +90,6 @@ GEM
10290
descendants_tracker (~> 0.0.4)
10391
ice_nine (~> 0.11.0)
10492
thread_safe (~> 0.3, >= 0.3.1)
105-
backports (3.10.3)
10693
builder (3.2.3)
10794
bunny (2.9.2)
10895
amq-protocol (~> 2.3.0)
@@ -151,8 +138,6 @@ GEM
151138
metaclass (~> 0.0.1)
152139
multi_json (1.12.1)
153140
multipart-post (2.1.1)
154-
net-http-persistent (2.9.4)
155-
net-http-pipeline (1.0.1)
156141
pg (0.21.0)
157142
pry (0.11.3)
158143
coderay (~> 1.1.0)
@@ -223,7 +208,6 @@ DEPENDENCIES
223208
factory_girl (~> 4.7.0)
224209
faraday
225210
faraday_middleware
226-
gh!
227211
libhoney
228212
marginalia!
229213
metriks!

lib/travis/scheduler/record/request.rb

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
require 'travis/scheduler/record/organization'
33
require 'travis/scheduler/record/repository'
44
require 'travis/scheduler/record/user'
5-
require 'gh'
65

76
class Request < ActiveRecord::Base
87
belongs_to :commit

lib/travis/scheduler/serialize/worker.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def job_data
8484
def repository_data
8585
compact(
8686
id: repo.id,
87-
github_id: repo.github_id,
87+
github_id: repo.vcs_id.to_i,
8888
vcs_id: repo.vcs_id,
8989
vcs_type: repo.vcs_type,
9090
url: repo.url,
@@ -179,7 +179,7 @@ def allowed_repositories
179179
@allowed_repositories ||= begin
180180
repository_ids = Repository.where(owner_id: build.owner_id, active: true).select{ |repo| repo.settings.allow_config_imports }.map(&:vcs_id)
181181
repository_ids << repo.vcs_id
182-
repository_ids.uniq.sort
182+
repository_ids.uniq.sort
183183
end
184184
end
185185
end

0 commit comments

Comments
 (0)