Using the API I can create pull requests and I can merge through pull requests. For certain PRs I'd like to add [skip ci] to the commit message when merging.
Is it possible to set the commit message when merging through PRs so that I can add my own commit message?
Edit:
I can add a message when using a merge_comit but not with fast_forward.
A fast forward merge won't create a merge commit, it will update the pointer of the destination branch to match the merged branch, when possible. So, there is no merge commit to add a message to.
If you want to use fast forward, one thing you can do is to have[skip ci] in the last commit of the source branch of the PR. This way, a Pipelines build won't run when you make the fast forward merge.
Please feel free to let me know if you have any questions.
Kind regards,
Theodora
Thanks Theodora.
For other's that find this in the future; if you need to add a commit message use merge.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.