Apply label only if it's the only change to the document

Open
#788 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
github-actions, typescript, yaml
Domain
ci-cd, tooling

Research direction

Start with the changed-files and any-glob-to-any-file configuration shown in the issue, then trace how labeler evaluates matching files. Define how an exclusive match should behave for testing and documentation changes, and add coverage showing that labels apply only when the pull request contains exclusively those changes.

Written by the indexing model from the issue text.

Description

feature request

In https://github.com/jart/cosmopolitan/issues/1219 we had an issue where a label named 'testing' was triggering for commits with testing changes but is considered more than just testing. This makes the label a bit too noisy.

This can also apply to documentation PRs as well. Perhaps we only want to apply documentation and testing label if its a PR dedicated to only these changes.

Some way to add a mode where we are making an 'extra' exclusive match would be appreciated... to adjust below case to be specific to PRs with only changes to this folder.

testing:
    - changed-files:
        - any-glob-to-any-file:
            - test/**

Are you willing to submit a PR?
Not intending to make a PR for this proposal for now.

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.