-
Notifications
You must be signed in to change notification settings - Fork 0
fix: tag and release #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
374d995 to
33ecc8b
Compare
33ecc8b to
a452fe1
Compare
|
✅ Valid — 🟢 PATCH |
| else | ||
| echo "Warning: No recognized commit type, defaulting to PATCH" | ||
| BUMP_TYPE="patch" | ||
| PATCH=$((PATCH + 1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not default to none; at least it makes it explicit when a PR requests a version bump?
Or if the repo requires conventional commits you could even reject the PR in this default branch.
| echo "PR title: $PR_TITLE" | ||
|
|
||
| # Determine version bump based on PR title | ||
| if [[ "$PR_TITLE" =~ ^\[major\]|^major: ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conventional commits also define BREAKING CHANGE and just appending a ! to whatever the type of change, eg fix(api)!: ..., which would be nice to support here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. although the ! doesn't work for most of our repos.
| - checkout | ||
| - add_ssh_keys: | ||
| fingerprints: | ||
| - "SHA256:w5lYpE8DMWxUdasN8yMbbFdiz6s50PPBJMkV0a1iyZ8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, looks secrety. This is something that should probably be read from elsewhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its the sha of the deploy key id in circleci. it tells circleci what key to use when tagging the repo. The id is public so its safe to have this in the config.
What this does
tag the repo after merging.
The version is bumped based on the prefix in the PR title.
fix bumps the patch version, feat bumps the minor version and major bumps the major version.