Skip to content

Commit eac31bc

Browse files
committed
logging
1 parent e901188 commit eac31bc

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ async function run() {
5959
const octokit = github.getOctokit(token)
6060

6161
try {
62+
core.debug(`Creating check for repo:${repo_name} owner:${repo_owner}`)
6263
const resp = await octokit.rest.checks.create({
6364
owner: repo_owner,
6465
repo: repo_name,
@@ -82,7 +83,6 @@ async function run() {
8283
core.debug(`response from checks create: ${resp.status}`)
8384
} catch (checkError) {
8485
core.error(`Error creating checks: ${checkError}`)
85-
core.debug('Trying to add a comment instead')
8686

8787
const comment = annotations
8888
.map(
@@ -95,6 +95,9 @@ async function run() {
9595
github.context?.payload?.pull_request?.number ||
9696
github.context?.issue?.number
9797
if (issueNumber) {
98+
core.debug(
99+
`Trying to add a comment instead for repo:${repo_name} owner:${repo_owner} issue:${issueNumber}`
100+
)
98101
const commentResp = await octokit.rest.issues.createComment({
99102
owner: repo_owner,
100103
repo: repo_name,

0 commit comments

Comments
 (0)