Skip to content

Commit e207f20

Browse files
authored
fix: add extra debugging to GitHub Action (openai#1173)
https://github.com/openai/codex/actions/runs/15352839832/job/43205041563 appeared to fail around `postComment()`, but I don't see the output from `fail()` in the logs. Adding a bit more info.
1 parent 0f40ef5 commit e207f20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/actions/codex/src/post-comment.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export async function postComment(
1717
const bodyWithFooter = footer ? `${commentBody}${footer}` : commentBody;
1818

1919
const octokit = ctx.getOctokit();
20+
console.info("Got Octokit instance for posting comment");
2021
const { owner, repo } = github.context.repo;
2122
const issueNumber = github.context.issue.number;
2223

@@ -28,6 +29,7 @@ export async function postComment(
2829
}
2930

3031
try {
32+
console.info("Calling octokit.rest.issues.createComment()");
3133
await octokit.rest.issues.createComment({
3234
owner,
3335
repo,

0 commit comments

Comments
 (0)