Skip to content

Commit

Permalink
Report jira issue in shortform when creating; fix #298
Browse files Browse the repository at this point in the history
  • Loading branch information
devth committed Jan 8, 2014
1 parent 7db58b9 commit 8203e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/yetibot/api/jira.clj
Expand Up @@ -76,6 +76,8 @@
(:body (client/get uri client-opts))
(catch Exception _ nil))))

(def fetch-and-format-issue-short (comp format-issue-short get-issue))

(defn find-project [pk]
(try
(:body (client/get (endpoint "/project/%s" pk) client-opts))
Expand Down
3 changes: 1 addition & 2 deletions src/yetibot/commands/jira.clj
Expand Up @@ -60,8 +60,7 @@
:desc desc}))]
(if (success? res)
(let [iss-key (-> res :body :key)]
(report-jira iss-key)
(str "Created issue " iss-key))
(api/fetch-and-format-issue-short iss-key))
(map-to-strs (->> res :body :errors)))))

(defn- short-jira-list [res]
Expand Down

0 comments on commit 8203e98

Please sign in to comment.