You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
totally untested, just wrote this here, probably won't work on the first try:
robot.hear /(?:gh|github) issue #(\d+)(?: in ([\w\d-_]+)(?:\/([\w\d-_]+))?)?/i, id:'gh-issues.mention', (msg) ->
id = msg.match[1]
repo = if msg.match[2]? and msg.match[3]?
"#{msg.match[2]}/#{msg.match[3]}"
else if msg.match[2]?
"#{DEFAULT_OWNER}/#{msg.match[2]}"
else
"#{DEFAULT_OWNER}/#{DEFAULT_REPO}"
robot.ghissues.showIssue msg, id, repo
So you should then be able to mention issues in a chat:
User> So I says to Mabel, I says check out gh issue #4832742 in hubot-scripts/hubot-gh-issues
Hubot> Issue #4832742 in hubot-scripts/hubot-gh-issues - foo - https://github.com/hubot-scripts/hubot-gh-issues/issue/4832742
The text was updated successfully, but these errors were encountered:
One problem here is users that aren't authenticated. There could be a default "bot" credential for this, or it could only work for authenticated users. I think option 2 is better.
totally untested, just wrote this here, probably won't work on the first try:
So you should then be able to mention issues in a chat:
The text was updated successfully, but these errors were encountered: