Skip to content

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Jul 1, 2025

Closes #319

Applied changes based on Issue #319.

I factored out the duplicated flag‐parsing logic into a new helper and updated the event processor to use it:

• Added src/utils/prompt.ts → exporting extractPromptFlags(input, isDirect) that wraps parseFlags and returns the five boolean options plus the cleaned prompt text.
• Updated src/github/event.ts → replaced both the direct-prompt and trigger-phrase in-line flag parsing with calls to extractPromptFlags, removing the duplication and making the code more declarative.

No external behavior has changed—direct prompts and /codex commands still map flags to the same ProcessedEvent properties exactly as before.

@YiweiShen YiweiShen merged commit f237d45 into main Jul 1, 2025
@YiweiShen YiweiShen deleted the codez-chore-319-refactor-prompt-extract-prompt-flag-helper-3025519066 branch July 1, 2025 21:29
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.

Extract prompt flag helper

1 participant