RDKB-66032 : Fix PR title regex to allow digits in Jira project keys - #68
Merged
Conversation
Jira project keys can contain digits (e.g. XB10, XB7, TCHXB7, XER10) as long as they start with a letter. The previous regex [A-Z]+ only matched letter-only keys like RDKB/SHARMAN, so valid tickets such as XB10-2917 were incorrectly flagged. Updated to [A-Z][A-Z0-9]+ for both single and multi-ticket titles.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the shared PR title lint workflow to correctly accept Jira project keys that include digits, preventing false negatives for titles like XB10-2917 : ....
Changes:
- Adjusted the Jira project-key regex in the PR title format check from
[A-Z]+to[A-Z][A-Z0-9]+to allow digits after the first character.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
apattu200
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the PR Format Check title validation to accept Jira project keys with digits (e.g. XB10, XB7, TCHXB7).
Changed project-key pattern from
[A-Z]+to[A-Z][A-Z0-9]+.Real example: rdkcentral/utopia#374 was wrongly flagged as failing.