pivotal-github 1.1.6 → 1.1.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb23c95f5fd7c9ccb44d99c7769d4d5eb8193edc
4
- data.tar.gz: af5aefc3a45d42d5711bc818084f17f71c9aab35
3
+ metadata.gz: 539f3b0c8e216974b9bff5ef66acbd97e17e64fe
4
+ data.tar.gz: 40a1bfff6dc52af9f2408fccf0e33466cbf034ae
5
5
  SHA512:
6
- metadata.gz: 171552555c6e801c0ce9e614361ea0e5d47cee06714583998321f26f5a74e2e87e4656e26b50dcce3f8ce426a40c12f804d7cbe597c106cd09eb2f581ce6c41b
7
- data.tar.gz: 1e6e7f994761a6b2b01a55dc537a504053be60b2f9c338ce5f7ef4fd9d67e21c73b25295e35cab39e23d89382cfd433a9356561949177fde214a6c82a1c4dc6d
6
+ metadata.gz: 0a27676c8844b14de42dae831605bc89fd4a7b465edaca72b6b51dfab1bcf64ba25f3f0967bef7510711e99573befc95663f438dc90540602e79631ccafeb3cc
7
+ data.tar.gz: 9d4fa7934c92d112569eba79f0993e226abde76720d453be5b82af796ad50f94bc50eec501f6a673f4e192bd6647017b86e2e492bee0f0a60d0f104f63e50f17
@@ -57,7 +57,7 @@ class Command
57
57
  # '#62831853'. For multiple-id stories, each story id is precede by '#', as in
58
58
  # '#62831853 #31415926'
59
59
  def message_ids
60
- story_ids.map { |id| "##{id}" }.join(' ')
60
+ @message_ids ||= story_ids.map { |id| "##{id}" }.join(' ')
61
61
  end
62
62
 
63
63
  # Runs a command.
@@ -13,7 +13,7 @@ class StoryAccept < Command
13
13
  opts.on("-o", "--override", "override master branch requirement") do |opt|
14
14
  self.options.override = opt
15
15
  end
16
- opts.on("-q", "--quiet", "suppress display of accepted story ids") do |opt|
16
+ opts.on("-q", "--quiet", "don't display accepted story ids") do |opt|
17
17
  self.options.quiet = opt
18
18
  end
19
19
  opts.on_tail("-h", "--help", "this usage guide") do
@@ -53,11 +53,12 @@ class StoryAccept < Command
53
53
  end
54
54
 
55
55
  # Returns the ids of delivered stories according to Pivotal Tracker.
56
+ # We include 'includedone:true' to force Pivotal Tracker to return
57
+ # *all* delivered ids, no matter when the story was finished. This also
58
+ # appears to be necessary to return the ids of stories marked **Delivered**
59
+ # by a merge commit, as in `git story-merge -d`.
56
60
  def pivotal_tracker_delivered_story_ids
57
- # The Pivotal Tracker API doesn't seem to want to return stories
58
- # with a particular state unless the type is also specified.
59
- pivotal_tracker_ids('state:delivered type:feature') +
60
- pivotal_tracker_ids('state:delivered type:bug')
61
+ pivotal_tracker_ids('state:delivered includedone:true')
61
62
  end
62
63
 
63
64
  # Returns true if a story has already been accepted.
@@ -30,7 +30,7 @@ class StoryMerge < FinishedCommand
30
30
  def cmd
31
31
  lines = ["git checkout #{target_branch}"]
32
32
  c = ["git merge --no-ff --log"]
33
- c << %(-m "#{message}")
33
+ c << %(-m "#{message}") unless story_ids.empty?
34
34
  c << argument_string(unknown_options) unless unknown_options.empty?
35
35
  c << story_branch
36
36
  lines << c.join(' ')
@@ -1,5 +1,5 @@
1
1
  module Pivotal
2
2
  module Github
3
- VERSION = "1.1.6"
3
+ VERSION = "1.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-06 00:00:00.000000000 Z
11
+ date: 2013-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git-utils