Skip to content

Commit

Permalink
Merge pull request #199 from tegonal/improve/latestRemoteTag-docu
Browse files Browse the repository at this point in the history
document how the tag filter of latestRemoteTag could be used
  • Loading branch information
robstoll authored Oct 16, 2024
2 parents a0760fa + 9a80699 commit ec5003e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,8 @@ latestTag=$(latestRemoteTag)
echo "latest tag on origin: $latestTag"
latestTag=$(latestRemoteTag upstream)
echo "latest tag on upstream: $latestTag"
latestTag=$(latestRemoteTag origin "^v1\.[0-9]+\.[0-9]+$")
echo "latest tag in the major 1.x.x series on origin without release candidates: $latestTag"
```
</utility-git-utils>
Expand Down
2 changes: 2 additions & 0 deletions src/utility/git-utils.doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ latestTag=$(latestRemoteTag)
echo "latest tag on origin: $latestTag"
latestTag=$(latestRemoteTag upstream)
echo "latest tag on upstream: $latestTag"
latestTag=$(latestRemoteTag origin "^v1\.[0-9]+\.[0-9]+$")
echo "latest tag in the major 1.x.x series on origin without release candidates: $latestTag"
2 changes: 2 additions & 0 deletions src/utility/git-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
# echo "latest tag on origin: $latestTag"
# latestTag=$(latestRemoteTag upstream)
# echo "latest tag on upstream: $latestTag"
# latestTag=$(latestRemoteTag origin "^v1\.[0-9]+\.[0-9]+$")
# echo "latest tag in the major 1.x.x series on origin without release candidates: $latestTag"
#
###################################
set -euo pipefail
Expand Down

0 comments on commit ec5003e

Please sign in to comment.