ghi 1.0.2 → 1.0.3
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.
- checksums.yaml +4 -4
- data/lib/ghi/commands/config.rb +2 -0
- data/lib/ghi/commands/version.rb +1 -1
- data/lib/ghi/formatting.rb +3 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1f8c07c7af8eaf79bcfd3d107ca24e362028816
|
|
4
|
+
data.tar.gz: 5929cb101707905eba0acdc990a529a83e1dc158
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19b2be758e4d3a70dd1e36b30823ea249ea9ff5c0694a605aa50abad58fedae9be5c88f6e933f9848b84f19a5f1dde7cbfcbcf090bb9c00dab5f711818b1b1a8
|
|
7
|
+
data.tar.gz: edaf7667152f197e5b6dfb2419b3fe2cf89cffbe651d3acdec36544457f665e439d887be4e31f60f229d19cb1208ae11b137b6d2d2a17c43103ae4c7993501a3
|
data/lib/ghi/commands/config.rb
CHANGED
data/lib/ghi/commands/version.rb
CHANGED
data/lib/ghi/formatting.rb
CHANGED
|
@@ -183,7 +183,7 @@ module GHI
|
|
|
183
183
|
l = 9 + nmax + rmax + no_color { format_labels labels }.to_s.length
|
|
184
184
|
a = i['assignee'] && i['assignee']['login'] == Authorization.username
|
|
185
185
|
l += 2 if a
|
|
186
|
-
p = i['pull_request']['html_url'] and l += 2
|
|
186
|
+
p = i['pull_request']['html_url'] and l += 2 if i['pull_request']
|
|
187
187
|
c = i['comments']
|
|
188
188
|
l += c.to_s.length + 1 unless c == 0
|
|
189
189
|
m = i['milestone']
|
|
@@ -366,7 +366,6 @@ EOF
|
|
|
366
366
|
def format_editor issue = nil
|
|
367
367
|
message = ERB.new(<<EOF).result binding
|
|
368
368
|
|
|
369
|
-
|
|
370
369
|
Please explain the issue. The first line will become the title. Trailing
|
|
371
370
|
lines starting with '#' (like these) will be ignored, and empty messages will
|
|
372
371
|
not be submitted. Issues are formatted with GitHub Flavored Markdown (GFM):
|
|
@@ -379,10 +378,10 @@ On <%= repo %>
|
|
|
379
378
|
EOF
|
|
380
379
|
message.rstrip!
|
|
381
380
|
message.gsub!(/(?!\A)^.*$/) { |line|
|
|
382
|
-
# unless line.empty?
|
|
383
381
|
"# #{line}".rstrip
|
|
384
|
-
# end
|
|
385
382
|
}
|
|
383
|
+
# Adding an extra newline for formatting
|
|
384
|
+
message.insert 0, "\n"
|
|
386
385
|
message.insert 0, [
|
|
387
386
|
issue['title'] || issue[:title], issue['body'] || issue[:body]
|
|
388
387
|
].compact.join("\n\n") if issue
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ghi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen Celis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|