Skip to content

Instantly share code, notes, and snippets.

@hbjydev
Created December 28, 2020 21:12
Show Gist options
  • Save hbjydev/9f742fbac91f3133022e628143bf65d9 to your computer and use it in GitHub Desktop.
Save hbjydev/9f742fbac91f3133022e628143bf65d9 to your computer and use it in GitHub Desktop.
It works!!
curl -L https://api.github.com/repos/rocky-linux/rockylinux.org/pulls/135/commits | jq --nul-output .[].commit.message - | xargs -0 -I _ sh -c 'echo "_" > /tmp/cmsg | pre-commit run --hook-stage commit-msg --commit-msg-filename /tmp/cmsg; rm /tmp/cmsg'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment