Skip to content

Label PRs touching package.json, yarn.lock or Flow config as needs-meta-import - #2001

Merged
vzaidman merged 3 commits into
react:mainfrom
vzaidman:vzaidman/needs-meta-import-labeler
Sep 30, 2026
Merged

vzaidman merged 3 commits into
react:mainfrom
vzaidman:vzaidman/needs-meta-import-labeler

Conversation

@vzaidman

Copy link
Copy Markdown
Contributor

Summary

Adds an actions/labeler workflow that applies the needs-meta-import label to PRs changing any package.json, yarn.lock, .flowconfig or flow-typed/**.

Changelog: [Internal]

Test plan

Ran the workflow on my fork (with the github.repository == 'react/metro' guard removed):

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 30, 2026
@vzaidman
vzaidman requested a review from robhogan September 30, 2026 10:35
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Sep 30, 2026
Comment on lines +2 to +3
on:
pull_request_target:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should limit this to PRs targeting main (e.g. release branches and stacked PRs other than the bottom can't be imported).

Since we're using a lot more draft PRs now I'd also keep drafts unlabelled, and run the labeller when they're marked ready.

Suggested change
on:
pull_request_target:
on:
pull_request_target:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]

Comment thread .github/workflows/labeler.yml Outdated
Comment thread .github/labeler.yml
vzaidman and others added 2 commits September 30, 2026 12:10
Co-authored-by: Rob Hogan <2590098+robhogan@users.noreply.github.com>
Co-authored-by: Rob Hogan <2590098+robhogan@users.noreply.github.com>
@vzaidman
vzaidman requested a review from robhogan September 30, 2026 11:11
@vzaidman
vzaidman merged commit 0cd1641 into react:main Sep 30, 2026
15 checks passed
@vzaidman
vzaidman deleted the vzaidman/needs-meta-import-labeler branch September 30, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants