Module: GitTrelloPostCommit

Defined in:
lib/git_trello_post_commit.rb,
lib/git_trello_post_commit/version.rb,
lib/git_trello_post_commit/trello-http.rb

Defined Under Namespace

Modules: Trello Classes: Hook, MessageParser

Constant Summary collapse

DONE_KEYWORDS =
[:close, :fix]
IN_PROGRESS_KEYWORDS =
[:ref, :case, :issue, :card]
KEYWORD_REGEX =
/((ref)(?:erence)?s?|(case)s?|(issue)s?|(card)s?|(close)s?|(fix)(?:es)?)/i
ID_REGEX =
/\#(?:\d+)/
ID_LIST_REGEX =
/\s*((?:#{ID_REGEX}(?:[,;]?\s+(?:and|\&)|[,;])?\s*)+)/i
REF_REGEX =
/#{KEYWORD_REGEX}\s+#{ID_LIST_REGEX}/
ID_CAPTURE_REGEX =
/\#(\d+)/
VERSION =
"0.2.1"