fix: replace inline AB# modification with linked work items table#155
Merged
joshjohanning merged 9 commits intomainfrom Mar 10, 2026
Merged
fix: replace inline AB# modification with linked work items table#155joshjohanning merged 9 commits intomainfrom
joshjohanning merged 9 commits intomainfrom
Conversation
The append-work-item-title feature replaced AB# references inline, which removed the Development section link in Azure DevOps. Instead, add a "Linked Work Items" table at the bottom of the PR body, keeping original AB# references intact. - Replace inline AB# modification with a separate H3 table section - Add new `add-work-item-table` input, deprecate `append-work-item-title` - Section is idempotent (replaced on each run, not accumulated) - Bump version to 3.2.1 Closes #154
…revent duplicate entries
Contributor
There was a problem hiding this comment.
Pull request overview
Reworks the append-work-item-title behavior to avoid breaking Azure DevOps’ PR “Development” linkage by preserving inline AB# references and appending a separate “Linked Work Items” table section to the PR body instead.
Changes:
- Introduces
add-work-item-tableinput and treatsappend-work-item-titleas a deprecated alias. - Updates PR-body mutation logic to append/replace a dedicated “Linked Work Items” table (idempotent via section markers).
- Updates tests, documentation, and bumps version to
3.2.1.
Reviewed changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/index.js |
Adds new input handling and replaces inline AB# modification with an appended/replaced Linked Work Items table section. |
action.yml |
Deprecates append-work-item-title and adds add-work-item-table input definition. |
__tests__/index.test.js |
Updates/extends Jest coverage for the new table behavior and deprecated alias behavior. |
README.md |
Documents the new input and adds a workflow guard to avoid azure-boards bot-triggered duplicate runs. |
package.json |
Bumps package version to 3.2.1. |
package-lock.json |
Updates lockfile version metadata to 3.2.1. |
badges/coverage.svg |
Updates coverage badge value. |
You can also share your feedback on Copilot code review. Take the survey.
📦 Draft Release CreatedA draft release v3.2.1 has been created for this PR. Next Steps
|
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.
Summary
Fixes #154 - The
append-work-item-titlefeature was modifyingAB#references inline in the PR body, which caused the azure-boards bot to break the Azure DevOps Development section link. This PR replaces the inline approach with a separate "Linked Work Items" table appended to the PR body.Changes
add-work-item-tableinput - Adds an H3 "Linked Work Items" table to the bottom of the PR body with work item ID, type, and titleappend-work-item-title- Still works as an alias foradd-work-item-table, with adeprecationMessageinaction.ymlAB#references are preserved - The table uses plain work item numbers (noAB#prefix) linked to Azure DevOps URLs, preventing the azure-boards bot from creating duplicate Development entries or triggering edit loopsif: github.actor != 'azure-boards[bot]'to usage example to avoid duplicate workflow runsHow it works
Before (broke Azure DevOps link):
After (table appended, original text untouched):
Testing
Doc Enhancements