Class: GitReleaseNotes::JiraAdapter
- Inherits:
-
Object
- Object
- GitReleaseNotes::JiraAdapter
- Defined in:
- lib/git_release_notes/jira_adapter.rb
Instance Method Summary collapse
Instance Method Details
#available? ⇒ Boolean
7 8 9 10 |
# File 'lib/git_release_notes/jira_adapter.rb', line 7 def available? response = client.get('/') response.code == '200' end |
#get_issue(issue) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/git_release_notes/jira_adapter.rb', line 12 def get_issue(issue) issue_url = "#{api_path}/issue/#{issue.issue_no}" response = HTTParty.get(issue_url, headers: headers, basic_auth: basic_auth) return nil unless response.code == 200 issue_from_jira_response(issue, response.body) end |