ci: add community PR gates (CLA draft gate, linked issue sync, flood guard) - #3638
Merged
Conversation
…guard) Port the three reviewer-load automations from deepset-ai/haystack to this repo. All three rely on infrastructure already present here: the `license/cla` commit status, the org-level `HAYSTACK_BOT_TOKEN` and `GH_PROJECT_PAT` secrets, and Open Source project #5. - CI_cla_draft_gate.yml: drafts first-time contributor PRs whose CLA isn't signed within 1h, unassigns the reviewer, and restores both when it's signed; escalates (reminder/warning/close) over 14 days. Team members are exempt via effective repo permission (author_association is unreliable for private org members). - CI_linked_issue_review.yml: assigns the requested reviewer to the linked issue (only if unassigned) and moves it to "In review" on project #5. - CI_pr_flood_guard.yml: warns on duplicate PRs for the same issue or more than two open PRs from the same external author. Files use the CI_ prefix so CI_comment_fork_prs.yml doesn't mistake them for integration folders. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issues
Part of https://github.com/deepset-ai/haystack-private/issues/461
Proposed Changes:
Bring the CLA/review/draft PR automations from deepset-ai/haystack#11995 (+ follow-ups) to this repo.
CI_cla_draft_gate.yml— reduces review load from first-time-contributor PRs without a signed CLA:license/claisn't green, convert it to draft, remove the requested reviewer (remembered in a hidden comment marker), labelcla-pending, and explain why.author_associationis unreliable (private org members show up asCONTRIBUTOR/NONE), so it checks effective repo permission (write/admin).skip-cla-reminderlabel.CI_linked_issue_review.yml— when a PR links an issue, assigns the requested reviewer to that issue (only if nobody is assigned yet) and moves it to:eyes: In reviewon project #5. An assigned issue signals other contributors that it's taken, preventing duplicate PRs.CI_pr_flood_guard.yml— on newly opened external PRs, warns if another open PR already targets the same linked issue (duplicate) or the author has more than two open PRs, asking them to hold off until the queue clears.How did you test it?
haystackrepoNotes for the reviewer
haystackworkflows (including the latest fixes: team-member exemption, reviewer re-assignment on self-ready, andpull-requests: writeon the flood guard so it can post comments). Only the workflowname:fields and theCI_filename prefix were changed.Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:.🤖 Generated with Claude Code