Skip to content

GHEvent enum is missing branch_protection_rule #1297

@gjabouley-invn

Description

@gjabouley-invn

Describe the bug
We are seeing this issue when Jenkins is receiving a branch_protection_rule webhook event, which is rejected with error "Error 400 Hook should contain event type"
Drilling down to this piece of code, seems branch_protection_rule is missing from GHEvents enum.

Expected behavior
No error 400 is returned when receiving a GitHub branch_protection_rule event

Additional context
I can provide corresponding PR, just would need some guidance reg. scope of the change.
Is it only a matter of adding BRANCH_PROTECTION_RULE into GHEvent?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions