diff --git a/.github/workflows/no-merge-commits.yml b/.github/workflows/no-merge-commits.yml new file mode 100644 index 000000000..9c9388589 --- /dev/null +++ b/.github/workflows/no-merge-commits.yml @@ -0,0 +1,22 @@ +name: Detect Merge Commits + +on: + pull_request: + +permissions: + contents: read + pull-requests: read + +jobs: + test: + name: Check for merge commits + runs-on: ubuntu-22.04 + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Run test + uses: NexusPHP/no-merge-commits@v1.2.0 + with: + token: ${{ secrets.GITHUB_TOKEN }}