https://github.com/matijs/no-fixups-action
GitHub Action that can be used as a blocking status check when there are 'amend!', 'fixup!', or 'squash!' commits in a pull request
https://github.com/matijs/no-fixups-action
amend autosquash commit fixup git github-action pull-request rebase squash
Last synced: 24 days ago
JSON representation
GitHub Action that can be used as a blocking status check when there are 'amend!', 'fixup!', or 'squash!' commits in a pull request
- Host: GitHub
- URL: https://github.com/matijs/no-fixups-action
- Owner: matijs
- License: mit
- Created: 2025-03-30T15:07:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-30T17:59:54.000Z (4 months ago)
- Last Synced: 2026-04-28T00:07:50.950Z (about 2 months ago)
- Topics: amend, autosquash, commit, fixup, git, github-action, pull-request, rebase, squash
- Language: Shell
- Homepage: https://github.com/matijs/no-fixups-action?tab=readme-ov-file#no-fixups-action
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# no-fixups-action
[](https://github.com/matijs/autosquash-blocker-action/actions/workflows/ci.yml)
This action can be used as a blocking status check on pull requests that contain
commits that should have been auto-squashed.
## Usage
```yaml
- 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](https://github.com/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:
```yaml
- 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](LICENSE.md)