DEV Community

loading...
Cover image for What the Commit!

What the Commit!

Ephraim Atta-Duncan
🦄 | I love unicorns
・1 min read

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 dephraiim / 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

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 dephraiim / whatthecommit-action

Github Action to modify last commit

Discussion (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
dephraiim profile image
Forem Open with the Forem app