Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added zendesklinking script #6

Merged
merged 2 commits into from

2 participants

@angrycub
Collaborator

No description provided.

@brianshumate

+1 great feature!

@angrycub angrycub merged commit 95189e0 into from
@angrycub angrycub deleted the branch
@angrycub angrycub restored the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 10, 2013
  1. @angrycub

    Added zendesklinking script

    angrycub authored
Commits on Mar 11, 2013
  1. @angrycub
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 0 deletions.
  1. +11 −0 scripts/zendesklinker.coffee
View
11 scripts/zendesklinker.coffee
@@ -0,0 +1,11 @@
+# ZenDesk Linker
+#
+# Attempts to naively build a link to a zendesk ticket whenever the
+# word ticket or request is followed with a # and a number.
+#
+#
+
+module.exports = (robot) ->
+ robot.hear /(ticket|response|review)[^#]*?#\s*(\d+)/i, (msg)->
+ ticketNum = escape(msg.match[2])
+ msg.send "https://basho.zendesk.com/agent/#/tickets/"+ticketNum
Something went wrong with that request. Please try again.