Skip to content
This repository was archived by the owner on May 26, 2026. It is now read-only.

Commit d8b465d

Browse files
committed
Debug
1 parent 05e5ac8 commit d8b465d

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

dist/index.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42910,12 +42910,14 @@ async function nagToLinkJiraIssue(comments) {
4291042910
const {
4291142911
data: { login: authUserLogin },
4291242912
} = await octokit.rest.users.getAuthenticated()
42913+
core.info({ authUserLogin })
4291342914

4291442915
const alreadyCommented = comments.some(
4291542916
(comment) =>
4291642917
comment.user?.login === authUserLogin &&
4291742918
comment.body?.includes(nagMarkerComment)
4291842919
)
42920+
core.info({ alreadyCommented })
4291942921

4292042922
if (!alreadyCommented) {
4292142923
const keyword =
@@ -43079,7 +43081,14 @@ async function main() {
4307943081
const comments = await getPullRequestComments()
4308043082
const issueIds = extractResolvedIssueKeys(pr.body, comments)
4308143083

43084+
core.info(JSON.stringify({ issueIds }))
4308243085
if (!issueIds.length) {
43086+
core.info(
43087+
JSON.stringify({
43088+
eventName: context.eventName,
43089+
action: payload.action,
43090+
})
43091+
)
4308343092
// Only nag when the PR body could have changed
4308443093
if (
4308543094
context.eventName === 'pull_request' &&

index.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,14 @@ async function nagToLinkJiraIssue(comments) {
196196
const {
197197
data: { login: authUserLogin },
198198
} = await octokit.rest.users.getAuthenticated()
199+
core.info({ authUserLogin })
199200

200201
const alreadyCommented = comments.some(
201202
(comment) =>
202203
comment.user?.login === authUserLogin &&
203204
comment.body?.includes(nagMarkerComment)
204205
)
206+
core.info({ alreadyCommented })
205207

206208
if (!alreadyCommented) {
207209
const keyword =
@@ -365,7 +367,14 @@ async function main() {
365367
const comments = await getPullRequestComments()
366368
const issueIds = extractResolvedIssueKeys(pr.body, comments)
367369

370+
core.info(JSON.stringify({ issueIds }))
368371
if (!issueIds.length) {
372+
core.info(
373+
JSON.stringify({
374+
eventName: context.eventName,
375+
action: payload.action,
376+
})
377+
)
369378
// Only nag when the PR body could have changed
370379
if (
371380
context.eventName === 'pull_request' &&

0 commit comments

Comments
 (0)