Repository navigation
Refactor auto-merge workflow for trusted contributors - #2410
jeniferalaquoke wants to merge 1 commit into
Conversation
Automates the labeling of pull requests submitted by trusted contributors using GitHub Actions. Automatically creates missing repository labels and applies predefined GSSoC approval, priority, merge readiness, quality, and contribution type labels to eligible pull requests. Supports automatic labeling through pull request events and manual backfilling of existing open PRs while skipping draft PRs and untrusted contributors. Ensures consistent PR organization and simplifies contribution management without performing automatic merges.
|
Thank you for submitting your pull request, @jeniferalaquoke! 🙌 |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Automates the labeling of pull requests submitted by trusted contributors using GitHub Actions. Automatically creates missing repository labels and applies predefined GSSoC approval, priority, merge readiness, quality, and contribution type labels to eligible pull requests. Supports automatic labeling through pull request events and manual backfilling of existing open PRs while skipping draft PRs and untrusted contributors. Ensures consistent PR organization and simplifies contribution management without performing automatic merges.
📝 Pull Request Description
Related Issue
Closes #
Summary
Provide a short, reviewer-friendly summary of what changed and why.
Type of Change
How Has This Been Tested?
Describe the testing steps performed.
Screenshots (if applicable)
Add screenshots or videos to demonstrate the changes.
Checklist
This change refactors the GitHub Actions workflow
.github/workflows/auto-merge-trusted.yml. It is the only file changed (+122/-94). The workflow labels pull requests from trusted contributors. It does not merge pull requests.Changes:
ensureLabels()checks each required label withgetLabel.createLabel.getLabelagain to confirm that another run created the label.quality:exceptionalnow reads "Exceptional quality contribution".labelNamesis computed once fromLABELS.labelPRuses it when it callsaddLabels.isTrusted(author)helper compares the lowercased author name withTRUSTED. Both the manual and event paths use it.workflow_dispatch): The code fetches open pull requests withgithub.paginateinstead of a manualwhileloop. Draft pull requests and untrusted authors are skipped. The remaining trusted pull requests are labeled.context.payload.pull_requestis missing, the step callscore.setFailedand returns.workflow_dispatch. The inline comment onworkflow_dispatchis removed.Testing: The PR description does not state any tests. No workflow run results were available for this review.