Closed minusfive closed 1 year ago
Thanks! I think this is a good idea overall, as long as it is kept to an option like this (because it messes with the history).
A few notes on top of the review items above:
ammend
s to amend
in other placeskeymap-drawer
and change the description accordingly?I tested simply allowing the user to set any commit / push options they'd like, but deemed it too dangerous, as you really have to get all the pieces right to avoid messing up the history (e.g. checkout depth, skip_fetch, etc). So figured better/safer to make it a simple boolean option
Makes sense to me 👍
You don't need the [Skip CI] flag on the commit message Thanks!
@caksoylar done
Thanks again!
@caksoylar how terrible of an idea is this?
This PR:
ammend_commit
(boolean
) github action input which, when set totrue
it, well, ammends the commit which triggered the action, instead of creating a new one.TODO:
Warning
like the one fromgit-auto-commit-action
, e.g. below)You can see it working here https://github.com/minusfive/zmk-config/commits/main
Action YAML:
A few things to note:
[Skip CI]
flag on the commit message as github automatically disables CI for action-generated commits, see: