Driftwatch

GitHub / GitHub REST API /

Breaking

Response field owner_type removed

What changed

Reads of this field return undefined, and the failure surfaces wherever that value is used rather than at the call.

Affects PATCH /agents/repos/{owner}/{repo}/automations/{automation_id}.

Who is affected

Code that reads PATCH /agents/repos/{owner}/{repo}/automations/{automation_id} (owner_type).

Before and after

WhereBeforeAfter
PATCH /agents/repos/{owner}/{repo}/automations/{automation_id} · owner_typepresentabsent
GET /agents/automations · owner_typepresentabsent
GET /agents/repos/{owner}/{repo}/automations · automations[].owner_typepresentabsent
POST /agents/repos/{owner}/{repo}/automations · owner_typepresentabsent
GET /agents/repos/{owner}/{repo}/automations/{automation_id} · owner_typepresentabsent

Code that breaks

// response.owner_type is now undefined
const owner_type = response.owner_type;

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