-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
chore: add /remove-skip-ci command for backport workflows #56101
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
base: master
Are you sure you want to change the base?
Conversation
The existing /compile amend command removes [skip ci] but merges the compile step with the changes themselves which is not ideal to maintain a cleaner history. Sometimes GitHub reviews are sufficient to confirm a backport without need to pull and ammend locally in the case where the developer prefers not to squash the compile step. This new command allows removing [skip ci] from commits without triggering asset compilation. Signed-off-by: nfebe <[email protected]>
9cfda10 to
8bf8b01
Compare
|
If
Or did I miss something else? :) |
True but there is code in the Additionally in this function : https://github.com/nextcloud/backportbot/blob/master/src/gitUtils.ts#L83 It appears that we always try to backport all commits including The commit is always dropped for (compiled files as they conflict) but the So it seems ALL PRs with compiled assets (which is always conflicting across versions) always have skip-ci but the main and important code is not always conflicting so local resolution is not always necessary.
Not hundred percent sure beyond what I explained above, my I definitely encounter commits with [skip-ci] that do not need any local handling a lot of times. |
|
But the (except when you commit compiled assets within the source commit, but thats not that nice anyways) |
It's added to the head commit if there is a conflict in any one commit. (Usually the compile step) which is then removed as it impossible to resolve, leaving a PR without a conflict with the marker behind. |
Seems like a fix for the bot then? https://github.com/nextcloud/backportbot |
|
Here is an example of a PR with no conflict that gets marked due to a dropped/empty compile commit: #56974
Sounds right, will leave this open till I can link a fix from that end. Thanks |
The existing /compile amend command removes [skip ci] but merges the compile step with the changes themselves which is not ideal to maintain a cleaner history. Sometimes GitHub reviews are sufficient to confirm a backport without need to pull and ammend locally in the case where the developer prefers not to squash the compile step.
This new command allows removing [skip ci] from commits without triggering asset compilation.