Skip to content

Commit

Permalink
Add event codes list for "github" application
Browse files Browse the repository at this point in the history
  • Loading branch information
chigby authored and SaptakS committed Jan 4, 2024
1 parent c656e80 commit 4b99872
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions github/event_codes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import enum


EventCode = enum.IntEnum(
value="EventCode",
# New names should only be added to the *end* of this list.
# Adding a new name will implicitly change the integer value of
# the names that come after it, which will change how these are
# aggregated in our log files.
#
# For the same reason, once an event code has been released into
# production, it should not be removed from the list.
names=[
'SignatureNotSha1',
'PostDataMissing',
'InvalidSignature',
'UnsupportedGithubEvent',
'UnsupportedAction',
'ReleaseAttributeMissing',
],
# This start value is designed to be unique for the "github" app.
# Other apps should use a different start value that does not
# reasonably conflict with this value (e.g. 2000, 3000, and so
# on).
start=1000,
)

0 comments on commit 4b99872

Please sign in to comment.