Skip to content

Commit

Permalink
fix unused host parameter in ado-workitem-url, fix doc comment warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Bilson committed Jul 5, 2024
1 parent 383f0d6 commit 694d81f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions org-azuredevops.el
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ which links to a file in repository <repo>."
(defun ado-workitem-url (path &optional org host)
"Expand a work item link PATH into a URL in AzDevops."
(let ((org (or org org-azuredevops-organization))
(host (or org-azuredevops-host)))
(host (or host org-azuredevops-host)))
(concat "https://" host "/" org "/_workitems/edit/" path)))

(defun ado-workitem-command (path &optional org host)
Expand Down Expand Up @@ -252,8 +252,9 @@ which links to PR #<number> in repository <repo>."
;;; Public Functions
;;; -----------------------------------------------------------------------------
(defun org-azuredevops-pullrequest-title-to-link (title)
"Given an AzureDevOps Pull Request TITLE (the 'copy' button to the right of the title on the
pull request view), create a pr: link, preserving the title. Used in pull-request-capture-template.org"
"Given an AzureDevOps Pull Request TITLE (the 'copy' button to the
right of the title on the pull request view), create a pr: link,
preserving the title. Used in pull-request-capture-template.org"
(if (string-match "^Pull Request \\([[:digit:]]+\\): \\(.*\\)$" title)
(concat "pr:" (match-string 1 title) ": " (match-string 2 title))
title))
Expand Down

0 comments on commit 694d81f

Please sign in to comment.