ruby_git_issue 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ruby_git_issue.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 863250a8fd2a9ccdc1c876b9fc7529e5cca6d49806cbefc7abd45c86780dcee9
4
- data.tar.gz: 1f23afa5209342d4c98392d5ca4aeebfaa5c6ed66d8d7f324a56b7f455b449f9
3
+ metadata.gz: 27ae25ab6dcfc24c13119b4498497fe99789db93881f8d6c1586f81560394256
4
+ data.tar.gz: db97dcaf0fd2b844233e86d9b435032c75a824d734dd6d8780f55b37940b3a6c
5
5
  SHA512:
6
- metadata.gz: 9a4e21beee0131208fe24baa347746769499f4352b35c422629b479b08915123b08cce9bb9edd0d094eb6915d2d334d7394d7dd96c55bd2114aef19d2bfaa06d
7
- data.tar.gz: d177d10db2b6ea7ef27dac49e86bab253713b36e5673d05a1db2cdec40d4fd4179d4dbff658690b55a2361dff8a69762200d6b49b7438458cede25c03197992c
6
+ metadata.gz: ae1cdc0d3f37fcea0a98670cc997e07d463dca51028a41ad4359497c7ca677df5772b05a190ce4542a3a521c1a81b768a8029dcc4f1e3fa96d9752d501382a52
7
+ data.tar.gz: 6b1a76ad3aaf548407d145de418f4acc098b705e54b3299d9b40b5502ea42ce8cdb21b3898b2bc57e55f4a5f487baf9f322f7d682b3f5f540d77b3fb5cbfff89
@@ -32,7 +32,7 @@ class RubyGitIssue
32
32
  def generate_issue(column_id=nil)
33
33
  existing_issue = client.list_issues("#{organization}/#{repo}").select{|issue| issue[:title] == issue_options[:title]}.try(:first)
34
34
  if existing_issue.nil?
35
- issue_data = client.create_issue("#{organization}/#{repo}", issue_options[:title], compose_body(exception_data, request), issue_options)
35
+ issue_data = client.create_issue("#{organization}/#{repo}", issue_options[:title][0..255], compose_body(exception_data, request), issue_options)
36
36
  add_issue_to_project(issue_data, column_id) unless column_id.nil?
37
37
  else
38
38
  client.add_comment("#{organization}/#{repo}", existing_issue.number, compose_body(exception_data, request))
@@ -80,6 +80,7 @@ class RubyGitIssue
80
80
  body << compose_request_section(e, request) unless request.nil?
81
81
  body << "\n\n"
82
82
  body << compose_backtrace_section(e) unless e.nil?
83
+ body[0..65535]
83
84
  end
84
85
 
85
86
  def compose_data_section(e,data )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_git_issue
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arpit Vaishnav