Skip to content

feat: auto-assign labels, milestone, and projects on PR open#1397

Merged
sanjay-kv merged 3 commits into
mainfrom
copilot/feature-auto-populate-issue-details
May 4, 2026
Merged

feat: auto-assign labels, milestone, and projects on PR open#1397
sanjay-kv merged 3 commits into
mainfrom
copilot/feature-auto-populate-issue-details

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

New PRs previously had no labels, milestone, or project assignments. This updates the autolabeler workflow to populate all three automatically on pull_request_target: opened.

Type of Change

  • New feature (e.g., new page, component, or functionality)

Changes Made

.github/workflows/autolabler.yml

  • Labels: Changed PR label step from ["recode"]["in-review", "level 1", "recode"]
  • Milestone: Added step to look up recode:launch 3.0 by name (queries all open milestones) and assign it to the PR
  • Projects: Added step to add the PR to @recode-web and Recode Public Roadmap via GitHub GraphQL Projects v2 API
    • Uses secrets.GH_PAT if configured (needs Projects: read/write scope); falls back to GITHUB_TOKEN
    • continue-on-error: true — permission failure on project assignment won't block labels/milestone
    • Queries up to 100 org projects to avoid pagination gaps

Note for maintainers: Project assignment requires a fine-grained PAT with Projects: read and write permission stored as the GH_PAT repo secret. GITHUB_TOKEN alone lacks org-level project write access, so that step will silently skip without it.

Dependencies

  • No new dependencies. Uses existing actions/github-script@v7.

Checklist

  • My code follows the style guidelines of this project.
  • I have tested my changes across major browsers and devices
  • My changes do not generate new console warnings or errors .
  • I ran npm run build and attached screenshot(s) in this PR.
  • This is already assigned Issue to me, not an unassigned issue.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recode-website Ready Ready Preview, Comment May 4, 2026 1:03pm

Copilot AI changed the title [WIP] Add automatic population of labels, projects, and milestones for issues feat: auto-assign labels, milestone, and projects on PR open May 4, 2026
Copilot AI requested a review from sanjay-kv May 4, 2026 13:04
@sanjay-kv sanjay-kv marked this pull request as ready for review May 4, 2026 13:27
@sanjay-kv sanjay-kv merged commit 6b4aabc into main May 4, 2026
7 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project.

I would be grateful if you can nominate for keeping this opensource project live and running Link to Nominate. Please do star the repo and Keep up the fantastic work! 🚀

@sanjay-kv
Copy link
Copy Markdown
Member

@Adez017 can u raise a sample PR and see if this is working?

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.

💡[Feature]: Auto populate side labels , projects, milestone when raising new issue

2 participants