Commit b8a57fc4a8abce7f7916baa74c19beb745369364

Authored by Nathan Broadbent
1 parent db7b47da
Exists in master and in 1 other branch production

Github Tracker - Fixed fetching issue_link from returned issue

app/models/issue_trackers/github_issues_tracker.rb
... ... @@ -23,7 +23,7 @@ class IssueTrackers::GithubIssuesTracker < IssueTracker
23 23 client = Octokit::Client.new(:login => username, :password => password)
24 24 begin
25 25 issue = client.create_issue(project_id, issue_title(problem), body_template.result(binding).unpack('C*').pack('U*'), options = {})
26   - problem.update_attribute :issue_link, issue.issue.html_url
  26 + problem.update_attribute :issue_link, issue.html_url
27 27 rescue Octokit::Unauthorized
28 28 raise IssueTrackers::AuthenticationError, "Could not authenticate with Github. Please check your username and password."
29 29 end
... ...