actions / actions/labeler

Support using other labels as criteria

Open
#129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request needs eyes
Dominant language
TypeScript
Stars
2.5k
Forks
492
PR merge metrics
No merged PRs in 30d

Description

This action so far has been based on using the file path(s) to determine which labels to set, but would it be possible to also have it support labels that are already on the PR? My use case is that I want to add a label if the VERSION file has not been modified. However if the PR has the label skip-release, that file is no longer required to be modified, thus no additional labels should be produced.

One potential way for this to work would be something like this:

needs-version-bump:
  - all:
    - "!VERSION"
    - "!label:skip-release"

Contributor guide

Open the contributing guide

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.

Research direction

Start by tracing the existing file-path criteria and the YAML configuration shown in the issue. Determine how pull-request labels can participate in the same criteria, then verify that a rule combining !VERSION with !label:skip-release produces no additional labels when skip-release is present.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.