DEV Community

Cover image for What the Commit!
Ephraim Duncan
Ephraim Duncan

Posted on

5 2

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

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

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

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay