Skip to content

Commit

Permalink
github: output link for numeric issue/PR references
Browse files Browse the repository at this point in the history
Closes #84.
  • Loading branch information
dgw committed Feb 4, 2021
1 parent 273bac6 commit ca62f4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sopel_modules/github/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ def issue_info(bot, trigger, match=None):
response.append(bold(' | '))
response.append(emojize(body))

# append link, if not triggered by a link
if not match:
link = shorten_url(data['html_url'])
response.append(bold(' | '))
response.append(link)

bot.say(''.join(response))


Expand Down

0 comments on commit ca62f4c

Please sign in to comment.