gradle-pre-commit-git-hooks icon indicating copy to clipboard operation
gradle-pre-commit-git-hooks copied to clipboard

allow "wip" commits

Open googol42 opened this issue 10 months ago • 0 comments

What would you like to be able to do?

I wanted to suggest to add an option to allow "wip" commits. Sometimes I am in a hurry or just want to test something or want to show some a colleague something which requires a commit. Therefore it would be nice if I just could create a commit like git commit -m "wip". Below I have an example how one could configure it.

Unfortunately the following does not work as the pattern in the hook requires the colon and two following characters:

gitHooks {
    commitMsg {
        conventionalCommits {
            types("wip")
            defaultTypes()
        }
    }
    createHooks(true)
}

Thank you for this cool plugin.

If you have any ideas on how this should be implemented, please tell us here.

gitHooks {
    commitMsg {
        conventionalCommits {
            allowWorkInProgress(/* optionally a list of strings to always allow */) 
        }
    }
    createHooks(true)
}

Is this a feature you are interested in implementing yourself?

Yes

googol42 avatar Feb 12 '25 13:02 googol42