Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove gh usage #246

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ gem 'travis-rollout', git: 'https://github.com/travis-ci/travis-rollout'
gem 'travis-exceptions', git: 'https://github.com/travis-ci/travis-exceptions'
gem 'travis-logger', git: 'https://github.com/travis-ci/travis-logger'
gem 'travis-settings', git: 'https://github.com/travis-ci/travis-settings'
gem 'gh', git: 'https://github.com/travis-ci/gh'
gem 'coder', git: 'https://github.com/rkh/coder'

gem 'metriks', git: 'https://github.com/travis-ci/metriks'
Expand Down
16 changes: 0 additions & 16 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@ GIT
specs:
coder (0.4.0)

GIT
remote: https://github.com/travis-ci/gh
revision: 38fb339510ff9ae67cb08c6df7698f4c393f5a44
specs:
gh (0.15.1)
addressable (~> 2.4)
backports
faraday (~> 0.8)
multi_json (~> 1.0)
net-http-persistent (~> 2.9)
net-http-pipeline

GIT
remote: https://github.com/travis-ci/marginalia
revision: 46bbe301640efb5ea81828cb7deeaf874516de78
Expand Down Expand Up @@ -102,7 +90,6 @@ GEM
descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0)
thread_safe (~> 0.3, >= 0.3.1)
backports (3.10.3)
builder (3.2.3)
bunny (2.9.2)
amq-protocol (~> 2.3.0)
Expand Down Expand Up @@ -151,8 +138,6 @@ GEM
metaclass (~> 0.0.1)
multi_json (1.12.1)
multipart-post (2.1.1)
net-http-persistent (2.9.4)
net-http-pipeline (1.0.1)
pg (0.21.0)
pry (0.11.3)
coderay (~> 1.1.0)
Expand Down Expand Up @@ -223,7 +208,6 @@ DEPENDENCIES
factory_girl (~> 4.7.0)
faraday
faraday_middleware
gh!
libhoney
marginalia!
metriks!
Expand Down
1 change: 0 additions & 1 deletion lib/travis/scheduler/record/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require 'travis/scheduler/record/organization'
require 'travis/scheduler/record/repository'
require 'travis/scheduler/record/user'
require 'gh'

class Request < ActiveRecord::Base
belongs_to :commit
Expand Down
4 changes: 2 additions & 2 deletions lib/travis/scheduler/serialize/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def job_data
def repository_data
compact(
id: repo.id,
github_id: repo.github_id,
github_id: repo.vcs_id.to_i,
vcs_id: repo.vcs_id,
vcs_type: repo.vcs_type,
url: repo.url,
Expand Down Expand Up @@ -179,7 +179,7 @@ def allowed_repositories
@allowed_repositories ||= begin
repository_ids = Repository.where(owner_id: build.owner_id, active: true).select{ |repo| repo.settings.allow_config_imports }.map(&:vcs_id)
repository_ids << repo.vcs_id
repository_ids.uniq.sort
repository_ids.uniq.sort
end
end
end
Expand Down