Skip to content

Github action workflow to fail PR builds when fixups commits exist

License

Notifications You must be signed in to change notification settings

StarryInternet/fail-on-fixups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

About

Github action workflow to fail PR builds when fixups commits exist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages