Implement ExposedThing functionality #269
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prevent Fixup Commits | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
prevent-fixup-commits: | |
name: Check for fixup! commits | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
- name: Check for fixup! commits | |
run: | | |
if git log origin/main..HEAD | grep -q -e '^ fixup!'; then | |
echo "Error: fixup! commits are present in this PR, please remove them before merging." | |
exit 1 | |
fi |