Skip to content

Automate OSCCA pull request triage - #8505

Open
moreal wants to merge 1 commit into
RustPython:mainfrom
moreal:auto-assign-oscca
Open

Automate OSCCA pull request triage#8505
moreal wants to merge 1 commit into
RustPython:mainfrom
moreal:auto-assign-oscca

Conversation

@moreal

@moreal moreal commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Motivation

OSCCA pull requests currently need their program label and assignee set manually. This automation keeps that metadata consistent for both draft and ready pull requests as soon as they are opened.

The workflow grants only issues: write, and it does not check out or execute pull request code.

Summary by CodeRabbit

  • New Features
    • Newly opened pull requests targeting the repository are automatically reviewed for eligible contributors.
    • Eligible pull requests receive the z-ca-2026 label and are assigned to their author.
    • Contributor matching is case-insensitive for consistent handling.
  • Bug Fixes
    • Pull requests from ineligible contributors are skipped without automatic labeling or assignment.

Assisted-by: Codex:gpt-5.6-sol
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro Plus

Run ID: a8ca09b1-902a-4140-ae34-e4227627ce54

📥 Commits

Reviewing files that changed from the base of the PR and between 24bd3b3 and f10be33.

📒 Files selected for processing (2)
  • .github/workflows/oscca-pr.yml
  • .github/zizmor.yml

📝 Walkthrough

Walkthrough

Added a restricted GitHub Actions workflow for opened pull requests. The workflow recognizes allowlisted OSCCA participants case-insensitively, labels and assigns matching pull requests, and skips other authors. Added a zizmor exception for the required trigger.

Changes

OSCCA pull request automation

Layer / File(s) Summary
Workflow trigger and security configuration
.github/workflows/oscca-pr.yml, .github/zizmor.yml
The workflow handles opened pull_request_target events with restricted permissions, a slim runner, and a five-minute timeout. zizmor documents the required trigger exception.
Author validation and pull request updates
.github/workflows/oscca-pr.yml
The script checks authors against a normalized allowlist. Recognized pull requests receive the z-ca-2026 label and are assigned to their authors. Other authors are logged and skipped.

Estimated code review effort: 3 (Moderate) | ~15 minutes

Sequence Diagram(s)

sequenceDiagram
  participant PullRequestEvent
  participant GitHubScript
  participant GitHubAPI
  PullRequestEvent->>GitHubScript: opened pull_request_target event
  GitHubScript->>GitHubScript: normalize allowlist and check author
  GitHubScript->>GitHubAPI: apply z-ca-2026 label
  GitHubScript->>GitHubAPI: assign pull request to author
Loading

Suggested reviewers: youknowone

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the pull request's main change: automating OSCCA pull request triage.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@fanninpm
fanninpm requested a review from youknowone August 12, 2026 15:43

@ShaharNaveh ShaharNaveh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense

@ShaharNaveh ShaharNaveh added the skip:ci Skip running the ci label Aug 12, 2026
@moreal moreal self-assigned this Aug 12, 2026
@moreal
moreal marked this pull request as ready for review August 12, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip:ci Skip running the ci

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants