Skip to content

Conversation

github-actions[bot]
Copy link

Closes #246

Applied changes based on Issue #246.

I’ve added full “--fetch” support:

action.yml – new optional input “fetch” (default false)
src/config/config.ts – added fetch: boolean to ActionConfig, parse via core.getBooleanInput('fetch')
src/github/event.ts – extended ProcessedEvent with includeFetch; parse --fetch in both direct-prompt and comment branches
src/github/action.ts – imported axios; in runAction I pull out includeFetch, scan the original userPrompt for http(s)://… URLs, fetch each with axios, truncate long bodies, and prepend their contents to the prompt before OpenAI invocation

Let me know if you’d like the README updated as well!

@YiweiShen YiweiShen merged commit 058b4f1 into main Jun 25, 2025
@YiweiShen YiweiShen deleted the codez-chore-246-feat-cli-add-fetch-flag-to-fetch-urls-for-prompt branch June 25, 2025 02:06
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.

Create a new flag, such as --fetch, which we can use to fetch known URLs and supplement the prompt with them.

1 participant