Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ephraimduncan/whatthecommit-action
Github Action to modify last commit
https://github.com/ephraimduncan/whatthecommit-action
actions actionshackathon commit git github whatthecommit workflow
Last synced: 20 days ago
JSON representation
Github Action to modify last commit
- Host: GitHub
- URL: https://github.com/ephraimduncan/whatthecommit-action
- Owner: ephraimduncan
- License: mit
- Created: 2020-08-18T23:47:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-06T09:04:12.000Z (almost 4 years ago)
- Last Synced: 2024-10-04T22:18:06.412Z (about 1 month ago)
- Topics: actions, actionshackathon, commit, git, github, whatthecommit, workflow
- Language: JavaScript
- Homepage: https://dev.to/dephraiim/what-the-commit-40gf
- Size: 246 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# 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!](https://dev.to/devteam/announcing-the-github-actions-hackathon-on-dev-3ljn) hackathon_
> _Risky for repos that have forks ❗_
### Setup
1. **Add a workflow file** to your project (e.g. `.github/workflows/commit.yml`) with this:
```yml
name: New Commiton:
push:
branches:
- main
- master
pull_request:
branches:
- main
- masterjobs:
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](./license)