pivotal-github 0.6.5 → 0.6.6
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.
- data/README.md +1 -1
- data/lib/pivotal-github/finished_command.rb +3 -3
- data/lib/pivotal-github/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -101,7 +101,7 @@ In addition, the `--log` option puts the commit messages from the individual com
|
|
101
101
|
|
102
102
|
Because of the way options are chained, passing `--ff` or `--no-log` to `git story-merge` will override the `--no-ff` or `--log` flags (respectively) and thus restore the default behavior of `git merge`.
|
103
103
|
|
104
|
-
Finally, experience shows that it's easy to forget to mark a story finished when making the final commit. As a reminder, the `git story-merge` command exits with a warning if the most recent commit doesn't contain 'Finishes' or 'Delivers' (or 'Finished' or '
|
104
|
+
Finally, experience shows that it's easy to forget to mark a story finished when making the final commit. As a reminder, the `git story-merge` command exits with a warning if the most recent commit doesn't contain 'Finishes' or 'Delivers' (or 'Finished', 'Delivered', 'Fixes', or 'Fixed'). This behavior can be overriden with the `--run` option. (I wanted to use `-f` and `--force`, but those interact badly with the default `git merge` options.)
|
105
105
|
|
106
106
|
#### Options
|
107
107
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# By
|
1
|
+
# By default, command runs only when story is finished
|
2
2
|
class FinishedCommand < Command
|
3
3
|
|
4
4
|
def run!
|
@@ -12,11 +12,11 @@ class FinishedCommand < Command
|
|
12
12
|
# We look for 'Finishes' or 'Delivers' and issue a warning if neither is
|
13
13
|
# in the most recent commit. (Also supports 'Finished' and 'Delivered'.)
|
14
14
|
def check_finishes
|
15
|
-
unless `git log -1` =~ /Finishe(s|d)|Deliver(s|ed)/
|
15
|
+
unless `git log -1` =~ /Finishe(s|d)|Deliver(s|ed)|Fixe(s|d)/i
|
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 --run to override"
|
20
20
|
$stderr.puts warning
|
21
21
|
exit 1
|
22
22
|
end
|