Skip to content

Feature request: Path AND content mentions #2182

@fmease

Description

@fmease

I know the existing TOML schema doesn't really lend itself to that but it would be quite handy if you could declare a [mentions] that requires the path to match a specific path (prefix) AND the patch to contain the addition of a specific pattern.

Regarding a concrete use case, see rust-lang/rust#146668 (comment) for context. I basically want the path to start with /library/ AND the pattern to be negative_bounds. Explainer: Adding #![feature(…, negative_bounds, …)] to the stdlib and friends is a hard no-go but it's okay to be used inside tests/.

Well, I guess I also want to denylist compiler/ tho that's not a hard requirement. So maybe I want an exclude_filepaths?: null | string[] instead (for allowlisting tests/ in my case)?


Hmm, feel free to close as WONTFIX if you deem this too complex / laborious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions