github-pivotal-flow 0.0.3 → 0.0.4
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/bin/git-start +1 -1
- data/lib/github_pivotal_flow/command.rb +1 -1
- data/lib/github_pivotal_flow/start.rb +1 -2
- data/lib/github_pivotal_flow/story.rb +4 -6
- 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: 9b38470cff4557c6afa68bb23f45635b62cb6fe8
|
|
4
|
+
data.tar.gz: e42db2d90262c0013ab7f38c3ec8d715c0c70c56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3242d0eeefb277fb4a59beb100e1611d865b549376beb2eb7a49011ffe5326d28bdd1e91612bb3a757c092c122709234550cb01651b6e4974f2f4a44be9b6340
|
|
7
|
+
data.tar.gz: 17c35d793ac6f5f3077b191c40444deff07a0e31361064caae1dc113ff9d4942011d89b982041a405d406c77483a46c52c470bfe8d1a498a0e28519347b8fa33
|
data/bin/git-start
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
module GithubPivotalFlow
|
|
3
3
|
class Start < GithubPivotalFlow::Command
|
|
4
4
|
def run!
|
|
5
|
-
filter = @options[:args]
|
|
6
|
-
puts "Filter: #{filter.inspect}"
|
|
5
|
+
filter = [@options[:args]].flatten.first
|
|
7
6
|
#TODO: Validate the format of the filter argument
|
|
8
7
|
story = Story.select_story @project, filter
|
|
9
8
|
Story.pretty_print story
|
|
@@ -263,15 +263,13 @@ module GithubPivotalFlow
|
|
|
263
263
|
def branch_prefix
|
|
264
264
|
case self.story_type
|
|
265
265
|
when 'feature'
|
|
266
|
-
'feature'
|
|
266
|
+
Git.get_config('gitflow.prefix.feature', :inherited)
|
|
267
267
|
when 'bug'
|
|
268
|
-
self.labels.include?('hotfix') ? 'hotfix' : 'feature'
|
|
268
|
+
self.labels.include?('hotfix') ? Git.get_config('gitflow.prefix.hotfix', :inherited) : Git.get_config('gitflow.prefix.feature', :inherited)
|
|
269
269
|
when 'release'
|
|
270
|
-
'release'
|
|
271
|
-
when 'chore'
|
|
272
|
-
'chore'
|
|
270
|
+
Git.get_config('gitflow.prefix.release', :inherited)
|
|
273
271
|
else
|
|
274
|
-
'misc'
|
|
272
|
+
'misc/'
|
|
275
273
|
end
|
|
276
274
|
end
|
|
277
275
|
end
|