Skip to content
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

Support conventional commit based commit messages #603

Closed
Th3S4mur41 opened this issue Mar 10, 2025 · 1 comment
Closed

Support conventional commit based commit messages #603

Th3S4mur41 opened this issue Mar 10, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@Th3S4mur41
Copy link

Th3S4mur41 commented Mar 10, 2025

Currently the action expects a commit message matching the following example:
Bumps netlify-cli from 19.0.0 to 19.0.1

If the repository follows conventional commit parctices though, the commit message created by dependabot would rather look like this:

chore(deps-dev): bump netlify-cli from 19.0.0 to 19.0.1

The commit message regex should be update to reflect this possibility

const bumpFragment = commitMessage.match(/^.*(?:: )?[Bb]ump[s]? .* from (?<from>v?\d[^ ]*) to (?<to>v?\d[^ ]*)\.?$/m)

Note

The Regex above was also updated to reflect the changes in #604

@Th3S4mur41 Th3S4mur41 added the enhancement New feature or request label Mar 10, 2025
@Th3S4mur41
Copy link
Author

Never mind, I got under the impression that the matcher was using the commit title, while it is actually using the commit body

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant