Skip to content

[WIP] Remove 'in:comments' flag from history link generation#19608

Merged
pelikhan merged 2 commits intomainfrom
copilot/remove-in-comments-flag
Mar 4, 2026
Merged

[WIP] Remove 'in:comments' flag from history link generation#19608
pelikhan merged 2 commits intomainfrom
copilot/remove-in-comments-flag

Conversation

Copy link
Contributor

Copilot AI commented Mar 4, 2026

  • Identify all occurrences of in:comments and in:body in history link generation
  • Remove the in: qualifier logic from generate_history_link.cjs
  • Update tests in generate_history_link.test.cjs to remove in:comments and in:body assertions
  • Update comment in add_comment.cjs

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review March 4, 2026 14:25
Copilot AI review requested due to automatic review settings March 4, 2026 14:25
@pelikhan pelikhan merged commit 943e57b into main Mar 4, 2026
68 checks passed
@pelikhan pelikhan deleted the copilot/remove-in-comments-flag branch March 4, 2026 14:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the in: field qualifier logic (in:comments / in:body) from history-link search URL generation so the generated GitHub search query relies only on the workflow marker phrase plus existing type filtering.

Changes:

  • Removed in:comments / in:body qualifier selection from generate_history_link.cjs.
  • Updated generate_history_link.test.cjs to drop assertions/tests that required in: qualifiers.
  • Adjusted the explanatory comment in add_comment.cjs to match the new history URL behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
actions/setup/js/generate_history_link.cjs Stops adding in: qualifiers to the history search query (marker phrase only, plus existing repo/type qualifiers).
actions/setup/js/generate_history_link.test.cjs Removes tests/assertions that expected in:comments or in:body to be present in generated URLs/queries.
actions/setup/js/add_comment.cjs Updates comment describing history URL generation to no longer mention in:comments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

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.

3 participants