Skip to content

Commit

Permalink
Merge pull request #85 from sopel-irc/numeric-ref-link
Browse files Browse the repository at this point in the history
github: output link for numeric issue/PR references
  • Loading branch information
dgw authored Feb 6, 2021
2 parents 273bac6 + ca62f4c commit de3a711
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 de3a711

Please sign in to comment.