Skip to content

fix(github): fix several bugs in github action index.ts#1

Open
ai-x-builder wants to merge 1 commit intodevfrom
claude/review-and-fix-issue-Ynyf7
Open

fix(github): fix several bugs in github action index.ts#1
ai-x-builder wants to merge 1 commit intodevfrom
claude/review-and-fix-issue-Ynyf7

Conversation

@ai-x-builder
Copy link
Owner

  • Add missing isScheduleEvent() function that was called but never
    defined, causing a ReferenceError at runtime
  • Use MENTIONS env var in assertPayloadKeyword() and getUserPrompt()
    instead of hardcoded /opencode and /oc trigger phrases
  • Fix useEnvGithubToken() to check USE_GITHUB_TOKEN flag and read
    GITHUB_TOKEN env var, matching the action.yml configuration
  • Add useEnvOidcBaseUrl() to support configurable OIDC_BASE_URL env
    var instead of hardcoded https://api.opencode.ai

https://claude.ai/code/session_018YbkAoFxCwyYaaP2UQ8mGq

- Add missing `isScheduleEvent()` function that was called but never
  defined, causing a ReferenceError at runtime
- Use `MENTIONS` env var in `assertPayloadKeyword()` and `getUserPrompt()`
  instead of hardcoded `/opencode` and `/oc` trigger phrases
- Fix `useEnvGithubToken()` to check `USE_GITHUB_TOKEN` flag and read
  `GITHUB_TOKEN` env var, matching the action.yml configuration
- Add `useEnvOidcBaseUrl()` to support configurable `OIDC_BASE_URL` env
  var instead of hardcoded `https://api.opencode.ai`

https://claude.ai/code/session_018YbkAoFxCwyYaaP2UQ8mGq
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.

2 participants