Skip to content

Commit

Permalink
.github: add commit validator
Browse files Browse the repository at this point in the history
Problem: RFC 1 outlines specific requirements for framework
repositories. This includes directives about commit messages.
Sometimes, it's easy to forget about these requirements.

Add the PR validator workflow for this repository in GitHub, so
that every PR's commit messages will be checked. It's much easier
to comply with RFC 1 if an external tool is checking for commit
messages.
  • Loading branch information
wihobbs committed Dec 6, 2023
1 parent a6aeec0 commit 030aa10
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on: [pull_request, push, merge_group]
name: ci
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check-pr:
name: validate commits
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- run: git fetch origin main
- uses: flux-framework/pr-validator@master

0 comments on commit 030aa10

Please sign in to comment.