pivotal_tracker_pr 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -4
- data/lib/pivotal_tracker_pr/cli.rb +3 -2
- data/lib/pivotal_tracker_pr/version.rb +1 -1
- 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: 0c59bbbfb2df7b9f20bae0859ae2077483fc57c7
|
4
|
+
data.tar.gz: 38d9d93d9f342179f761930f8ae0d573f5afdfad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfb0eee13108671d84b2dad2cfb20cdcb654ceb4faf363f2b4a5933992e3e7d21d344c6b7987a956174fa767155d9589768644630c081a824ad45c229bde3c7b
|
7
|
+
data.tar.gz: 687339e7cecad29a16669159660547aa9f16c7782e61cf215462c343637f57bed62c37192c73b88363d10f0aab5ac3d9b86ab883f67302cbc95174beb533cc07
|
data/README.md
CHANGED
@@ -30,10 +30,6 @@ $ gem install pivotal_tracker_pr
|
|
30
30
|
|{{STORY_NAME}}|ストリー内容|
|
31
31
|
|{{STORY_LINK}}|ストリーのリンク|
|
32
32
|
|
33
|
-
## TODO
|
34
|
-
- [ ] PullRequestのテンプレートをERBに切り出す
|
35
|
-
- [ ] ストリーIDのパラメータを受け取る
|
36
|
-
|
37
33
|
## Development
|
38
34
|
|
39
35
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. Run `bundle exec pivotal_tracker_pr` to use the gem in this directory, ignoring other installed copies of this gem.
|
@@ -8,9 +8,10 @@ module PivotalTrackerPr
|
|
8
8
|
MESSAGE_TEMPLATE = 'PULLREQ_MSG_TEMPLATE'.freeze
|
9
9
|
|
10
10
|
class CLI < Thor
|
11
|
+
default_command :create
|
11
12
|
desc 'create', 'Generate pull request use story id / story name.'
|
12
|
-
def create
|
13
|
-
story_id
|
13
|
+
def create(story_id = nil)
|
14
|
+
story_id ||= parse_story_id
|
14
15
|
if story_id
|
15
16
|
say "StoryId : #{story_id}", :green
|
16
17
|
|