git-jira 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/git-jira +8 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2efb76ba5f89a67ca20bfac1023c8c8646acf318
|
4
|
+
data.tar.gz: 8cdea25851dd22160d93d9cbdd439aef43dd2a7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae7fedd2a9e4c8ce7e28857e78daef6f00bc8fc62ea3069aea4a95db77c5d44d3e999bc78833a13309eb46a626b94ba0c1ac1042828ded5e72ac0198603a66e0
|
7
|
+
data.tar.gz: b518555c457b99f609aa1cd1fc5ecce5bb75f380b29fb4d0c79c6a58066df50c07a749aa36370d68e22b2e40b29de2e0f1d4c46c7eee694d3904fcb236cf49a5
|
data/bin/git-jira
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'yaml'
|
3
3
|
require 'tempfile'
|
4
|
+
require 'pp'
|
4
5
|
class StoryNotFound < StandardError; end
|
5
6
|
|
6
7
|
begin
|
@@ -10,6 +11,7 @@ rescue
|
|
10
11
|
puts 'Could not load config file ~/.jira.d/config.yml'
|
11
12
|
puts 'Please make sure it is as described in these instructions:'
|
12
13
|
puts ' https://github.com/Netflix-Skunkworks/go-jira'
|
14
|
+
exit 1
|
13
15
|
end
|
14
16
|
|
15
17
|
command = ARGV.shift
|
@@ -124,7 +126,7 @@ when 'start'
|
|
124
126
|
puts "Starting story #{story_id}:"
|
125
127
|
puts " summary: #{story['summary']}"
|
126
128
|
puts " reporter: #{story['reporter']}"
|
127
|
-
puts " created: #{
|
129
|
+
puts " created: #{story['created']}"
|
128
130
|
puts
|
129
131
|
|
130
132
|
if story_branches.include?(story_id.downcase)
|
@@ -159,12 +161,13 @@ when 'cleanup'
|
|
159
161
|
`git checkout master` if branches_to_remove.include?(current_branch)
|
160
162
|
`git branch -D #{branches_to_remove.join(' ')}`
|
161
163
|
when 'ci'
|
162
|
-
|
164
|
+
story_name = ARGV.shift || current_branch
|
165
|
+
unless matches_story?(story_name)
|
163
166
|
puts "You don't appear to be on a story branch!"
|
164
167
|
exit 1
|
165
168
|
end
|
166
169
|
|
167
|
-
story = load_story(
|
170
|
+
story = load_story(story_name)
|
168
171
|
|
169
172
|
if story['description']
|
170
173
|
Tempfile.open('git-j-commit-msg') do |f|
|
@@ -187,9 +190,9 @@ when 'ls'
|
|
187
190
|
puts "#{branch.ljust(8)} - #{load_story(branch)['summary']}"
|
188
191
|
end
|
189
192
|
when 'show'
|
190
|
-
branch = current_branch
|
193
|
+
branch = current_branch.downcase
|
191
194
|
if story_branches.include?(branch)
|
192
|
-
puts load_story(branch)
|
195
|
+
puts load_story(branch)
|
193
196
|
else
|
194
197
|
puts 'Could not parse story branch!'
|
195
198
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-jira
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Dooner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: tom.dooner@brigade.com
|