Skip to content

feat: add centralized contributor governance workflow#3

Draft
R-Lawton wants to merge 3 commits into
mainfrom
feat/contributor-governance
Draft

feat: add centralized contributor governance workflow#3
R-Lawton wants to merge 3 commits into
mainfrom
feat/contributor-governance

Conversation

@R-Lawton

Copy link
Copy Markdown

adds a reusable GitHub Actions workflow that enforces contributor governance across Kuadrant repos:

  • auto-labels new issues with triage/needs-triage
  • protects triage labels — only org members can change them
  • closes PRs from non-org-members that don't link to a triaged issue
  • limits external contributors to one active PR per repo (extras auto-drafted)

target repos adopt this via a thin caller workflow (~15 lines) with secrets: inherit.

requires

  • org-level secret ORG_MEMBER_TOKEN with read:org scope
  • triage/* labels created in target repos (separate rollout step)

Implements the full contributor governance workflow with four jobs:
- label-new-issues: Auto-add triage/needs-triage to new issues
- protect-triage-labels: Prevent non-org-members from modifying triage labels
- check-pr: Enforce PR must link to triaged issue, prevent piggybacking
- enforce-single-pr: Limit contributors to one open PR at a time

All jobs check org membership and skip enforcement for org members.
Uses ORG_MEMBER_TOKEN secret for org membership checks.
Designed as reusable workflow (workflow_call) for use across repos.

Signed-off-by: R-Lawton <rlawton@redhat.com>
@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3abeabec-5215-45c0-a93e-3f427cc76bd9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/contributor-governance

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

R-Lawton added 2 commits June 18, 2026 17:24
Add clear section headers and inline comments explaining each job.
Fix bot messages to use proper capitalisation and grammar.
Remove emojis from all bot messages.

Signed-off-by: R-Lawton <rlawton@redhat.com>
Shared logic (re-fetch labels, ensure triage/needs-triage, post comment)
now runs once instead of being duplicated in labeled/unlabeled branches.

Signed-off-by: R-Lawton <rlawton@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant