Skip to content

Commit

Permalink
Issue body can be set as None
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoch authored Oct 15, 2021
1 parent cfcdc16 commit aef40f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/generate-events.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ def generate_content(event, user, seen):
issue_number = issue_url.split("/")[-1]
issue_state = event["payload"]["issue"]["state"]
issue_title = event["payload"]["issue"]["title"]
issue_body = event["payload"]["issue"].get('body', '').split("\n")[0] + "..."
issue_body = event["payload"]["issue"].get('body', '') or ""
issue_body = issue_body.split("\n")[0] + "..."
description = "<a href='https://github.com/%s' target='_blank'>%s</a> %s issue <a href='%s' target='_blank'>%s#%s</a>.\n\n<p>%s</p><small>%s</small><a href='%s' target='_blank'>View Comment</a>" % (
user,
user,
Expand Down

0 comments on commit aef40f9

Please sign in to comment.