Comments (3)
Sure. Or maybe we could check if the tag exists on GitHub to be more safe?
from changelogithub.
Yeah, there are more than one approach to achieve the same, list as follows:
git describe --exact-match HEAD
will return error if HEAD is not a taggit describe --dirty --tags
will show a distance>0 if HEAD is not a tag, or clean tag otherwise- Check the tag name exists under
.git/refs/tags/
from changelogithub.
We are pushing the notes to GitHub's release for the target tag. Where there might be some case the local tags are not in sync with the remote ones. We can use https://docs.github.com/en/rest/git/tags#get-a-tag to check if the tag exists on the remote, which also solves this request. And PR welcome.
from changelogithub.
Related Issues (19)
- Bug: git log fail at the first tag HOT 2
- No significant changes if patch the release HOT 1
- Hide contributors by default, or replace by "new contributors" HOT 2
- npx changelogithub not working for repo name with dot
- Strange output when using keywords to close an issue HOT 2
- 403 forbidden HOT 3
- Get wrong latest tag if we have different-rule tag HOT 2
- npx changelogithub not working for repo name with dot HOT 5
- After releasing returns the new created release id. HOT 2
- Generate/Upudate CHANGELOG.md file HOT 2
- Add an option to use only merge commits
- Why always No significant changes? HOT 2
- Allow output option without token
- Merge with unjs/changelogen? HOT 6
- Could I release a file with changelogithub? HOT 2
- Enable cli for Github Enterprise
- Not create a release HOT 1
- feat: publish to Github Actions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from changelogithub.