fix(ci): use context.repo.repo instead of context.repo.name

github-script's context.repo object has {owner, repo}, not {owner, name}.
The typo caused the weekly Verify FoJin Links workflow to POST to
repos/xr843//issues (double slash, empty repo name) and fail with 404.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xianren
2026-04-13 16:13:23 +08:00
parent 3deec3ef68
commit 6ba49597e0
+1 -1
View File
@@ -45,7 +45,7 @@ jobs:
await github.rest.issues.create({ await github.rest.issues.create({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.name, repo: context.repo.repo,
title: `[Weekly] FoJin links need update — ${updates} URLs, ${failed} missing`, title: `[Weekly] FoJin links need update — ${updates} URLs, ${failed} missing`,
body: `Automated weekly link verification found changes.\n\n` + body: `Automated weekly link verification found changes.\n\n` +
`- **URL replacements needed:** ${updates}\n` + `- **URL replacements needed:** ${updates}\n` +