https://github.com/starryinternet/fail-on-fixups
Github action workflow to fail PR builds when fixups commits exist
https://github.com/starryinternet/fail-on-fixups
Last synced: about 1 year ago
JSON representation
Github action workflow to fail PR builds when fixups commits exist
- Host: GitHub
- URL: https://github.com/starryinternet/fail-on-fixups
- Owner: StarryInternet
- License: mit
- Created: 2024-02-24T17:59:32.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-24T18:30:25.000Z (over 2 years ago)
- Last Synced: 2025-02-05T09:38:58.175Z (over 1 year ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fail-on-fixups
Nothing fancy here, just a tiny action workflow to fail a PR build if it contains fixup commits. The motivation here is to keep mainline branches clean and easy to read.
# Installation
To configure the action simply add the following lines to your `.github/workflows/fail-on-fixups.yml` workflow file:
```yml
on: [push]
name: Fail-on-fixups
jobs:
fail-on-fixups:
name: Fail-on-fixups
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@v4
with:
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
- name: Fail-on-fixups
uses: StarryInternet/fail-on-fixups@master
```