[Scummvm-git-logs] scummvm master -> 503d07477810b4f7d1907fde4c6997cf60d3908a
lotharsm
noreply at scummvm.org
Thu Sep 17 08:40:51 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
503d074778 CI: Add a Github Action to check commit authors
Commit: 503d07477810b4f7d1907fde4c6997cf60d3908a
https://github.com/scummvm/scummvm/commit/503d07477810b4f7d1907fde4c6997cf60d3908a
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2026-09-17T10:40:46+02:00
Commit Message:
CI: Add a Github Action to check commit authors
Enforce that people have looked at the AI guidelines.
Changed paths:
A .github/workflows/check-commit-authors.yml
diff --git a/.github/workflows/check-commit-authors.yml b/.github/workflows/check-commit-authors.yml
new file mode 100644
index 00000000000..7a31b23fca5
--- /dev/null
+++ b/.github/workflows/check-commit-authors.yml
@@ -0,0 +1,34 @@
+name: Close PRs if the author has not read and followed AI-GUIDELINES.md
+
+on:
+ pull_request:
+ types:
+ - edited
+ - opened
+ - reopened
+ - synchronize
+
+jobs:
+ scan-commits:
+ runs-on: ubuntu-latest
+ permissions:
+ pull-requests: write
+
+ steps:
+ - name: Check for co-authored-by AI
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GH_REPO: ${{ github.repository }}
+ PR_NUMBER: ${{ github.event.pull_request.number }}
+ run: |
+ COMMIT_MESSAGES=$(gh api repos/$GH_REPO/pulls/$PR_NUMBER/commits --jq '.[].commit.message')
+ COAUTHOR_REGEX="Co-Authored-By: .*\(Claude .*anthropic.com\|Copilot \|Cursor \|Codex \)"
+
+ if echo "$COMMIT_MESSAGES" | grep -q "$COAUTHOR_REGEX"; then
+ echo "Found AI co-author in commit messages."
+ gh pr comment $PR_NUMBER --body "Please read [our AI guidelines](https://github.com/scummvm/scummvm/blob/master/AI-GUIDELINES.md)."
+ gh pr close $PR_NUMBER
+ exit 1
+ else
+ echo "No AI co-authors found"
+ fi
More information about the Scummvm-git-logs
mailing list