.gitar/rules/assign-maintainer-reviewer.md
When a pull request is opened by someone who is not a project maintainer, assign a maintainer as the PR assignee and post a welcome comment pointing the contributor to the community Slack.
Get the GitHub username of the person who opened the pull request.
Read MAINTAINERS.md. Extract all GitHub usernames by parsing the GitHub profile URLs in the format https://github.com/<username> — these appear in both the TSC and Maintainers sections. The full list of maintainers is the union of both sections.
Compare the PR author's username (case-insensitively) against the extracted maintainer list.
If the author is a maintainer → skip this rule entirely. Take no action.
Perform both of the following:
Always assign @natemort as an assignee on the pull request.
Assign one additional reviewer from the rotation list below, selected by taking (PR number) mod 6 to determine the index (0-based):
Important: You must set the assignees field on the pull request, not just the reviewers field. Both @natemort and the rotation pick must appear as assignees.
Post the following comment on the pull request, substituting the PR author's GitHub username for {author}:
Hi @{author}, thanks for your contribution! A maintainer has been assigned to review your PR.
While you wait, consider joining our community on the CNCF Slack — the #cadence-contributors channel is the best place to ask questions, get help unblocking test runs, and connect directly with maintainers to help accelerate your review.
👉 Join the CNCF Slack · Getting started guide
Skip this rule entirely (no assignment, no comment) when either of these is true:
MAINTAINERS.md (TSC or Maintainers section)