Skip to content

Broken parsing of issue links with URLs #2522

Closed

Description

@Urgau

⚠️ Warning ⚠️

  • There are issue links (such as #123) in the commit messages of the following commits.
    Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtrees.
    • aec15eebbab119e3fcc06cdf252de74c742f5775

Originally posted by @rustbot in rust-lang/rust#163864 (comment)

Activity

  1. Urgau commented on Oct 6, 2026

    @Urgau
    MemberAuthor

    The rust-lang/rust@aec15ee commit contains:

    See https://code.claude.com/docs/en/changelog#2-1-277.

    Seems like we lint on the #2-1-277.

  2. Urgau commented on Oct 6, 2026

    @Urgau
    MemberAuthor

    Our regex is at

    static LINKED_RE: LazyLock<Regex> =
    LazyLock::new(|| Regex::new(r"\B(?P<org>[a-zA-Z-_]+/[a-zA-Z-_]+)?(#[0-9]+)\b").unwrap());

    and when looking at regex101, we actually detect n/changelog#2 with n/changelog being the org/repo and 2 being the issue number.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions