Driftwatch

GitHub / GitHub REST API /

Breakingdirection flip: their tools call this safe

kind can now return "CUSTOM_AGENT"

What changed

Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

Affects copilot_code_review_sources[].kind on review-comment reachable from 1 operation.

New value: CUSTOM_AGENT.

can now return "CUSTOM_AGENT"

Who is affected

Code that reads GitHub's review-comment objects, used by 7 GitHub operations.

Before and after

WhereBeforeAfter
review-comment.copilot_code_review_sources[].kind"CUSTOM_INSTRUCTIONS", "MCP", "SKILL""CUSTOM_AGENT", "CUSTOM_INSTRUCTIONS", "MCP", "SKILL"
pull-request-review-comment.copilot_code_review_sources[].kind"CUSTOM_INSTRUCTIONS", "MCP", "SKILL""CUSTOM_AGENT", "CUSTOM_INSTRUCTIONS", "MCP", "SKILL"

Code that breaks

switch (response.copilot_code_review_sources[0].kind) {
  // existing branches …
  // no branch for "CUSTOM_AGENT"
  default:
    throw new Error("unexpected kind");
}

Based on GitHub’s published API specification. How severity is decided.