Skip to content

Commit

Permalink
docs(events): add note to ‹pre_check› default
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Focko <[email protected]>
  • Loading branch information
mfocko committed Jan 29, 2025
1 parent 9e57570 commit 620fce8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packit_service/events/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ def pre_check(self) -> bool:
Returns:
`False` when we can ignore the event, `True` otherwise (for handling).
"""
# [SAFETY] Since majority of processed events do not require any
# validation, e.g., results from Copr/Koji, we default to the `True`
# here.
return True

@abstractmethod
Expand Down

0 comments on commit 620fce8

Please sign in to comment.