Skip to content

Commit 02ade03

Browse files
committed
Add link to workflow run in issue body
1 parent ffc1769 commit 02ade03

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/cran-status-check.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121

2222
- uses: r-lib/actions/setup-r-dependencies@v2
2323
with:
24-
packages: gh
24+
packages: |
25+
gh
26+
glue
2527
2628
- name: Check for existing CRAN issues
2729
id: check-issues
@@ -57,11 +59,11 @@ jobs:
5759
"POST /repos/{owner_repo}/issues",
5860
owner_repo = Sys.getenv("GITHUB_REPOSITORY"),
5961
title = paste("Fix CRAN R CMD check issues by", deadline),
60-
body = paste0(
61-
"This package is failing CRAN checks and is at risk of archival.\n",
62-
"https://cran.r-project.org/web/checks/check_results_",
63-
pkgname,
64-
".html"
62+
body = glue::glue(
63+
"This package is failing CRAN checks and is at risk of archival.",
64+
"https://cran.r-project.org/web/checks/check_results_{pkgname}.html",
65+
"This issue was opened by https://github.com/{Sys.getenv('GITHUB_REPOSITORY')}/actions/runs/{Sys.getenv('GITHUB_RUN_ID')}.",
66+
.sep = "\n\n"
6567
),
6668
labels = list("cran-deadline")
6769
)

0 commit comments

Comments
 (0)