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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/git-pr +10 -4
  3. data/lib/git_pr/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd50ce4e2cfb2bba6e49dea8ec04f6d3467b93bd
4
- data.tar.gz: 753a8cfd5bebc83704c0daee2503791a237f953c
3
+ metadata.gz: 9f844d80171352e66f57ec97a5f9516430d95dc8
4
+ data.tar.gz: 34044d85709c00da2ddbd5a63362f3d8afa1bec3
5
5
  SHA512:
6
- metadata.gz: b21abd38f9c7131263e51e917b23a85933bc2cc5065778ccf7e15196d5f3a80243fd14a49af0a21c734e4dd7368ce08af2fe8afa1b01de49c9ff3006d22fc95c
7
- data.tar.gz: 965c8d39ddbf565248fa80b3af80161cd1335e97d76b31ecba2a38dda02d89341dafa70740ffd36e9671560b4b72f6a840e6628d81a1d975582e63c4c315cc49
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 "Pull request #{pull.number}: #{pull.title}"
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.description.ljust(max_description)} #{status.target_url}"
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
@@ -1,3 +1,3 @@
1
1
  module GitPr
2
- VERSION = "0.0.14.beta1"
2
+ VERSION = "0.0.14.beta2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_pr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14.beta1
4
+ version: 0.0.14.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Sharon