Label pull request based on the labels of linked issues

Open
#139 1 comment 35 reactions 0 assignees View on GitHub

@gbhavya487-ux is already working on this.

Since Aug 21, 2026.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github, github-actions, typescript
Domain
ci-cd, tooling

Research direction

No repository files or tests are named. Start by reading the linked GitHub API discussion and inspecting the action's existing label-handling flow; done would require identifying linked issues through a supported mechanism and transferring their labels without relying on brittle parsing.

Written by the indexing model from the issue text.

Description

feature request needs eyes

Our pull request template encourages users to link all pull requests to issues, which we spend quite some time labeling and triaging.

So it would be great if this action could be used to transfer labels from the linked issues to the pull request itself.

This would probably require that linked issues are exposed by the GitHub API, which does not seem to be the case currently: https://github.community/t/get-all-issues-linked-to-a-pull-request/14653/8

As a workaround one could parse the PR description, the commit messages and the PR events to extract the list of linked issues, but that is quite brittle.

If you'd be interested in this feature, please leave a comment on the discussion above, to make the interest in this feature clearer to GitHub.

Dominant language
TypeScript
Stars
2.5k
Forks
488
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from actions/labeler

All issues in actions/labeler

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.