Skip to content

Commit

Permalink
More hyperlink tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Jul 25, 2024
1 parent 9073982 commit 7a7b79f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/pr.R
Original file line number Diff line number Diff line change
Expand Up @@ -967,22 +967,22 @@ pr_branch_delete <- function(pr) {

if (is.null(pr_ref)) {
ui_bullets(c(
"i" = "{.href [PR #{pr$pr_number}]({pr$pr_html_url})} originated from branch {.val {pr_remref}},
"i" = "PR {.href [{pr$pr_string}]({pr$pr_html_url})} originated from branch {.val {pr_remref}},
which no longer exists."
))
return(invisible(FALSE))
}

if (is.na(pr$pr_merged_at)) {
ui_bullets(c(
"i" = "{.href [PR #{pr$pr_number}]({pr$pr_html_url})} is unmerged, we will not delete the
"i" = "PR {.href [{pr$pr_string}]({pr$pr_html_url})} is unmerged, we will not delete the
remote branch {.val {pr_remref}}."
))
return(invisible(FALSE))
}

ui_bullets(c(
"v" = "{.href [PR #{pr$pr_number}]({pr$pr_html_url})} has been merged, deleting remote branch
"v" = "PR {.href [{pr$pr_string}]({pr$pr_html_url})} has been merged, deleting remote branch
{.val {pr_remref}}."
))
# TODO: tryCatch here?
Expand Down

0 comments on commit 7a7b79f

Please sign in to comment.