Support tags with replaceable text - #728
Merged
Merged
Conversation
Currently small in scope, this adds a way to map a label to a tag, including some replacement text. For now, this handles monthly highlights. Update the config with new label -> tag mapping for spotlight projects and monthly highlights. So we don't have to change the config every month, this maps a general "Highlight" label to a "Highlight-<Month>" tag in Azure DevOps.
Member
Author
|
Once this is merged, I'll update the configs in other .NET public repos. |
Member
Author
|
@chcomley do you want to take a look? |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The current placeholder replacement can leak the literal $FullMonthText$ token into produced Azure DevOps tags when sprint/month data is missing.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds support for label→Azure DevOps tag mappings that include replaceable text (currently used to expand a general “Highlight” label into a month-specific Highlight-<Month> tag), reducing the need for monthly config edits.
Changes:
- Extend
StoryPointSizewithFullMonthTextfor generating full month names from sprint metadata. - Update tag generation to replace
$FullMonthText$placeholders when producing work item tags. - Update
quest-config.jsonand tests to include/validate the new highlight tag mapping.
File summaries
| File | Description |
|---|---|
| quest-config.json | Adds WorkItemTags mappings, including the new Highlight-$FullMonthText$ tag template and spotlight tag mappings. |
| DotNet.DocsTools/GitHubObjects/StoryPointSize.cs | Introduces a full-month text accessor used for tag template replacement. |
| actions/sequester/Quest2GitHub/Models/WorkItemProperties.cs | Applies placeholder replacement when generating Azure DevOps tags from GitHub labels. |
| actions/sequester/Quest2GitHub.Tests/BuildExtendedPropertiesTests.cs | Updates test data and expectations to cover the new highlight tag template behavior. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
chcomley
approved these changes
Sep 4, 2026
meaghanlewis
approved these changes
Sep 4, 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.
Currently small in scope, this adds a way to map a label to a tag, including some replacement text. For now, this handles monthly highlights.
Update the config with new label -> tag mapping for spotlight projects and monthly highlights. So we don't have to change the config every month, this maps a general "Highlight" label to a "Highlight-" tag in Azure DevOps.