Add config to provide git push options #3159
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've created this change for myself (currently in testing) and created the PR to see if you believe it would be useful.
The rational behind this:
When I merge into Gitlab, semantic release runs on main and performs the release. The release commit, by default, uses
[skip ci]
, which is appropriate for Gitlab. Unfortunately, when the release commit is replicated to Github, it also respects this and skips Github actions.This change means that I change the commit message, removing [skip ci] and use a git push option
ci.skip
(see https://docs.gitlab.com/ee/user/project/push_options.html), which will only skip the CI/CD pipeline in Gitlab.I'm creating this PR to get feedback if it's a feature that you believe would be useful and, if so, I can tidy it up after testing, add tests etc. ready for proper review :)
Many thanks
Matt