Skip to content

Feature request: top-level ignore list for files that should never trigger labels #965

Open

Description

@janhoy

Description

Add a top-level ignore key (a list of globs) whose matches are removed from the changed-files set before any label rule is evaluated, so those files can never, on their own, cause a label to be applied.

This is different from the existing per-rule ! negation: negation has to be repeated inside every rule and is evaluated per-rule, so it can't express "these files should never matter to any label" in a single place.

Justification

Lock files are the motivating case. A dependency bump can rewrite many lock files (gradle.lockfile, package-lock.json, poetry.lock, ...) scattered across per-module directories, without touching any real source. With directory-based rules like:

module-foo:
  - changed-files:
      - any-glob-to-any-file:
          - modules/foo/**

every module whose lock file changed gets labeled as if its source were modified. Excluding lock files inside each rule is verbose and easy to forget whenever a new rule is added. A single top-level ignore list would solve it once:

ignore:
  - '**/*.lock'
  - '**/gradle.lockfile'

Are you willing to submit a PR?

Possibly, if the approach is agreed.

Activity

  1. v-chiranjib-swain commented on Aug 10, 2026

    @v-chiranjib-swain
    Contributor

    Hello @janhoy ,
    Thank you for creating this. We will investigate it and get back to you as soon as we have some feedback.

  2. added
    feature request
    on Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions