Skip to content

Commit ed19a99

Browse files
committed
feat: Add log messages to help with future debugging
1 parent 0567657 commit ed19a99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/actions/fix/src/fixIssue.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export async function fixIssue(octokit: Octokit, { owner, repository, issueNumbe
3131
// Get GraphQL identifier for issue (unless already provided)
3232
let issueId = nodeId;
3333
if (!issueId) {
34+
console.debug(`Fetching identifier for issue ${owner}/${repository}#${issueNumber}`);
3435
const issueResponse = await octokit.graphql<{
3536
repository: {
3637
issue: { id: string }
@@ -44,8 +45,12 @@ export async function fixIssue(octokit: Octokit, { owner, repository, issueNumbe
4445
{ owner, repository, issueNumber }
4546
);
4647
issueId = issueResponse?.repository?.issue?.id;
48+
console.debug(`Fetched identifier for issue ${owner}/${repository}#${issueNumber}: ${issueId}`);
49+
} else {
50+
console.debug(`Using provided identifier for issue ${owner}/${repository}#${issueNumber}: ${issueId}`);
4751
}
4852
if (!issueId) {
53+
console.warn(`Couldn’t get identifier for issue ${owner}/${repository}#${issueNumber}. Skipping assignment to Copilot.`);
4954
return;
5055
}
5156
// Assign issue to Copilot

0 commit comments

Comments
 (0)