I want to write CI/CD script, which will change the default generated Squash And Merge commit into the convention my team uses.
Is it possible to change it in CI/CD level, can I get commit messages in the script and generate a new commit message?
Can you suggest something that will help me? like articles.
Asked
Active
Viewed 226 times
0

Tigran Yengibaryan
- 81
- 4
- 7
-
1Could you explain more your workflow? There's no "squash and merge" option in Git, are you referring to GitHub? – Gaël J Sep 20 '21 at 20:37
-
Yes, I'm referring to GitHub, which I mentioned in the tags section. – Tigran Yengibaryan Sep 21 '21 at 11:28
-
When the developer opens PR on the master branch, the workflow starts the work, it runs some scrips (linter, tests), and then if everything is ok, it allows to squash and merges. – Tigran Yengibaryan Sep 21 '21 at 11:30
-
So you're asking how to configure the commit message generated by Github after a PR is considered valid (after all your workflows ran succesfully)? – Gaël J Sep 21 '21 at 16:12
-
yes, you undersood – Tigran Yengibaryan Sep 21 '21 at 17:59
-
1Seems it's not possible: https://github.community/t/how-to-change-the-default-squash-merge-commit-message/1155/37 – Gaël J Sep 21 '21 at 18:46