test: add regression test for branch name single-quote escaping in pipeline triggers#183
Merged
jamesadevine merged 2 commits intomainfrom Apr 14, 2026
Conversation
…s test Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/7f2f137a-e8e6-47b2-ade6-1f7a23e6f5dc Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add regression test for branch name single-quote escaping
test: add regression test for branch name single-quote escaping in pipeline triggers
Apr 14, 2026
Collaborator
|
/rust-review |
Contributor
|
✅ Rust PR Reviewer completed successfully! |
Contributor
🔍 Rust PR ReviewSummary: Looks good — a clean, well-targeted regression test. Findings✅ What Looks Good
No bugs, security concerns, or suggestions. Ready to merge.
|
jamesadevine
approved these changes
Apr 14, 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 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.
generate_pipeline_resourcesescapes embedded single quotes in branch names ('→''), but the only existing escaping test (test_pipeline_resources_escapes_single_quotes) only asserted onsource:andproject:— leaving the branch escaping path completely uncovered.Changes
src/compile/common.rs— extendstest_pipeline_resources_escapes_single_quotesto include a branch with an embedded single quote and asserts the correct YAML output: