-
Notifications
You must be signed in to change notification settings - Fork 31
Fix label spacing in PR titles #275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added multiple test cases to ensure labels are always concatenated without spaces between brackets. These tests verify the correct behavior in various scenarios including incremental label additions and empty titles.
24f7495
to
9c7dac8
Compare
This test was overly complex and didn't test anything that wasn't already covered by other simpler tests.
Hmm all the tests are passing |
Do you have an example PR where this is not working as expected? |
When a title contains bracketed text like [Foo] that isn't a recognized label, and a real label is added, ensure all brackets are concatenated without spaces. For example, adding 'Platform' label to '[Foo] Bar' now produces '[Platform][Foo] Bar' instead of '[Platform] [Foo] Bar'. - Extract and preserve bracketed text at the beginning of titles - Concatenate all brackets (labels and non-labels) without spaces - Add comprehensive test cases for mixed recognized/unrecognized brackets
Yes, add the While - [Platform] [OpenAi] Add GPT 5 models
+ [Platform][OpenAi] Add GPT 5 models |
I see, I thought this could be related to some kind of non-breaking space, but that doesn't seem to be the case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
Co-authored-by: Tobias Nyholm <[email protected]>
Please fix the CS issues, then I would be happy to merge. |
- Remove trailing whitespace on blank lines - Add periods to PHPDoc summaries
Done |
When multiple labels are added to a PR, ensure they are concatenated without spaces between brackets