Skip to content

fix(ai-run): reserved env var + artifact name - #33

Merged
wangzhizhou merged 1 commit into
mainfrom
fix/ai-run-env
Nov 10, 2026
Merged

wangzhizhou merged 1 commit into
mainfrom
fix/ai-run-env

Conversation

@wangzhizhou

Copy link
Copy Markdown
Contributor

实测 dispatch ai-run.yml 暴露的两个 bug:

  1. GITHUB_REPOSITORY 是 GitHub 保留变量,env: 覆盖无效 → runner 认成 hub 仓库、读不到目标 Issue。改为传 AI_TARGET_REPO(main.ts 优先读它)。
  2. artifact 名里带 owner/repo 含 /,upload-artifact 拒绝 → 改成 issue + run id。

…tain "/"

Two bugs found by dispatching ai-run.yml for real:

- `GITHUB_REPOSITORY` cannot be overridden via `env:` (GitHub reserves
  GITHUB_*), so the runner saw the hub repo instead of the target and failed
  to read the issue. Add `AI_TARGET_REPO` (read first by main.ts) and set it
  in ai-run.yml.
- the artifact name embedded `owner/repo`, which upload-artifact rejects
  (forward slash is not allowed) -> use issue + run id.
@wangzhizhou
wangzhizhou merged commit ef071b9 into main Nov 10, 2026
2 checks passed
@wangzhizhou
wangzhizhou deleted the fix/ai-run-env branch November 10, 2026 06:04
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.

1 participant