git_pr 0.0.14.beta1 → 0.0.14.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/git-pr +10 -4
- data/lib/git_pr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f844d80171352e66f57ec97a5f9516430d95dc8
|
4
|
+
data.tar.gz: 34044d85709c00da2ddbd5a63362f3d8afa1bec3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba5a99fae566120a0b1b6911a69ab40f7d1bc27a8f53a5a603eb414292a8ff5e5e90b7904e661f6f605574072c4fb5bc28a0ff8236a3a8328ef8eb564ca2a583
|
7
|
+
data.tar.gz: 410c7e54069d7321e42dc68d774ed3392a78108b78c67737c84fe456bdd2c86380688f7bc069f8d621bbfe9988a18cba73e69c80a87111064fb163356f0ad379
|
data/bin/git-pr
CHANGED
@@ -386,7 +386,7 @@ when "status"
|
|
386
386
|
exit 1
|
387
387
|
end
|
388
388
|
|
389
|
-
puts "
|
389
|
+
puts "##{pull.number} from #{pull[:user][:login]}: #{pull.title}\n"
|
390
390
|
statuses = Octokit.statuses(pull.base.repo.full_name, pull.head.sha)
|
391
391
|
if statuses.empty?
|
392
392
|
puts "No status found."
|
@@ -397,11 +397,17 @@ when "status"
|
|
397
397
|
statuses.sort_by { |s| s.updated_at }.each { |s| statuses_by_context[s.context] = s }
|
398
398
|
|
399
399
|
max_context = statuses_by_context.map { |c, s| s.context.length }.max
|
400
|
-
max_description = statuses_by_context.map { |c, s| s.description.length }.max
|
401
400
|
|
402
|
-
puts
|
401
|
+
puts <<EOS
|
402
|
+
Status (cmd-double-click to open links):
|
403
|
+
|
404
|
+
EOS
|
403
405
|
statuses_by_context.each do |context, status|
|
404
|
-
puts "#{status_summary(status.state)} #{status.context.ljust(max_context)} #{status.
|
406
|
+
puts "#{status_summary(status.state)} #{status.context.ljust(max_context)} #{status.target_url}"
|
405
407
|
end
|
408
|
+
puts "\n"
|
409
|
+
|
410
|
+
success = statuses_by_context.all? { |c, s| s.state == 'success' }
|
411
|
+
exit (success ? 0 : 1)
|
406
412
|
|
407
413
|
end
|
data/lib/git_pr/version.rb
CHANGED