DEV Community

Cover image for What the Commit!
Ephraim Duncan
Ephraim Duncan

Posted on

What the Commit!

My Workflow

What The Commit is a github action I created and it can be used in any github repository. I currently use it in the same repo I used to create the action. It changes the commit in the code and replaces it with a commit message from http://whatthecommit.com/

Submission Category:

Wacky Wildcards

Yaml File or Link to Code

GitHub logo ephraimduncan / whatthecommit-action

Github Action to modify last commit

To use the action, Add a workflow file to your project (e.g. .github/workflows/commit.yml) with this:

   name: Prettify Commit

   on:
     push:
       branches:
         - main
         - master
     pull_request:
       branches:
         - main
         - master

   jobs:
     build:
       runs-on: ubuntu-latest
       steps:
         - uses: actions/checkout@v2
         - name: Use Node.js
           uses: actions/setup-node@v1
           with:
             node-version: '12.x'
         - name: Prettify Commit
           uses: dephraiim/whatthecommit-action@v1
Enter fullscreen mode Exit fullscreen mode

Info

Check out http://whatthecommit.com for the commit messages.

This action changes the commit messages which can create conflicts especially for repos with a lot of contributors.

Projects Using the Action.

GitHub logo ephraimduncan / whatthecommit-action

Github Action to modify last commit

Top comments (2)

Collapse
 
waylonwalker profile image
Waylon Walker

This is a funny one 🤣. Scrolling through them there are a few I wouldn't want in my commit history.

Corrected link: whatthecommit.com

Collapse
 
ephraimduncan profile image
Ephraim Duncan

Thanks