Skip to content

Commit

Permalink
build: add Github action for preventing merge of fixup commits
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagorodriguez96 committed Jun 17, 2021
1 parent 8fa01cc commit 03050cf
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/git.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Syntax reference:
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
name: Git Checks

on:
pull_request:
types: [opened, synchronize]

jobs:
# Fixup commits are OK in pull requests, but should generally be squashed
# before merging to master, e.g. using `git rebase -i --autosquash master`.
# See https://github.com/marketplace/actions/block-autosquash-commits
block-fixup:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Block autosquash commits
uses: xt0rted/block-autosquash-commits-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 03050cf

Please sign in to comment.