Visitar URL original
Fix malformed issue links in overview HTML by strawberry-little-bear · Pull Request #9025 · microsoft/vscode-pull-request-github · GitHub
Skip to content

Fix malformed issue links in overview HTML - #9025

Open
strawberry-little-bear wants to merge 4 commits into
microsoft:mainfrom
strawberry-little-bear:fix/issue-link-href-quote
Open

strawberry-little-bear wants to merge 4 commits into
microsoft:mainfrom
strawberry-little-bear:fix/issue-link-href-quote

Conversation

@strawberry-little-bear

Copy link
Copy Markdown

Fixes #9022

Issue links in overview HTML were rewritten with one extra " at the end of the generated href value. Pull request links in the same code path did not have this extra character, so the two cases behaved differently and issue links produced malformed HTML.

This removes the stray quote and adds a regression test covering an overview containing both an issue link and a pull request link.

Tests:

  • git diff --check passed.
  • I could not complete npm ci --ignore-scripts locally because the workspace drive ran out of space during dependency extraction, so npm run compile:test and npm run test:scripts were not run locally.

Copilot AI balanced review requested due to automatic review settings October 6, 2026 12:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@alexr00

Copy link
Copy Markdown
Member

strawberry-little-bear, thanks for the PR! Could you just accept the CLA?

Copilot AI balanced review requested due to automatic review settings October 8, 2026 10:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@strawberry-little-bear

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@alexr00

Copy link
Copy Markdown
Member

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) October 9, 2026 10:41
@alexr00 Alex Ross (alexr00) added this to the 1.142.0 milestone Oct 9, 2026
Copilot AI balanced review requested due to automatic review settings October 9, 2026 12:05
auto-merge was automatically disabled October 9, 2026 12:05

Head branch was pushed to by a user without write access

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

assert.strictEqual(events[0].event, EventType.Merged);
assert.strictEqual(events[0].mergeRef, 'main');
});
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these tests now deleted?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That deletion was my mistake. When I pushed 1ee7b70 I only meant to add the bodyHTML assertion in the issue link test, but I ended up uploading a version of the file that had lost the parseCombinedTimelineEvents block along with the GraphQL and GitHubRepository imports it needs, so roughly 48 lines went missing.

Everything is back in c5f1606. The two parseCombinedTimelineEvents tests are at lines 125-162 of src/test/github/utils.test.ts with the imports restored, so the file is now unchanged apart from the bodyHTML assertion. Sorry for the churn, could you take another look at the current head?

Copilot AI balanced review requested due to automatic review settings October 9, 2026 12:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 9, 2026 12:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 9, 2026 12:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@alexr00

Copy link
Copy Markdown
Member

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) October 9, 2026 15:16
@alexr00

Copy link
Copy Markdown
Member

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue links in overview HTML are emitted with an extra quote in href

3 participants