From 1464165b3318ad91bc9b7b02141e24efb883a8da Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Thu, 6 Jul 2023 11:51:09 +0800 Subject: [PATCH] chore: add no-merge-commits.yml --- .github/workflows/no-merge-commits.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/no-merge-commits.yml 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 }}