fix(ci): fork PR secrets support + gitignore .omo/#31
Merged
Conversation
The .omo/ directory contains AI agent session tracking files that should not be version controlled. Added to .gitignore and removed existing files from the index (kept locally). Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Change trigger from pull_request to pull_request_target so fork PRs can access SENSENOVA_API_KEY. Use SHA checkout (head.sha || github.sha) for security and workflow_dispatch compatibility. Remove cross-repo comment skip guard since GITHUB_TOKEN now has write access. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
jizhenjun
self-requested a review
July 26, 2026 11:33
jizhenjun
approved these changes
Jul 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
1. AI Code Review 支持 fork PR
pull_request改为pull_request_target,使 fork PR 能访问SENSENOVA_API_KEYref: ${{ github.event.pull_request.head.sha || github.sha }},安全锁定 SHA + workflow_dispatch fallbackpull_request_target下 GITHUB_TOKEN 有写权限)2. .omo/ 目录加入 gitignore
.omo/加入.gitignore.omo/文件从索引移除(保留本地)