lib/lita/handlers/jira.rb in lita-jira-0.7.1 vs lib/lita/handlers/jira.rb in lita-jira-0.7.2
- old
+ new
@@ -65,10 +65,10 @@
t('help.todo.syntax') => t('help.todo.desc')
}
)
# Detect ambient JIRA issues in non-command messages
- route ISSUE_PATTERN, :ambient, command: false
+ route AMBIENT_PATTERN, :ambient, command: false
def summary(response)
issue = fetch_issue(response.match_data['issue'])
return response.reply(t('error.request')) unless issue
response.reply(t('issue.summary', key: issue.key, summary: issue.summary))