Skip to content

GitHub Action that can be used as a blocking status check when there are 'amend!', 'fixup!', or 'squash!' commits in a pull request

License

Notifications You must be signed in to change notification settings

matijs/no-fixups-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

no-fixups-action

CI

This action can be used as a blocking status check on pull requests that contain commits that should have been auto-squashed.

Usage

- name: Check for 'amend!', 'fixup!', or 'squash!' commits
  uses: matijs/no-fixups-action@v1

This action will only run on pull requests and will fail when used on, for example, pushes. There is one input. There are no outputs.

It is not necessary to use actions/checkout first. This action takes care of that and can be used on its own. See below if you want to do the checkout yourself.

If you want to use actions/checkout yourself

Make sure to pass the fetch-depth and ref inputs to the checkout action and let no-fixups-action know it can skip the checkout like this:

- name: Checkout
  uses: actions/checkout@v4
  with:
    fetch-depth: 0
    ref: ${{ github.event.pull_request.head.sha }}
- name: Check for 'amend!', 'fixup!', or 'squash!' commits
  uses: matijs/no-fixups-action@v1
  with:
    skip-checkout: true

License

The scripts and documentation in this project are released under the MIT License

About

GitHub Action that can be used as a blocking status check when there are 'amend!', 'fixup!', or 'squash!' commits in a pull request

Topics

Resources

License

Stars

Watchers

Forks

Languages