Skip to content

Webhook type for repository edits is missing default branch #2994

Description

@caseyduquettesc

Repository edit events can include default branch changes and are dropped during parsing because it's missing from the types. (https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=edited#repository)

{
  "action": "edited",
  "changes": {"default_branch": {"from": "master"}},
  "enterprise": {
    "description": "...",
    "id": 1,
    "name": "Inc"
  },
  "organization": {
    "id": 1,
    "login": "Inc"
  },
  "repository": {
    "id": 1,
    "name": "repo",
    "full_name": "Owner/repo",
    "owner": {},
    "default_branch": "main"
  },
  "sender": {
    "id": 1,
    "login": "user"
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions