Skip to content

Auto-label PRs based on paths touched #20187

Description

@JacobCoffee

It would be nice to label PRs based on existing labels based on the paths of files touched in a PR.

Touch .github/ -> github_actions
Touch warehouse/admin -> admin
etc.

This will save time manually adding the labels.

GitHub has an official action available for this:
https://github.com/actions/labeler


Good First Issue: This issue is good for first time contributors. If you've already contributed to Warehouse, work on another issue without this label instead. If there is not a corresponding pull request for this issue, it is up for grabs. For directions for getting set up, see our Getting Started Guide.

If you are working on this issue and have questions, feel free to ask them here, in the #pypa-dev chat channel on Libera, the PyPA Discord or on the Discourse.

Screenshot Required: If your pull request makes a visual change, include a screenshot of your update. This helps our team give you feedback faster.

Metadata

Metadata

Assignees

Labels

github_actionsPull requests that update GitHub Actions code

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions