Skip to content
git-commit

GitHub Action

What The Commit

v1.0.1 Latest version

What The Commit

git-commit

What The Commit

Changes the last commit to a remotely fetched one from whatthecommit.com

Installation

Copy and paste the following snippet into your .yml file.

              

- name: What The Commit

uses: ephraimduncan/whatthecommit-action@v1.0.1

Learn more about this action in ephraimduncan/whatthecommit-action

Choose a version

What the Commit

GitHub Action for committing messages from http://whatthecommit.com

This is a GitHub Action that changes the last commit and replaces it with a commit message from whatthecommit.com

A submission for the DEV: GitHub Actions For Open Source! hackathon

Risky for repos that have forks ❗

Setup

  1. Add a workflow file to your project (e.g. .github/workflows/commit.yml) with this:

    name: New 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@main

Commiting

Using the workflow above, GitHub will modify the last commit with a commit message from http://whatthecommit.com

Development

Contributions and Suggestions are always welcome!

License

MIT