Skip to content

Add support for “Bot” owner type #18

@kirelagin

Description

@kirelagin

My GitHub App is listening for InstallationRepositoriesEvent and it also sometimes creates repositories itself and then receives an event about the repository it just created. Events for repositories created by the app have the following sender:

  "sender": {
    "login": "<application-slug>[bot]",
    <...>
    "type": "Bot",
    <...>
  }

Sender is being parsed as HookUser, whose type field is parsed as OwnerType, which currently supports only two values (User or Organization), so it fails with:

Error in $.sender.type: Unknown owner type: Bot

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