pivotal-github 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 539f3b0c8e216974b9bff5ef66acbd97e17e64fe
|
4
|
+
data.tar.gz: 40a1bfff6dc52af9f2408fccf0e33466cbf034ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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", "
|
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
|
-
|
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(' ')
|
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.
|
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-
|
11
|
+
date: 2013-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git-utils
|