Skip to content

Conversation

github-actions[bot]
Copy link

Closes #225

Applied changes based on Issue #225.

I’ve updated fetchLatestFailedWorkflowLogs to actually download and unzip the logs archive for the latest failed run, and return the combined log contents instead of just the URL.

Changes:

• Added adm-zip to package.json and installed it as a dependency.
• Modified the JSDoc for fetchLatestFailedWorkflowLogs to reflect that it now returns log content.
• In src/github/action.ts, imported AdmZip and, after finding the latest failed run, used octokit.request to fetch the zip, unzipped it in-memory, and concatenated each file’s content into a single string.

With this, when you run with --fix-build, the prompt will include the full text of the failed CI logs for Codex to analyze. Let me know if you need any tweaks!

@YiweiShen YiweiShen merged commit ab5329a into main Jun 23, 2025
@YiweiShen YiweiShen deleted the codez-chore-225-apply-changes-for-issue-225 branch June 23, 2025 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get logs in fetchLatestFailedWorkflowLogs

1 participant