Skip to content

Add label-scoped title deduplication for create-issue - #74941

Merged
pelikhan merged 9 commits into
mainfrom
copilot/enable-query-qualifiers
Nov 5, 2026
Merged

pelikhan merged 9 commits into
mainfrom
copilot/enable-query-qualifiers

Conversation

Copilot AI commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Title deduplication searches all repository issues, regardless of creation labels. Broad, capped searches can miss matching titles outside the fetched pages.

  • Configuration: Add deduplicate-by-title-labels, requiring all listed labels (AND) in both open and recently closed candidate searches.
  • Compatibility: Preserve repository boundaries, the 30-day closed window, and existing title matching. Omitted or empty filters retain current behavior; creation labels remain independent.
safe-outputs:
  create-issue:
    title-prefix: "[docs-consistency-check] "
    labels: [documentation, automated]
    deduplicate-by-title: true
    deduplicate-by-title-labels: [documentation, automated]

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for limiting title-deduplication searches Add label-scoped title deduplication for create-issue Nov 4, 2026
Copilot AI requested a review from pelikhan November 4, 2026 20:28
@pelikhan
pelikhan marked this pull request as ready for review November 4, 2026 20:40
Copilot AI adaptive review requested due to automatic review settings November 4, 2026 20:40
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · routed: opus55 medium · ~11 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · routed: gpt56 max · ~1 AIC · ⌖ ~1 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · routed: gpt56 max · ~4 AIC · ⌖ ~1 AIC · ⊞ 118 · ◷

Generated by Ponytail Reviewer for #74941

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-04T20:45:00Z
review_event: COMMENT
top_themes: [configuration normalization, silent deduplication gaps]
files_reviewed: [actions/setup/js/create_issue.cjs, actions/setup/js/create_issue.test.cjs, actions/setup/js/types/safe-outputs-config.d.ts, docs/src/content/docs/reference/frontmatter-full.md, docs/src/content/docs/reference/safe-outputs.md, pkg/parser/schemas/main_workflow_schema.json, pkg/workflow/compile_outputs_issue_test.go, pkg/workflow/create_issue.go, pkg/workflow/safe_outputs_handler_registry_issues.go]
comment_count: 1

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷
Comment /review to run again

@github-actions github-actions Bot 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.

Reviewed the label-scoped title deduplication change. One medium issue found: whitespace-only filter labels can disable repository-level deduplication without warning. Other specialist candidates were not actionable or were contradicted by the documented independent semantics of creation labels and search filters.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again

Comment thread actions/setup/js/create_issue.cjs Resolved

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.

🟡 Changes recommended

Untrusted issue-title interpolation in filter labels allows JSON injection that can override target-repo and disclose generated content to an attacker-controlled repository when the token has access.

1 open issue
What changed in this PR

Adds label-scoped title deduplication to create-issue, addressing #73008 by narrowing candidate searches without changing creation labels or title matching.

Changes:

  • Adds deduplicate-by-title-labels to the schema, compiler configuration, and runtime types.
  • Applies all configured labels to both open and recently closed issue searches.
  • Adds parsing, compilation, and runtime tests, plus reference documentation.
File Description
pkg/​workflow/​safe_outputs_handler_registry_issues.go Passes filter labels to the runtime handler.
pkg/​workflow/​create_issue.go Adds the Go configuration field.
pkg/​workflow/​compile_outputs_issue_test.go Tests parsing and generated handler configuration.
pkg/​parser/​schemas/​main_workflow_schema.json Defines the optional label-filter array.
docs/​src/​content/​docs/​reference/​safe-outputs.md Explains filtering semantics and provides an example.
docs/​src/​content/​docs/​reference/​frontmatter-full.md Adds the option to the full reference.
actions/​setup/​js/​types/​safe-outputs-config.d.ts Declares the configuration type.
actions/​setup/​js/​create_issue.test.cjs Tests filtering, quoting, and compatibility behavior.
actions/​setup/​js/​create_issue.cjs Adds label qualifiers to both candidate searches.

Review effort: Balanced (auto)

AddTemplatableBool("staged", templatableBoolPtrToStringPtr(c.Staged)).
AddTemplatableBoolOrInt("deduplicate_by_title", c.DeduplicateByTitle)
AddTemplatableBoolOrInt("deduplicate_by_title", c.DeduplicateByTitle).
AddStringSlice("deduplicate_by_title_labels", c.DeduplicateByTitleLabels)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 5b1bbd1: the schema rejects ${{ expressions in deduplicate-by-labels items at compile time, and the compiler tests cover both exact and embedded expressions. This prevents untrusted event values from reaching the handler JSON.

@github-actions github-actions Bot 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.

Skills-Based Review 🧠

Applied /tdd and /grill-with-docs. No blocking defects found. Four suggestions are inline, mostly around test strength and one behavioral gap.

📋 Key Themes & Highlights

Key Themes

  • Test strength: The label-quoting and AND-filter tests assert query strings only. A loop with no search calls would pass silently, so add a call-count guard.
  • Silent no-op risk: A label listed in deduplicate-by-title-labels but absent from labels means the bot-created issues never match, so dedup does nothing for them. Consider a compile-time warning and a docs note.
  • Escaping assumption: The backslash and quote escaping is verified as a string transform only. Confirm it against GitHub search behavior.

Positive Highlights

  • ✅ Omitted or empty filters keep the old unfiltered queries. The test covers both undefined and [].
  • ✅ The 30-day closed window and repo boundary are preserved.
  • ✅ The config.deduplicate_by_title_labels ?? [] fallback and the AddStringSlice builder skip empty lists, so no stray config key is emitted.
  • ✅ Go tests for config parsing and handler generation pass, and gofmt is clean.

Validation Notes

  • go test ./pkg/workflow (targeted) passes.
  • The JS suite could not run here: the npm registry rejected the TLS certificate, so vitest is unavailable. Syntax checks pass. Please confirm create_issue.test.cjs in CI.
  • Skill selection used the pr-triage output directly, not the fallback heuristic.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~1 AIC · ⊞ 5.4K
Comment /matt to run again


await handler({ title: "New title" });

for (const [request] of mockGithub.rest.search.issuesAndPullRequests.mock.calls) {

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.

[/tdd] This loop passes trivially if no search call is made, so it would not catch a regression that drops the label qualifiers entirely. Assert the expected call count before the loop.

💡 Suggested change
expect(mockGithub.rest.search.issuesAndPullRequests).toHaveBeenCalledTimes(2);

The count check makes the loop a meaningful guard.

@copilot please address this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added an explicit two-search-call assertion before the qualifier loop in 5b1bbd1, so the test cannot pass without executing the searches.

Comment thread actions/setup/js/create_issue.test.cjs Outdated
expect(queries).toEqual(["repo:test-owner/test-repo is:issue is:open", expect.stringMatching(/^repo:test-owner\/test-repo is:issue is:closed closed:>=\d{4}-\d{2}-\d{2}$/)]);
});

it.each(["open", "closed"])("should require all filter labels when searching %s issues", async state => {

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.

[/tdd] The test name says it requires all filter labels, but the assertions only inspect query strings and never check AND matching. Rename it to describe what is asserted, for example: should append all filter labels to %s searches.

@copilot please address this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Renamed the query test to describe appending all filter labels in 5b1bbd1. Added behavioral AND-filter cases for both apply-time and MCP within-run deduplication.

Comment thread actions/setup/js/create_issue.cjs Resolved
Comment thread pkg/workflow/create_issue.go Outdated
DeduplicateByTitle *TemplatableBoolOrInt `yaml:"deduplicate-by-title,omitempty"` // When true or 0, deduplicate by exact title match. When set to a positive integer N, also allow fuzzy matches up to edit distance N. When false or omitted, disable title-based deduplication. Accepts GitHub Actions expressions.
TargetRepoSlug string `yaml:"target-repo,omitempty"` // Target repository in format "owner/repo" for cross-repository issues
AllowedRepos []string `yaml:"allowed-repos,omitempty"` // List of additional repositories that issues can be created in
DeduplicateByTitleLabels []string `yaml:"deduplicate-by-title-labels,omitempty"`

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.

[/grill-with-docs] Dedup labels are independent of creation labels, so a listed label missing from labels never appears on the issues this workflow creates. Those issues cannot match unless someone adds the label later, and dedup silently does nothing for them.

💡 Suggested change

Emit a compile-time warning when a deduplicate-by-title-labels entry is absent from labels. Also note the constraint in the safe-outputs reference, since the example already uses matching lists.

@copilot please address this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Documented that filter labels must be included in creation labels or supplied by the tool call for newly created issues to match future searches (5b1bbd1). Kept these settings independent; a compile-time warning based only on default labels would also flag valid tool-supplied labels.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (actions/setup/js/create_issue.cjs:698): Whitespace-only entries in deduplicate-by-title-labels are emitted as label qualifiers, so a minor configuration typo makes repository-level title deduplication match nothing and silently permits duplicates. - Add label-scoped title deduplication for create-issue #74941 (comment)
  3. Review (pkg/workflow/safe_outputs_handler_registry_issues.go:34): [P1] If a filter label contains ${{ github.event.issue.title }}, GitHub Actions substitutes the untrusted title directly into the handler JSON before JSON.parse, allowing JSON delimiters to inject sibling configuration fields. An injected target-repo can redirect issues with no explicit repository to an attacker-controlled repository when the token has access, potentially disclosing the generated content. Reject expressions in this label array at compile time, or JSON-encode their resolved values before inserting them into the handler configuration. - Add label-scoped title deduplication for create-issue #74941 (comment)
  4. Review (actions/setup/js/create_issue.test.cjs:788): [/tdd] This loop passes trivially if no search call is made, so it would not catch a regression that drops the label qualifiers entirely. Assert the expected call count before the loop. - Add label-scoped title deduplication for create-issue #74941 (comment)
  5. Review (actions/setup/js/create_issue.test.cjs:752): [/tdd] The test name says it requires all filter labels, but the assertions only inspect query strings and never check AND matching. Rename it to describe what is asserted, for example: should append all filter labels to %s searches. - Add label-scoped title deduplication for create-issue #74941 (comment)
  6. Review (actions/setup/js/create_issue.cjs:701): [/tdd] The escaping is verified only as a string transform, not against GitHub's search parser. If qualifier values do not honor backslash escapes, labels containing double quotes or backslashes would match the wrong issues or none, and duplicates would be missed silently. - Add label-scoped title deduplication for create-issue #74941 (comment)
  7. Review (pkg/workflow/create_issue.go:21): [/grill-with-docs] Dedup labels are independent of creation labels, so a listed label missing from labels never appears on the issues this workflow creates. Those issues cannot match unless someone adds the label later, and dedup silently does nothing for them. - Add label-scoped title deduplication for create-issue #74941 (comment)

Once you start work, post this work summary as a PR comment, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI.

Sous-chef requested-head: 6b92ad8
Sous-chef requested-work: 06a6c334fc313a7c2e9dfd8d0af6bb77dba42a1c73c4c3ca355d688474fb470e 475c0efdf1bed85e48a6f175f8cbf7146fbe159e15c2b098d45228d7c637220e 553399a9d872d01bfe633abbdb6477bfaedaee53ba63f9c94ccf10c72be8bd22 5c327691544bfab08020e2e8c904e42e70980d81add674a787577fc9d08981de 8bdd4d1d65ca3850e059f3e2ed822d6d1919a2e83d4175d562565c851340a5f8 f518c4fddaa24359340aebd7c8e18d6a170ce0f3501c5d717643f71e5d33cec2
Sous-chef requested-state: fbc857acf527e22fb697a0fce4a463cb6ef638ac3bb8ee530058e7d721ee2922

Generated by 👨🍳 PR Sous Chef · pi · haiku45 · ~23 AIC · ⌖ ~16 AIC · ⊞ 1.2K · ◷
Comment /souschef to run again

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (actions/setup/js/create_issue.cjs:698): Whitespace-only entries in deduplicate-by-title-labels are emitted as label qualifiers, so a minor configuration typo makes repository-level title deduplication match nothing and silently permits duplicates. - Add label-scoped title deduplication for create-issue #74941 (comment)
  3. Review (pkg/workflow/safe_outputs_handler_registry_issues.go:34): [P1] If a filter label contains ${{ github.event.issue.title }}, GitHub Actions substitutes the untrusted title directly into the handler JSON before JSON.parse, allowing JSON delimiters to inject sibling configuration fields. An injected target-repo can redirect issues with no explicit repository to an attacker-controlled repository when the token has access, potentially disclosing the generated content. Reject expressions in this label array at compile time, or JSON-encode their resolved values before inserting them into the handler configuration. - Add label-scoped title deduplication for create-issue #74941 (comment)
  4. Review (actions/setup/js/create_issue.test.cjs:788): [/tdd] This loop passes trivially if no search call is made, so it would not catch a regression that drops the label qualifiers entirely. Assert the expected call count before the loop. - Add label-scoped title deduplication for create-issue #74941 (comment)
  5. Review (actions/setup/js/create_issue.test.cjs:752): [/tdd] The test name says it requires all filter labels, but the assertions only inspect query strings and never check AND matching. Rename it to describe what is asserted, for example: should append all filter labels to %s searches. - Add label-scoped title deduplication for create-issue #74941 (comment)
  6. Review (actions/setup/js/create_issue.cjs:701): [/tdd] The escaping is verified only as a string transform, not against GitHub's search parser. If qualifier values do not honor backslash escapes, labels containing double quotes or backslashes would match the wrong issues or none, and duplicates would be missed silently. - Add label-scoped title deduplication for create-issue #74941 (comment)
  7. Review (pkg/workflow/create_issue.go:21): [/grill-with-docs] Dedup labels are independent of creation labels, so a listed label missing from labels never appears on the issues this workflow creates. Those issues cannot match unless someone adds the label later, and dedup silently does nothing for them. - Add label-scoped title deduplication for create-issue #74941 (comment)

Once you start work, post this work summary as a PR comment, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI.

Sous-chef requested-head: 6b92ad8
Sous-chef requested-work: 06a6c334fc313a7c2e9dfd8d0af6bb77dba42a1c73c4c3ca355d688474fb470e 475c0efdf1bed85e48a6f175f8cbf7146fbe159e15c2b098d45228d7c637220e 553399a9d872d01bfe633abbdb6477bfaedaee53ba63f9c94ccf10c72be8bd22 5c327691544bfab08020e2e8c904e42e70980d81add674a787577fc9d08981de 8bdd4d1d65ca3850e059f3e2ed822d6d1919a2e83d4175d562565c851340a5f8 f518c4fddaa24359340aebd7c8e18d6a170ce0f3501c5d717643f71e5d33cec2
Sous-chef requested-state: fbc857acf527e22fb697a0fce4a463cb6ef638ac3bb8ee530058e7d721ee2922

Generated by 👨🍳 PR Sous Chef · pi · haiku45 · ~25 AIC · ⌖ ~18 AIC · ⊞ 1.2K · ◷
Comment /souschef to run again

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (actions/setup/js/create_issue.cjs:698): Whitespace-only entries in deduplicate-by-title-labels are emitted as label qualifiers, so a minor configuration typo makes repository-level title deduplication match nothing and silently permits duplicates. - Add label-scoped title deduplication for create-issue #74941 (comment)
  3. Review (pkg/workflow/safe_outputs_handler_registry_issues.go:34): [P1] If a filter label contains ${{ github.event.issue.title }}, GitHub Actions substitutes the untrusted title directly into the handler JSON before JSON.parse, allowing JSON delimiters to inject sibling configuration fields. An injected target-repo can redirect issues with no explicit repository to an attacker-controlled repository when the token has access, potentially disclosing the generated content. Reject expressions in this label array at compile time, or JSON-encode their resolved values before inserting them into the handler configuration. - Add label-scoped title deduplication for create-issue #74941 (comment)
  4. Review (actions/setup/js/create_issue.test.cjs:788): [/tdd] This loop passes trivially if no search call is made, so it would not catch a regression that drops the label qualifiers entirely. Assert the expected call count before the loop. - Add label-scoped title deduplication for create-issue #74941 (comment)
  5. Review (actions/setup/js/create_issue.test.cjs:752): [/tdd] The test name says it requires all filter labels, but the assertions only inspect query strings and never check AND matching. Rename it to describe what is asserted, for example: should append all filter labels to %s searches. - Add label-scoped title deduplication for create-issue #74941 (comment)
  6. Review (actions/setup/js/create_issue.cjs:701): [/tdd] The escaping is verified only as a string transform, not against GitHub's search parser. If qualifier values do not honor backslash escapes, labels containing double quotes or backslashes would match the wrong issues or none, and duplicates would be missed silently. - Add label-scoped title deduplication for create-issue #74941 (comment)
  7. Review (pkg/workflow/create_issue.go:21): [/grill-with-docs] Dedup labels are independent of creation labels, so a listed label missing from labels never appears on the issues this workflow creates. Those issues cannot match unless someone adds the label later, and dedup silently does nothing for them. - Add label-scoped title deduplication for create-issue #74941 (comment)

Once you start work, post this work summary as a PR comment, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI.

Sous-chef requested-head: 6b92ad8
Sous-chef requested-work: 06a6c334fc313a7c2e9dfd8d0af6bb77dba42a1c73c4c3ca355d688474fb470e 475c0efdf1bed85e48a6f175f8cbf7146fbe159e15c2b098d45228d7c637220e 553399a9d872d01bfe633abbdb6477bfaedaee53ba63f9c94ccf10c72be8bd22 5c327691544bfab08020e2e8c904e42e70980d81add674a787577fc9d08981de 8bdd4d1d65ca3850e059f3e2ed822d6d1919a2e83d4175d562565c851340a5f8 f518c4fddaa24359340aebd7c8e18d6a170ce0f3501c5d717643f71e5d33cec2
Sous-chef requested-state: fbc857acf527e22fb697a0fce4a463cb6ef638ac3bb8ee530058e7d721ee2922

Generated by 👨🍳 PR Sous Chef · pi · haiku45 · ~12 AIC · ⌖ ~24 AIC · ⊞ 1.2K · ◷
Comment /souschef to run again

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (actions/setup/js/create_issue.cjs:698): Whitespace-only entries in deduplicate-by-title-labels are emitted as label qualifiers, so a minor configuration typo makes repository-level title deduplication match nothing and silently permits duplicates. - Add label-scoped title deduplication for create-issue #74941 (comment)
  3. Review (pkg/workflow/safe_outputs_handler_registry_issues.go:34): [P1] If a filter label contains ${{ github.event.issue.title }}, GitHub Actions substitutes the untrusted title directly into the handler JSON before JSON.parse, allowing JSON delimiters to inject sibling configuration fields. An injected target-repo can redirect issues with no explicit repository to an attacker-controlled repository when the token has access, potentially disclosing the generated content. Reject expressions in this label array at compile time, or JSON-encode their resolved values before inserting them into the handler configuration. - Add label-scoped title deduplication for create-issue #74941 (comment)
  4. Review (actions/setup/js/create_issue.test.cjs:788): [/tdd] This loop passes trivially if no search call is made, so it would not catch a regression that drops the label qualifiers entirely. Assert the expected call count before the loop. - Add label-scoped title deduplication for create-issue #74941 (comment)
  5. Review (actions/setup/js/create_issue.test.cjs:752): [/tdd] The test name says it requires all filter labels, but the assertions only inspect query strings and never check AND matching. Rename it to describe what is asserted, for example: should append all filter labels to %s searches. - Add label-scoped title deduplication for create-issue #74941 (comment)
  6. Review (actions/setup/js/create_issue.cjs:701): [/tdd] The escaping is verified only as a string transform, not against GitHub's search parser. If qualifier values do not honor backslash escapes, labels containing double quotes or backslashes would match the wrong issues or none, and duplicates would be missed silently. - Add label-scoped title deduplication for create-issue #74941 (comment)
  7. Review (pkg/workflow/create_issue.go:21): [/grill-with-docs] Dedup labels are independent of creation labels, so a listed label missing from labels never appears on the issues this workflow creates. Those issues cannot match unless someone adds the label later, and dedup silently does nothing for them. - Add label-scoped title deduplication for create-issue #74941 (comment)

Once you start work, post this work summary as a PR comment, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI.

Sous-chef requested-head: 6b92ad8
Sous-chef requested-work: 06a6c334fc313a7c2e9dfd8d0af6bb77dba42a1c73c4c3ca355d688474fb470e 475c0efdf1bed85e48a6f175f8cbf7146fbe159e15c2b098d45228d7c637220e 553399a9d872d01bfe633abbdb6477bfaedaee53ba63f9c94ccf10c72be8bd22 5c327691544bfab08020e2e8c904e42e70980d81add674a787577fc9d08981de 8bdd4d1d65ca3850e059f3e2ed822d6d1919a2e83d4175d562565c851340a5f8 f518c4fddaa24359340aebd7c8e18d6a170ce0f3501c5d717643f71e5d33cec2
Sous-chef requested-state: fbc857acf527e22fb697a0fce4a463cb6ef638ac3bb8ee530058e7d721ee2922

Generated by 👨🍳 PR Sous Chef · pi · haiku45 · ~21 AIC · ⌖ ~16 AIC · ⊞ 1.2K · ◷
Comment /souschef to run again

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

@copilot rename deduplicate-by-title-labels to deduplicate-by-labels and have both feature act as AND filters

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

Copilot AI commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

@copilot rename deduplicate-by-title-labels to deduplicate-by-labels and have both feature act as AND filters

Implemented in 5b1bbd1. Renamed the option to deduplicate-by-labels; either filter works independently, and configuring both requires a matching title AND all listed labels. Applied consistently to MCP pre-checks, within-run deduplication, and repository searches, with updated docs and regression tests. All 584 targeted JS tests, TypeScript checks, and focused Go tests pass; the final gate is blocked only by a pre-existing custom Go lint error at safe_outputs_handler_registry_issues.go:202.

@pelikhan

pelikhan commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

@copilot run pr-finisher skill

Copilot AI and others added 2 commits November 5, 2026 05:34
…qualifiers

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Fix failing check JS Tests (shard 1/8) (FAILURE): https://github.com/github/gh-aw/actions/runs/41976015977/job/127075062826.

Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI.

Sous-chef requested-head: 5ef955a
Sous-chef requested-work: be8977fed8539981a9de7f424c3c95730603faded3a88272a303c0b1b996a2af
Sous-chef requested-state: b354514775cb32a084905fc80f480ff9b9831aa67b48947115bf7a6b0703af24

Generated by 👨🍳 PR Sous Chef · pi · haiku45 · ~19 AIC · ⌖ ~10 AIC · ⊞ 1.2K · ◷
Comment /souschef to run again

Copilot AI and others added 2 commits November 5, 2026 06:18
…qualifiers

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>

Copilot AI commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

@copilot run pr-finisher skill

Ran pr-finisher. Published the main merge (d589f23) and CI regression fix (477418c); all 3,901 tests in the previously failing shard pass locally. Remaining blockers: a pre-existing custom-linter error, CodeQL timeout, unresolved-but-answered review threads that available tools cannot resolve, and CI verification on the new HEAD. No PR merge or CI dispatch performed.

@copilot

Copilot assignment requested for the following outstanding work:...

Merged latest main in d589f23 and fixed the stale timeout assertions in 477418c. The previously failing shard passes locally: 91 files, 3,901 tests. No CI was triggered and the PR was not merged.

The final gate passes tests but hits a pre-existing custom-linter error at pkg/workflow/safe_outputs_handler_registry_issues.go:202. CodeQL timed out. Existing review threads already have substantive replies; resolving them requires tooling unavailable in this sandbox.

Sous-chef requested-head: 5ef955a
Sous-chef requested-work: be8977fed8539981a9de7f424c3c95730603faded3a88272a303c0b1b996a2af
Sous-chef requested-state: b354514775cb32a084905fc80f480ff9b9831aa67b48947115bf7a6b0703af24

@pelikhan

pelikhan commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

@copilot enable this flag on a few AWs

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan

pelikhan commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

@copilot resolve the merge conflicts in this pull request

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

This PR has conflicts and a failing check that need your attention:

Failing Checks

Branch Status

Your branch is CONFLICTING with main. Please update it:

make merge-main

Sous-chef requested-state: 2a040bda5e5692f72b9582e6c8126a6547b82d712f4d061c66624ff7112db7b8

Generated by 👨🍳 PR Sous Chef · pi · haiku45 · ~8 AIC · ⌖ ~9 AIC · ⊞ 1.2K · ◷
Comment /souschef to run again

…qualifiers

# Conflicts:
#	.github/workflows/daily-squid-image-scan.lock.yml
#	.github/workflows/daily-windows-defender-scan.lock.yml
#	.github/workflows/deep-report.lock.yml

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>

Copilot AI commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

@copilot

This PR has conflicts and a failing check that need your attention:...

Merged latest main and regenerated the three conflicted workflow locks in 28f9416, preserving the feature and workflow opt-ins. All 357 workflows compile; focused Go deduplication tests and 558 impacted JS tests pass.

The failing copilot job stopped on a backend HTTP 500 fetching job details, before repository work. No code fix or retry was needed. Final validation remains blocked by the pre-existing custom-linter finding at pkg/workflow/safe_outputs_handler_registry_issues.go:202; CodeQL timed out reading the merge diff. No PR merge or CI dispatch performed.

Sous-chef requested-state: 2a040bda5e5692f72b9582e6c8126a6547b82d712f4d061c66624ff7112db7b8

@pelikhan
pelikhan merged commit bc7502b into main Nov 5, 2026
65 checks passed
@pelikhan
pelikhan deleted the copilot/enable-query-qualifiers branch November 5, 2026 19:52
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.1

github-actions Bot added a commit that referenced this pull request Nov 7, 2026
…ory app auth, environment deployment

Sync .github/aw with #75323, #74941, #74937, and #74938.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

create-issue: allow limiting title-deduplication searches with additional query qualifiers

4 participants