Callers use Civilytics/docs-review/.gitea/workflows/review.yml@v1 with secrets: inherit. Stage 1 on every pull request; for drafter: claude, a 180-second wait and then the sandboxed drafter; closed pull requests close their docs PR; schedule and dispatch run the monthly pass. Tested live against Gitea 28.3 (drafter none, a misspelled drafter, claude, close). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ade847ba5b
commit
f39409e62c
11 files changed
+466
-26
No files matched your search
@@ -117,7 +117,7 @@ def _checkout_docs_branch(resume: bool, args: PrArgs, ident, cwd: Path) -> bool:
|
||||
if not resume:
|
||||
git.checkout_new(branch, args.head_sha, cwd)
|
||||
return True
|
||||
git.run(["fetch", "-q", "origin", branch], cwd)
|
||||
git.fetch(branch, cwd)
|
||||
git.checkout_new(branch, "FETCH_HEAD", cwd)
|
||||
try:
|
||||
git.merge(args.head_sha, ident, cwd)
|
||||
@@ -135,7 +135,8 @@ def _deliver(forge, inputs, args, docs_pr, ident, flags, result, changed, cwd, e
|
||||
branch = docs_branch(args.number)
|
||||
git.commit(changed, f"docs({inputs.workstream}): proposed edits (#{args.number})",
|
||||
ident, cwd)
|
||||
git.push(branch, cwd, env.get("DOCS_REVIEW_BOT_TOKEN"))
|
||||
git.push(branch, cwd, env.get("DOCS_REVIEW_BOT_TOKEN"),
|
||||
env.get("GITHUB_SERVER_URL"))
|
||||
body = render_pr_body(parse_summary(result.text), result, flags, args.head_sha, changed)
|
||||
if docs_pr is not None:
|
||||
forge.edit_pr(docs_pr["number"], body=body)
|
||||
|
||||
Reference in new issue
Block a user