File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -50,20 +50,20 @@ _validateGitRef() {
50
50
51
51
_findGitHeads () {
52
52
53
- GIT_TAG=${2 :- HEAD}
53
+ GIT_TAG=${1 :- HEAD}
54
54
55
55
if test " HEAD" = " $GIT_TAG "
56
56
then
57
57
GIT_TAG=$( git describe --always --tags " $GIT_TAG " )
58
58
fi
59
59
60
- GIT_START_REF=$( _findLastTag " $1 " " $GIT_TAG " )
60
+ GIT_START_REF=$( _findLastTag " $GIT_TAG " " $2 " )
61
61
}
62
62
63
63
# A more reliable way to find last tag
64
64
# instead of `git tag --sort=-creatordate | head -1`
65
65
_findLastTag () {
66
- local lasttag=" $1 "
66
+ local lasttag=" $2 "
67
67
68
68
# find last tag in current tree
69
69
if test -z " $lasttag " ; then
91
91
` basename $0 ` Generate release notes based on Github pull request title from given two git-refs
92
92
93
93
Usage:
94
- ` basename $0 ` [<lasttagname >] [<commit-ish >]
94
+ ` basename $0 ` [<commit-ish >] [<lasttagname >]
95
95
96
96
Options:
97
97
-l, --list
@@ -100,12 +100,12 @@ Options:
100
100
-h, --help
101
101
print this help
102
102
103
- <lasttagname>
104
- represents the beginning of revision range. Defaults to last <tagname>
105
-
106
103
<commit-ish>
107
104
Commit-ish object names, branch or tagname represents the end of revision range. Defaults to HEAD
108
105
106
+ <lasttagname>
107
+ represents the beginning of revision range. Defaults to last <tagname>
108
+
109
109
Example:
110
110
111
111
` basename $0 `
You can’t perform that action at this time.
0 commit comments