Skip to content

Use regex to skip unnecessary reference processing in ProcessCommitWorker

What

Adds regex checking for references to Issue, ExternalIssue, Commit, MergeRequest or any url. Uses this to avoid scheduling ProcessCommitWorker jobs as well as to return early from Mentionable#referenced_mentionables when called from elsewhere.

Why

Raised as a performance issue in #28359 (closed)

Acceptance criteria

What are the relevant issue numbers?

Closes #28359 (closed)

Merge request reports