We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1cb7ac commit d49455cCopy full SHA for d49455c
release.sh
@@ -70,12 +70,13 @@ _findGithubToken() {
70
}
71
72
_findGitHeads() {
73
+ local last_tag=$(git tag --sort=-creatordate | head -1)
74
GIT_TAG=${2:-HEAD}
- GIT_START_REF=${1:-HEAD}
75
+ GIT_START_REF=${1:-$last_tag}
76
77
# Check if $GIT_START_REF exists
78
if ! git rev-parse --quiet --verify $GIT_START_REF > /dev/null; then
- _error $GIT_START_REF branch not found. Make sure you have the branch locally.
79
+ _error $GIT_START_REF not found. Make sure you have the refname is reachable.
80
fi
81
82
@@ -98,5 +99,6 @@ USAGE
98
99
100
case $1 in
101
h|help|--help) _usage; grep -A100 OPTIONS $0;;
102
+ l|list|--list) git tag --sort=-creatordate ;;
103
*) main $@ ;;
104
esac
0 commit comments