Driftwatch

APIs / GitHub

GitHub API changes

Breaking changes, deprecations and new fields in the GitHub API, as they ship.

GitHubGitHub REST API · 084c14e65 behavioral12 additive
6 new response fields
  • tag_ids
  • tag_membership_version
  • unavailable_tag_ids
  • automations[].tag_ids
  • automations[].tag_membership_version
  • automations[].unavailable_tag_ids
GitHubGitHub REST API · 24ad23241 behavioral6 additive
5 new response fields
  • pull-request-review-comment.copilot_code_review_severity
  • issue-search-result-item.parent_issue_url
  • review-comment.copilot_code_review_severity
  • create-budget.budget.consumed_amount
  • create-budget.budget.user
GitHubGitHub REST API · 81c6ac6f1 breaking2 additive
  • Breakingdirection flip: their tools call this safe

    visibility can now return "restricted"

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

    issue-field.visibility · reachable from 3 operations
    Code that breaks
    switch (response.visibility) {
      // existing branches …
      // no branch for "restricted"
      default:
        throw new Error("unexpected visibility");
    }
  • Additive

    /user/issue-fields added

    No action needed.

    /user/issue-fields
  • Additive

    /user/issue-fields/{issue_field_id} added

    No action needed.

    /user/issue-fields/{issue_field_id}
GitHubGitHub REST API · e40b86ba3 additive
3 new response fields
  • code-scanning-alert.linked_issues
  • code-scanning-alert-items.linked_issues
  • code-scanning-alert-items.linked_pull_requests
GitHubGitHub REST API · fcbd6f811 breaking4 additive
  • Breakingdirection flip: their tools call this safe

    base_role can now return "moderate"

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

    organization-role.base_role · reachable from 2 operations
    Code that breaks
    switch (response.base_role) {
      // existing branches …
      // no branch for "moderate"
      default:
        throw new Error("unexpected base_role");
    }
2 new response fields
  • code-scanning-ai-scan-enablement.repository_scan
  • code-scanning-ai-scan-org-settings.repository_scan
2 new request properties
  • code-scanning-ai-scan-enablement-update.repository_scan
  • code-scanning-ai-scan-org-enablement-update.repository_scan
GitHubGitHub REST API · df36add41 behavioral6 additive
GitHubGitHub REST API · fe7becb41 breaking
  • Breakingdirection flip: their tools call this safe

    code can now return "dry_run_in_progress", "invalid_state"

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

    secret-scanning-custom-pattern-validation-error.code · reachable from 2 operations
    Code that breaks
    switch (response.code) {
      // existing branches …
      // no branch for "dry_run_in_progress"
      // no branch for "invalid_state"
      default:
        throw new Error("unexpected code");
    }
GitHubGitHub REST API · 2e736def2 additive
  • Additive

    page is now optional

    No action needed.

    GET /repos/{owner}/{repo}/issues/{issue_number}/artifacts/{artifact_number} · page
  • Additive

    per_page is now optional

    GET /repos/{owner}/{repo}/issues/{issue_number}/artifacts/{artifact_number} · per_page
GitHubGitHub REST API · 57c101bf2 breaking
  • Breakingdirection flip: their tools call this safe

    permissions can now return "moderate"

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

    repository-invitation.permissions · reachable from 4 operations
    Code that breaks
    switch (response.permissions) {
      // existing branches …
      // no branch for "moderate"
      default:
        throw new Error("unexpected permissions");
    }
  • Breaking

    permission no longer accepts "triage_plus"

    A value you may have hardcoded is now rejected.

    GET /repos/{owner}/{repo}/collaborators · permission
    Code that breaks
    // sending "triage_plus" for permission is now rejected
GitHubGitHub REST API · 148bf65c1 additive
GitHubGitHub REST API · 476bb8a11 behavioral4 additive
2 new response fields
  • tools
  • automations[].tools
GitHubGitHub REST API · 181ad1c46 additive
6 new response fields
  • pull-request-review-comment.copilot_code_review_sources
  • pull-request-review-comment.is_copilot_code_review
  • pull-request-review.is_copilot_code_review
  • pull-request-review.copilot_code_review_effort
  • review-comment.copilot_code_review_sources
  • review-comment.is_copilot_code_review
GitHubGitHub REST API · 911d8b6d1 breaking1 additive
  • Breakingdirection flip: their tools call this safe

    type can now return "actions_log"

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

    secret-scanning-location.type · reachable from 1 operation
    Code that breaks
    switch (response.type) {
      // existing branches …
      // no branch for "actions_log"
      default:
        throw new Error("unexpected type");
    }
  • Additive

    /orgs/{org}/teams/{team_slug}/copilot/customizations added

    No action needed.

    /orgs/{org}/teams/{team_slug}/copilot/customizations
GitHubGitHub REST API · 69fa1a673 additive
GitHubGitHub REST API · a5c38c138 breaking1 behavioral136 additive
  • Breaking

    Response field owner_type removed

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

    5 places: GET /agents/automations · owner_type, GET /agents/repos/{owner}/{repo}/automations · automations[].owner_type, GET /agents/repos/{owner}/{repo}/automations/{automation_id} · owner_type, PATCH /agents/repos/{owner}/{repo}/automations/{automation_id} · owner_type, POST /agents/repos/{owner}/{repo}/automations · owner_type
    Code that breaks
    // response.owner_type is now undefined
    const owner_type = response.owner_type;
  • Breaking

    Response field write_scope removed

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

    5 places: GET /agents/repos/{owner}/{repo}/automations · automations[].write_scope, PATCH /agents/repos/{owner}/{repo}/automations/{automation_id} · write_scope, GET /agents/automations · write_scope, POST /agents/repos/{owner}/{repo}/automations · write_scope, GET /agents/repos/{owner}/{repo}/automations/{automation_id} · write_scope
    Code that breaks
    // response.automations[0].write_scope is now undefined
    const write_scope = response.automations[0].write_scope;
  • Breakingdirection flip: their tools call this safe

    plan_type can now return "access"

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

    can now return "access"

    2 places: copilot-organization-details.plan_type, copilot-seat-details.plan_type
    Code that breaks
    switch (response.plan_type) {
      // existing branches …
      // no branch for "access"
      default:
        throw new Error("unexpected plan_type");
    }
  • Breaking

    Response field allowed_custom_agents removed

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

    GET /agents/repos/{owner}/{repo}/automations/{automation_id} · allowed_custom_agents · 3 call sites
    Code that breaks
    // response.allowed_custom_agents is now undefined
    const allowed_custom_agents = response.allowed_custom_agents;
  • Breakingdirection flip: their tools call this safe

    owner_type is no longer accepted

    No error is raised. The value is ignored and your results change silently, which is the hardest class of break to notice.

    GET /agents/automations · owner_type · 2 call sites
    Code that breaks
    await client.post("/agents/automations", {
      // owner_type is now ignored, not rejected
      owner_type: value,
    });
  • Breakingdirection flip: their tools call this safe

    allowed_custom_agents is no longer accepted

    Usually ignored rather than rejected, so the call succeeds and does something subtly different.

    PATCH /agents/repos/{owner}/{repo}/automations/{automation_id} · allowed_custom_agents · 2 call sites
    Code that breaks
    await client.post("/agents/repos/{owner}/{repo}/automations/{automation_id}", {
      // allowed_custom_agents is now ignored, not rejected
      allowed_custom_agents: value,
    });
  • Breakingdirection flip: their tools call this safe

    write_scope is no longer accepted

    Usually ignored rather than rejected, so the call succeeds and does something subtly different.

    PATCH /agents/repos/{owner}/{repo}/automations/{automation_id} · write_scope · 2 call sites
    Code that breaks
    await client.post("/agents/repos/{owner}/{repo}/automations/{automation_id}", {
      // write_scope is now ignored, not rejected
      write_scope: value,
    });
  • Breakingdirection flip: their tools call this safe

    owner_type is no longer accepted

    Usually ignored rather than rejected, so the call succeeds and does something subtly different.

    POST /agents/repos/{owner}/{repo}/automations · owner_type
    Code that breaks
    await client.post("/agents/repos/{owner}/{repo}/automations", {
      // owner_type is now ignored, not rejected
      owner_type: value,
    });
  • Behavioral

    422 is now documented on /installation/repositories

    An unhandled branch in your error handling.

    GET /installation/repositories
  • Additive

    type is now optional

    No action needed.

    GET /agents/automations · type · 2 call sites
  • Additive

    /agents/repos/{owner}/{repo}/automations/{automation_id}/tasks added

    No action needed.

    /agents/repos/{owner}/{repo}/automations/{automation_id}/tasks
  • Additive

    /repos/{owner}/{repo}/issues/{issue_number}/artifacts added

    No action needed.

    /repos/{owner}/{repo}/issues/{issue_number}/artifacts
  • Additive

    /repos/{owner}/{repo}/issues/{issue_number}/artifacts/{artifact_number} added

    No action needed.

    /repos/{owner}/{repo}/issues/{issue_number}/artifacts/{artifact_number}
  • Additive

    /agents/repos/{owner}/{repo}/automations/available-tools added

    No action needed.

    /agents/repos/{owner}/{repo}/automations/available-tools
  • Additive

    /agents/repos/{owner}/{repo}/automations/available-triggers added

    No action needed.

    /agents/repos/{owner}/{repo}/automations/available-triggers
87 new response fields
  • error_code
  • limited_resource
  • code-security-configuration.dependabot_reachability
  • code-security-configuration.secret_scanning_generic_secrets_push_protection
  • repository-rule-file-path-restriction.parameters.ignored_file_paths
  • repository-rule-max-file-size.parameters.ignored_file_paths
  • repository-rule-pull-request.parameters.require_extra_approval_for_unattributed_changes
  • triggers.automation_completed.allow_copilot_triggers
  • triggers.discussion_comment.allow_copilot_triggers
  • triggers.discussion_updated.allow_copilot_triggers
  • triggers.interval.allow_copilot_triggers
  • triggers.issue_assigned.allow_copilot_triggers
  • triggers.issue_comment.query
  • triggers.issue_labeled.allow_copilot_triggers
  • triggers.pull_request_comment.allow_copilot_triggers
  • triggers.pull_request_comment.paths
  • triggers.discussion_opened.allow_copilot_triggers
  • triggers.pull_request_merged.allow_copilot_triggers
  • triggers.pull_request_ready_for_review.allow_copilot_triggers
  • triggers.pull_request_synchronize.allow_copilot_triggers
  • triggers.sub_issue_added.allow_copilot_triggers
  • triggers.workflow_run.allow_copilot_triggers
  • triggers.code_scanning_alert
  • triggers.dependabot_alert
  • triggers.issue_closed
  • triggers.pull_request_closed
  • triggers.pull_request_review_dismissed
  • triggers.pull_request_review_thread_unresolved
  • triggers.secret_scanning_alert
  • type
  • triggers.pull_request_review_thread_resolved
  • triggers.pull_request_comment.query
  • triggers.pull_request_merge_conflict.allow_copilot_triggers
  • triggers.pull_request_reopened
  • triggers.pull_request_labeled.allow_copilot_triggers
  • triggers.pull_request_review_submitted.allow_copilot_triggers
  • triggers.issue_comment.allow_copilot_triggers
  • triggers.pull_request_assigned.allow_copilot_triggers
  • triggers.pull_request_opened.allow_copilot_triggers
  • triggers.pull_request_review_requested.allow_copilot_triggers
  • triggers.issue_reopened
  • triggers.pull_request_converted_to_draft
  • triggers.issue_opened.allow_copilot_triggers
  • triggers.automation_failed
  • dependabot-alert.reachability
  • continuous_history
  • dependabot-alert-with-repository.reachability
  • api-overview.shared_ingress
  • repository-rule-detailed.parameters.ignored_file_paths
  • automations[].triggers.discussion_opened.allow_copilot_triggers
  • automations[].triggers.discussion_updated.allow_copilot_triggers
  • automations[].triggers.issue_assigned.allow_copilot_triggers
  • automations[].triggers.interval.allow_copilot_triggers
  • automations[].triggers.issue_comment.query
  • automations[].triggers.issue_opened.allow_copilot_triggers
  • automations[].triggers.pull_request_assigned.allow_copilot_triggers
  • automations[].triggers.pull_request_comment.paths
  • automations[].triggers.pull_request_comment.query
  • automations[].triggers.pull_request_labeled.allow_copilot_triggers
  • automations[].triggers.pull_request_merge_conflict.allow_copilot_triggers
  • automations[].triggers.pull_request_ready_for_review.allow_copilot_triggers
  • automations[].triggers.pull_request_review_requested.allow_copilot_triggers
  • automations[].triggers.pull_request_review_submitted.allow_copilot_triggers
  • automations[].triggers.pull_request_synchronize.allow_copilot_triggers
  • automations[].triggers.sub_issue_added.allow_copilot_triggers
  • automations[].triggers.workflow_run.allow_copilot_triggers
  • automations[].triggers.automation_failed
  • automations[].triggers.pull_request_opened.allow_copilot_triggers
  • automations[].triggers.issue_closed
  • automations[].triggers.issue_reopened
  • automations[].triggers.pull_request_reopened
  • automations[].triggers.pull_request_review_dismissed
  • automations[].triggers.pull_request_review_thread_resolved
  • automations[].triggers.pull_request_review_thread_unresolved
  • automations[].triggers.secret_scanning_alert
  • automations[].type
  • repository-rule-detailed.parameters.require_extra_approval_for_unattributed_changes
  • automations[].triggers.issue_comment.allow_copilot_triggers
  • automations[].triggers.issue_labeled.allow_copilot_triggers
  • automations[].triggers.pull_request_comment.allow_copilot_triggers
  • automations[].triggers.pull_request_merged.allow_copilot_triggers
  • automations[].triggers.dependabot_alert
  • automations[].triggers.pull_request_closed
  • automations[].triggers.discussion_comment.allow_copilot_triggers
  • automations[].triggers.code_scanning_alert
  • automations[].triggers.pull_request_converted_to_draft
  • automations[].triggers.automation_completed.allow_copilot_triggers
43 new request properties
  • repository-rule-file-path-restriction.parameters.ignored_file_paths
  • repository-rule-max-file-size.parameters.ignored_file_paths
  • repository-rule-pull-request.parameters.require_extra_approval_for_unattributed_changes
  • dependabot_reachability
  • secret_scanning_generic_secrets_push_protection
  • triggers.automation_completed.allow_copilot_triggers
  • triggers.discussion_opened.allow_copilot_triggers
  • triggers.discussion_comment.allow_copilot_triggers
  • triggers.interval.allow_copilot_triggers
  • triggers.issue_comment.allow_copilot_triggers
  • triggers.issue_labeled.allow_copilot_triggers
  • triggers.pull_request_comment.allow_copilot_triggers
  • triggers.pull_request_comment.query
  • triggers.pull_request_labeled.allow_copilot_triggers
  • triggers.pull_request_merge_conflict.allow_copilot_triggers
  • triggers.pull_request_opened.allow_copilot_triggers
  • triggers.pull_request_ready_for_review.allow_copilot_triggers
  • triggers.pull_request_review_requested.allow_copilot_triggers
  • triggers.pull_request_merged.allow_copilot_triggers
  • triggers.sub_issue_added.allow_copilot_triggers
  • triggers.automation_failed
  • triggers.code_scanning_alert
  • triggers.dependabot_alert
  • triggers.issue_reopened
  • triggers.pull_request_converted_to_draft
  • triggers.pull_request_reopened
  • triggers.pull_request_review_thread_resolved
  • triggers.pull_request_review_dismissed
  • triggers.secret_scanning_alert
  • continuous_history
  • triggers.discussion_updated.allow_copilot_triggers
  • triggers.issue_assigned.allow_copilot_triggers
  • triggers.issue_opened.allow_copilot_triggers
  • triggers.pull_request_assigned.allow_copilot_triggers
  • triggers.pull_request_comment.paths
  • triggers.pull_request_synchronize.allow_copilot_triggers
  • triggers.workflow_run.allow_copilot_triggers
  • triggers.issue_comment.query
  • triggers.pull_request_review_submitted.allow_copilot_triggers
  • triggers.pull_request_review_thread_unresolved
  • triggers.issue_closed
  • triggers.pull_request_closed
  • type
GitHubGitHub REST API · bb7549412 additive
2 new response fields
  • dependabot-alert.dependency.version_requirement
  • dependabot-alert-with-repository.dependency.version_requirement
GitHubGitHub REST API · 93c8981e2 additive
  • Additive

    include_metadata is now optional

    No action needed.

    GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id} · include_metadata · 2 call sites
  • Additive

    Response field metadata added

    No action needed unless you validate responses against a closed schema.

    rule-suite.rule_evaluations[].metadata · reachable from 2 operations
GitHubGitHub REST API · 02a2bc3d5 behavioral
GitHubGitHub REST API · ad351b194 behavioral
GitHubGitHub REST API · 949252727 additive
GitHubGitHub REST API · 985340e11 breaking
  • Breakingdirection flip: their tools call this safe

    auth_type can now return "anonymous"

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

    can now return "anonymous"

    2 places: org-private-registry-configuration.auth_type, org-private-registry-configuration-with-selected-repositories.auth_type
    Code that breaks
    switch (response.auth_type) {
      // existing branches …
      // no branch for "anonymous"
      default:
        throw new Error("unexpected auth_type");
    }
GitHubGitHub REST API · f0e383552 additive
  • Additive

    Response field bypass_rules added

    No action needed unless you validate responses against a closed schema.

    pull-request-merge-async-result.details.bypass_rules · reachable from 2 operations
  • Additive

    Request property bypass_rules added

    No action needed unless it is required.

    PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge-async · bypass_rules
GitHubGitHub REST API · 8de506896 additive
GitHubGitHub REST API · 677c1b8f1 breaking
  • Breakingdirection flip: their tools call this safe

    budget_entity_name is no longer accepted

    Usually ignored rather than rejected, so the call succeeds and does something subtly different.

    5 places: PATCH /organizations/{org}/settings/billing/budgets/{budget_id} · budget_entity_name, PATCH /organizations/{org}/settings/billing/budgets/{budget_id} · budget_product_sku, PATCH /organizations/{org}/settings/billing/budgets/{budget_id} · budget_scope, PATCH /organizations/{org}/settings/billing/budgets/{budget_id} · budget_type, PATCH /organizations/{org}/settings/billing/budgets/{budget_id} · user
    Code that breaks
    await client.post("/organizations/{org}/settings/billing/budgets/{budget_id}", {
      // budget_entity_name is now ignored, not rejected
      budget_entity_name: value,
    });
GitHubGitHub REST API · 814de7ac2 additive
  • Additive

    Response field include_drafts added

    No action needed unless you validate responses against a closed schema.

    GET /orgs/{org}/interaction-limits/pulls/creation-cap · include_drafts · 4 call sites
  • Additive

    Request property include_drafts added

    No action needed unless it is required.

    PATCH /orgs/{org}/interaction-limits/pulls/creation-cap · include_drafts · 2 call sites
GitHubGitHub REST API · 649b8c491 breaking
  • Breakingdirection flip: their tools call this safe

    permissions can now return "triage_plus"

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

    repository-invitation.permissions · reachable from 4 operations
    Code that breaks
    switch (response.permissions) {
      // existing branches …
      // no branch for "triage_plus"
      default:
        throw new Error("unexpected permissions");
    }
GitHubGitHub REST API · 6b1cc8631 breaking1 behavioral4 additive
GitHubGitHub REST API · e16cc25811 additive
11 new response fields
  • issue.labels[].archived_by
  • label.archived_by
  • label.archived_at
  • pull-request-simple.labels[].archived_by
  • pull-request.labels[].archived_by
  • nullable-issue.labels[].archived_by
  • label-search-result-item.archived_at
  • label-search-result-item.archived_by
  • issue-search-result-item.labels[].archived_at
  • issue-search-result-item.labels[].archived_by
  • labels[].archived_by