Skip to content

Commit

Permalink
Add workflow to ensure no merge commits are included
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Jan 10, 2025
1 parent 6f3c152 commit f80889f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/no_merge_commits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Merge Commit Check

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-no-merges-${{ github.event.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: read

jobs:
validate-merge-commits:
name: Ensure No Merge Commits
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Check for Merge Commits
uses: NexusPHP/no-merge-commits@9754184b5234ed0c8ef57d63dc70f03f1f753cba # v2.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f80889f

Please sign in to comment.