Skip to content

Commit

Permalink
dont allow to run if event type not supported
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Aug 20, 2020
1 parent 0a6639b commit eacc49d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/generate-events.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ def generate_content(event, user, seen):
"<a href='https://github.com/%s' target='_blank'>%s</a> <a href='%s' target='_blank'>reviewed</a> a <a href='%s' target='_blank'>%s pull request</a>\n\n<small>%s</small>\n\n<a href='%s' target='_blank'>View Review</a>"
% (user, user, url, pull_request_url, repo_name, body, url)
)
else:
print(f"Event type {event_type} not supported!")
return None

# Include front end matter for jekyll
content = "---\n"
Expand Down

0 comments on commit eacc49d

Please sign in to comment.