pivotal-github 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -3
- data/lib/pivotal-github/finished_command.rb +1 -1
- data/lib/pivotal-github/version.rb +1 -1
- metadata +40 -25
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# pivotal-github
|
2
2
|
|
3
|
-
The `pivotal-github` gem facilitates a Pivotal
|
3
|
+
The `pivotal-github` gem facilitates a [Pivotal Tracker](http://pivotaltracker.com/)–[GitHub](http://github.com/) workflow inspired by the workflow used by [Logical Reality](http://lrdesign.com/). (It also works fine with [BitBucket](http://bitbucket.com/); see **Configuration** below.) As per usual, there are several projects (notably [git-flow](https://github.com/nvie/gitflow) and [git-pivotal](https://github.com/trydionel/git-pivotal)) that implement similar solutions, but none met my exact needs, so I rolled my own.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -131,14 +131,14 @@ As with `git story-merge`, by default `git story-pull-request` exits with a warn
|
|
131
131
|
|
132
132
|
### story-open
|
133
133
|
|
134
|
-
The `story-open` command (
|
134
|
+
The `story-open` command (without `git`) opens the current story in the default browser (OS X–only):
|
135
135
|
|
136
136
|
$ story-open
|
137
137
|
|
138
138
|
|
139
139
|
## Configuration
|
140
140
|
|
141
|
-
In order to use the `pivotal-github` gem, you need to configure a
|
141
|
+
In order to use the `pivotal-github` gem, you need to configure a post-receive hook for your repository. At GitHub, navigate to `Settings > Service Hooks > Pivotal Tracker` and past in your Pivotal Tracker API token. (To find your Pivotal Tracker API token, go to your user profile and scroll to the bottom.) Be sure to check the **Active** box to activate the post-receive hook. At BitBucket, click on the gear icon to view the settings, click on `Services`, select `Pivotal Tracker`, and paste in your Pivotal Tracker API key.
|
142
142
|
|
143
143
|
The `pivotal-github` command names follow the Git convention of being verbose (e.g., unlike Subversion, Git doesn't natively support `co` for `checkout`), but I recommend setting up aliases as necessary. Here are some suggestions:
|
144
144
|
|
@@ -221,7 +221,9 @@ Now Bob should be able to merge in the pull request automatically using the nice
|
|
221
221
|
## Contributing
|
222
222
|
|
223
223
|
1. Fork it
|
224
|
+
2. Run the tests with `rspec spec/`
|
224
225
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
226
|
+
3. Add failing tests, then add the feature
|
225
227
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
226
228
|
4. Push to the branch (`git push origin my-new-feature`)
|
227
229
|
5. Create new Pull Request
|
@@ -16,7 +16,7 @@ class FinishedCommand < Command
|
|
16
16
|
warning = "Warning: Unfinished story\n"
|
17
17
|
warning += "Run `git commit --amend` to add 'Finishes' or 'Delivers' "
|
18
18
|
warning += "to the commit message\n"
|
19
|
-
warning += "Use --
|
19
|
+
warning += "Use --force to override"
|
20
20
|
$stderr.puts warning
|
21
21
|
exit 1
|
22
22
|
end
|
metadata
CHANGED
@@ -1,20 +1,27 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: pivotal-github
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 6
|
8
|
+
- 9
|
9
|
+
version: 0.6.9
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Michael Hartl
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
16
|
+
|
17
|
+
date: 2013-03-01 00:00:00 -08:00
|
18
|
+
default_executable:
|
13
19
|
dependencies: []
|
14
|
-
|
15
|
-
|
20
|
+
|
21
|
+
description: "Add commands for Pivotal Tracker\xE2\x80\x93GitHub integration"
|
22
|
+
email:
|
16
23
|
- michael@michaelhartl.com
|
17
|
-
executables:
|
24
|
+
executables:
|
18
25
|
- git-story-commit
|
19
26
|
- git-story-merge
|
20
27
|
- git-story-pull
|
@@ -22,8 +29,10 @@ executables:
|
|
22
29
|
- git-story-push
|
23
30
|
- story-open
|
24
31
|
extensions: []
|
32
|
+
|
25
33
|
extra_rdoc_files: []
|
26
|
-
|
34
|
+
|
35
|
+
files:
|
27
36
|
- .gitignore
|
28
37
|
- .rspec
|
29
38
|
- Gemfile
|
@@ -57,31 +66,37 @@ files:
|
|
57
66
|
- spec/commands/story_push_spec.rb
|
58
67
|
- spec/options/options_spec.rb
|
59
68
|
- spec/spec_helper.rb
|
69
|
+
has_rdoc: true
|
60
70
|
homepage: https://github.com/mhartl/pivotal-github
|
61
71
|
licenses: []
|
72
|
+
|
62
73
|
post_install_message:
|
63
74
|
rdoc_options: []
|
64
|
-
|
75
|
+
|
76
|
+
require_paths:
|
65
77
|
- lib
|
66
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
version: "0"
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
segments:
|
90
|
+
- 0
|
91
|
+
version: "0"
|
78
92
|
requirements: []
|
93
|
+
|
79
94
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.
|
95
|
+
rubygems_version: 1.3.6
|
81
96
|
signing_key:
|
82
97
|
specification_version: 3
|
83
98
|
summary: See the README for full documentation
|
84
|
-
test_files:
|
99
|
+
test_files:
|
85
100
|
- spec/commands/command_spec.rb
|
86
101
|
- spec/commands/story_commit_spec.rb
|
87
102
|
- spec/commands/story_merge_spec.rb
|