Skip to content

Proposal: [CI] Vouch system for first-time PR contributors - #69

Draft
rok wants to merge 1 commit into
mainfrom
vouch_proposal
Draft

rok wants to merge 1 commit into
mainfrom
vouch_proposal

Conversation

@rok

@rok rok commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Rationale for this change

Alternative proposal to the 5-day triage auto-close workflow (apache#55885), modeled on mitchellh/vouch and adapted for Apache Arrow / ASF CI constraints.

What changes are included in this PR?

  • .github/VOUCHED.td: Flat-text trust list (vouched handles and -denounced handles, sorted case-insensitively, compatible with mitchellh/vouch).
  • .github/workflows/vouch.yml: Hourly schedule + workflow_dispatch job closing recent (<=24h) open PRs from unvouched first-time contributors or denounced accounts, while allowing OWNER/MEMBER/COLLABORATOR, existing CONTRIBUTORs (unless denounced), vouched users, and bots.
  • .github/workflows/vouch_manage.yml: issue_comment workflow enabling maintainers and collaborators to run /vouch, /unvouch, and /denounce on issues or PRs to update .github/VOUCHED.td with [skip ci] and serialized concurrency.

ASF / Arrow design choices

  • Uses actions/github-script@v9 only (no third-party GitHub Actions).
  • Uses a scheduled workflow rather than pull_request_target for PR checks.
  • Includes [skip ci] on .github/VOUCHED.td updates to avoid triggering CI on main (can alternatively target a dedicated branch/repo or open a PR if branch rulesets disallow direct workflow pushes).

Trade-offs vs. 5-day triage auto-close (apache#55885)

  • Pros: Eliminates the 5-day untriaged PR backlog immediately and supports persistent /denounce blocks across PRs.
  • Cons: Higher friction for legitimate drive-by PRs (requires pre-vouching on an issue first) and requires commits/writes to .github/VOUCHED.td.

Alternative proposal to 5-day triage auto-close (apacheGH-55884 / PR apache#55885), modeled on mitchellh/vouch and adapted for Apache Arrow / ASF CI constraints.

Files:
- .github/VOUCHED.td: Flat-text trust list (vouched handles and -denounced handles, case-insensitive sorted, compatible with mitchellh/vouch).
- .github/workflows/vouch.yml: Hourly scheduled + workflow_dispatch job closing recent (<=24h) open PRs from unvouched first-time contributors or denounced users, while allowing OWNER/MEMBER/COLLABORATOR, existing CONTRIBUTORs, vouched users, and bots.
- .github/workflows/vouch_manage.yml: issue_comment automation allowing maintainers/collaborators to run /vouch, /unvouch, and /denounce on issues or PRs to update .github/VOUCHED.td with [skip ci].

ASF / Arrow design choices:
- Uses actions/github-script@v9 only (no third-party actions).
- Uses a scheduled workflow instead of pull_request_target for PR checks.
- Compares trade-offs vs 5-day triage auto-close: zero 5-day untriaged PR backlog and explicit opt-in via issue discussion, at the cost of requiring pre-vouching for legitimate cold PRs and writes to .github/VOUCHED.td (which may need a dedicated branch/repo or PR flow if main rulesets disallow workflow pushes).
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