]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
.github/workflows: check external PR author perms and manage CI approval labels 70448/head
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 22 Jul 2026 14:41:58 +0000 (10:41 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Sat, 1 Aug 2026 21:14:01 +0000 (17:14 -0400)
commit2855b24dcfdf005c261676b5e86d627c44720df3
treed8abbd546fc25789394516831baa997fe82226a6
parent8482cb11bc58942906e2343ebd87ef2c7a1dd01d
.github/workflows: check external PR author perms and manage CI approval labels

Add a GitHub Actions workflow (`author-ci-perms.yml`) that triggers on PR
creation, updates, and re-openings (`opened`, `synchronize`, `reopened`) to
check if the author has collaborator permissions on the repository.

If the author's permission level is 'none' (external contributor):
- Attach the `needs-ci-approval` label to signal required review.
- Revoke existing approval by removing `ci-approved` on new pushes/updates.
- Comment on initial PR creation explaining that a Ceph org member must
  add the `ci-approved` label before CI will run.

Assisted-by: Gemini
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
.github/workflows/author-ci-perms.yml [new file with mode: 0644]