Add spacing after title prefixes ending with ] or -#16517
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Ensure space after title prefix ending with ] or -
Add spacing after title prefixes ending with Feb 18, 2026
] or -
pelikhan
approved these changes
Feb 18, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a spacing issue where title prefixes ending with ] or - were concatenated directly to titles without spacing, resulting in malformed titles like [Contribution Check Report]Contribution Check.
Changes:
- Modified
applyTitlePrefix()to automatically insert a space when the prefix ends with]or-and lacks a trailing space - Updated
createParentIssueTemplate()to useapplyTitlePrefix()instead of direct string concatenation - Added comprehensive test coverage for the new spacing behavior
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
actions/setup/js/sanitize_title.cjs |
Added logic to automatically insert a space after prefixes ending with ] or - when no trailing space exists |
actions/setup/js/create_issue.cjs |
Updated parent issue template creation to use applyTitlePrefix() for consistent spacing |
actions/setup/js/sanitize_title.test.cjs |
Added test cases covering prefixes ending with ], -, existing trailing spaces, and other characters |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Feb 18, 2026
52 tasks
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Title prefixes ending with
]or-were concatenated directly to titles without spacing, producing malformed titles like[Contribution Check Report]Contribution Check.Changes
sanitize_title.cjs: ModifiedapplyTitlePrefix()to automatically insert a space when the prefix ends with]or-and lacks a trailing spacecreate_issue.cjs: UpdatedcreateParentIssueTemplate()to useapplyTitlePrefix()instead of direct string concatenationsanitize_title.test.cjs: Added test coverage for]and-suffix scenariosExample
Prefixes ending with other characters (
:, emojis, etc.) preserve existing behavior.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/github/gh-aw/contents/.github%2Fworkflows%2Faudit-workflows.md/opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node --conditions node --conditions development --experimental-import-meta-resolve --require /home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/suppress-warnings.cjs /home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/dist/workers/forks.js(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.