-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor: Infer bump from commit message
Inferring the bump from commit message adds the possibility for the action to use the first word of the commit message in order to determine the bump, or default to patch if it can't make sense of the message.
- Loading branch information
Showing
5 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
# merge-bump-release | ||
|
||
GitHub action to be applied on merged pull-request, to bump a semver and create a new release | ||
GitHub action to be applied on merged pull-request, to bump a semver and create a new release. | ||
|
||
## Setting up in your workflow: | ||
|
||
The best explanation is by example. Please have a look at this project's [`pr.yml` file](./.github/workflows/pr.yml) | ||
to see how this project is dogfooding the action in order to bump-release itself. Your example | ||
may be a bit different, depending on your circumstances. | ||
|
||
## Features | ||
|
||
Out of the box, this action will always bump your release with a patch, unless configured | ||
to do otherwise. This action can decide what part of the SemVer so increment depending on | ||
the way it's configured. | ||
|
||
**If provided with `bump: <patch | minor | major>`** as input it will use this input to bump and ignore any other configuration. | ||
|
||
**If provided with `infer_bump_from_commit: true`** as input it will try to guess the right one depending on the commit message. Right now the logic is a commit header that starts with the words _'patch', 'minor' or 'major'_. | ||
|
||
## Contributing | ||
|
||
If you need more features, please submit an issue or a pull request. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters