Copilot · GitHub

Copilot AI linked an issue

Jul 17, 2026

that may be closed by this pull request

Closed

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

Closed

- Change `set_issue_type`, `set_issue_field`, `add_labels` handlers from
  `config.issue_intent === true` to `config.issue_intent !== false` so
  intent metadata is forwarded by default, consistent with `close_issue`
  and `assign_to_agent` semantics.
- Add strict-mode enforcement in `add_labels`: when `issue_intent: true`
  is explicitly set, plain string label names are rejected.
- Add `issue-intent` boolean to JSON schema for `add-labels`,
  `set-issue-type`, and `set-issue-field` (compiler previously rejected
  the frontmatter for these handlers).
- Add focused tests covering omitted config, strict mode, metadata
  forwarding, and plain-string compatibility.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

Copilot AI changed the title [WIP] Fix issue intent metadata handling when frontmatter is omitted Default-on issue intent metadata for set_issue_type, set_issue_field, and add_labels

Jul 17, 2026

Closed

@pelikhan

pelikhan marked this pull request as ready for review

July 18, 2026 05:34

Copilot AI review requested due to automatic review settings

July 18, 2026 05:34

github-actions[bot]

github-actions[bot]

@github-actions

github-actions[bot]

github-actions[bot]

Closed

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…labels schema
- add_labels.cjs: strict mode (issue_intent: true) now rejects label objects
  missing rationale or confidence, not just plain strings
- generate_safe_outputs_tools.cjs: when issue-intent: true, labels items schema
  becomes object-only with name/rationale/confidence required
- Tests: added coverage for missing-metadata rejection and schema change;
  moved deduplication test to default mode (omitted issue_intent) since
  mixed metadata quality is invalid in strict mode
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

@pelikhan

@pelikhan

pelikhan deleted the copilot/preserve-issue-intent-metadata branch

July 18, 2026 08:55

Read the original on github.com ↗