Skip to content

Commit

Permalink
Corrected indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
andykuszyk committed Sep 13, 2024
1 parent 41348d1 commit 6400c74
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions ob-jira-markdown.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; ob-jira-markdown.el --- org-babel functions for jira-cli evaluation -*-lexical-binding:t; ispell-buffer-session-localwords: ("jira" "src" "emx-); -*-
;;; ob-jira-markdown.el --- org-babel functions for jira-cli evaluation -*- lexical-binding:t; ispell-buffer-session-localwords: ("jira" "src" "emx-); -*-

;; Copyright (C) 2024 Andy Kuszyk

Expand Down Expand Up @@ -94,25 +94,25 @@
(t
(error ":execute must be \"cli\" or \"script\"")))))
((string= command "edit")
(if (not issue)
(error ":issue must be set to edit an issue"))
(let ((jira-cli-cmd (format
"jira issue edit %s %s%s--no-input -b '%s'"
issue
(if title (format "-s '%s' " title) "")
(if project (format "-p '%s' " project) "")
(ob-jira-markdown--clean-src-body body))))
(cond
((string= execute "cli")
(let ((updated-jira-cli-issue
(ob-jira-markdown--parse-issue-reference
(shell-command-to-string jira-cli-cmd))))
(message (format "Updated Jira issue: %s"
updated-jira-cli-issue))))
((string= execute "script")
jira-cli-cmd)
(t
(error ":execute must be \"cli\" or \"script\"")))))
(if (not issue)
(error ":issue must be set to edit an issue"))
(let ((jira-cli-cmd (format
"jira issue edit %s %s%s--no-input -b '%s'"
issue
(if title (format "-s '%s' " title) "")
(if project (format "-p '%s' " project) "")
(ob-jira-markdown--clean-src-body body))))
(cond
((string= execute "cli")
(let ((updated-jira-cli-issue
(ob-jira-markdown--parse-issue-reference
(shell-command-to-string jira-cli-cmd))))
(message (format "Updated Jira issue: %s"
updated-jira-cli-issue))))
((string= execute "script")
jira-cli-cmd)
(t
(error ":execute must be \"cli\" or \"script\"")))))
(t
(error ":command must be \"create\" or \"edit\"")))))

Expand Down

0 comments on commit 6400c74

Please sign in to comment.