feat: reusable review workflow
tests / unittest (push) Successful in 19s

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:
jaredandClaude Opus 5.5 committed 2026-11-12 15:12:57 -05:00
1 parent ade847ba5b
commit f39409e62c
11 files changed
+466 -26

No files matched your search

+7
View File
@@ -174,6 +174,13 @@ class TestPrsAndIssues(unittest.TestCase):
self.assertIsNone(g.find_open_pr("docs-review/pr-12"))
self.assertIsNone(g.find_open_pr_prefix("docs-review/"))
def test_head_repo_matches_ignoring_case(self):
routes = {("GET", BASE + "/api/v1/user"): USER,
("GET", API + "/pulls?state=all&limit=50&page=1"):
[pr(5, "docs-review/pr-12", repo="O/R")]}
g, _ = client(routes)
self.assertEqual(g.find_pr("docs-review/pr-12")["number"], 5)
def test_open_pr_and_edit(self):
g, f = client({
("POST", API + "/pulls"): {"number": 12},