PoC: Using Git Commit Messages As a CLI

OUseful.Info, the blog...

Following an idle wonder last week on Using Git Commit Messages as a Command Line?, I had a play and came up with a demo of sorts: ouseful-testing/action-steps.

The idea is that by creating a Github Action that performs actions based, in part at least, on the contents of a Github commit message, we can start to use commit messages as as a CLI to invoke particular Github Action mediated activities.

My first couple of proofs of concept were:

  • a simple script that replaces one file (the README) with the contents of another. At the moment, both files need to be in the same branch (ideally, the replacement files would be pulled in from another branch but I couldn’t figure out how to do that offhand). If you just make a “dummy” commit to any old file with the commit message Update Readme the README will be updated…

View original post 164 more words

Published by iamvistinginstructoreric

Hi, I am Eric, I am using Wordpress to publish my content!

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.