You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use enums for the action field in GitHub Webhooks #3127
Many GitHub webhooks contain the action field, which is enumerated. For example, in the GitHub documentation for webhook payloads and events, the check_run event includes an action property that can take on values such as "completed", "created", "requested_action", and "rerequested". However, in the library, these fields are currently represented as free-form strings. In my opinion, making these enums would be more user-friendly.
Proposed Solution
A rudimentary example of how this can be done is as follows (go play ground link)
Activity
prnvbn commentedon Apr 11, 2024
If you agree, I can make this change
gmlewis commentedon Apr 11, 2024
That seems safe to me.
prnvbn commentedon Apr 12, 2024
nice, will send a PR your way!
prnvbn commentedon Apr 21, 2024
@gmlewis, please could you review the PR: #3136?