Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge df9bcf2 into 06cbe73
Browse files Browse the repository at this point in the history
  • Loading branch information
fwal committed Nov 5, 2017
2 parents 06cbe73 + df9bcf2 commit c19924d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ rvm:

script:
- bundle exec rake spec
- bundle exec danger --verbose
2 changes: 2 additions & 0 deletions Dangerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

favro.check(key: "BAS")
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ source "https://rubygems.org"

# Specify your gem's dependencies in danger-favro.gemspec
gemspec

gem "danger"

# Should also find BAS-17
2 changes: 0 additions & 2 deletions lib/favro/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ def get(ticket_ids)
def request(ticket_id)
response = RestClient::Request.execute method: :get, url: "https://favro.com/api/v1/cards?cardSequentialId=#{ticket_id}&unique=true&limit=1", headers: { accept: :json, organizationId: @organization_id }, user: @user_name, password: @api_token
JSON.parse(response)
rescue RestClient::ExceptionWithResponse
nil
end
end
end

0 comments on commit c19924d

Please sign in to comment.