Currently the minor-identifier or major-identifier is needed on the latest commit message to have any effect.
Scenario - Project with version 1.0.2:
- User is creating many commits on a branch
- minor changes, improvements etc. with simple commit messages and
- a new feature with commit message containing
minor-identifier (used as minor version increase identifier)
- also publishes/deploys snapshots to repo
- User creates a PR, but misses to add
minor-identifier to the PR title
Outcome:
- Snapshot with version
1.1.0 as we had a commit message with minor-identifier
- Published
1.0.3 as minor-identifier was missing in the PR title
Improvement possible:
- Let user decide if a missing identifier shall
- break the workflow exceptionally,
- increase versions based on commit and PR title (latest commit) or
- ignore older commit messages (current behaviour)
- Needs possibility to check all commits since the last tagged for
minor-identifier or major-identifier
Currently the
minor-identifierormajor-identifieris needed on the latest commit message to have any effect.Scenario - Project with version
1.0.2:minor-identifier(used as minor version increase identifier)minor-identifierto the PR titleOutcome:
1.1.0as we had a commit message withminor-identifier1.0.3asminor-identifierwas missing in the PR titleImprovement possible:
minor-identifierormajor-identifier