Commit cdddbf5e5d78be0d511a6dc40430c746f6377723
1 parent
f3aa7ac0
Exists in
master
and in
1 other branch
Fix for "ArgumentError: invalid byte sequence in US-ASCII" when creating github issue
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/issue_trackers/github_issues_tracker.rb
... | ... | @@ -21,7 +21,7 @@ class IssueTrackers::GithubIssuesTracker < IssueTracker |
21 | 21 | |
22 | 22 | def create_issue(err) |
23 | 23 | client = Octokit::Client.new(:login => username, :token => api_token) |
24 | - issue = client.create_issue(project_id, issue_title(err), body_template.result(binding), options = {}) | |
24 | + issue = client.create_issue(project_id, issue_title(err), body_template.result(binding).unpack('C*').pack('U*'), options = {}) | |
25 | 25 | err.update_attribute :issue_link, issue.html_url |
26 | 26 | end |
27 | 27 | ... | ... |