fix: credential check, step summary, fetch hardening, case-insensitive repo match
- drafter: claude with neither CLAUDE_CODE_OAUTH_TOKEN nor ANTHROPIC_API_KEY set posts the stage 1 flags with the note 'drafter: claude but no Claude credential is set' and fails, without starting Claude. - total_cost_usd and num_turns are printed and appended to GITHUB_STEP_SUMMARY. - git.fetch puts --end-of-options before the branch; run_pr and run_monthly use it. - The bot's own PRs match head.repo.full_name case-insensitively. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ade847ba5b
commit
a1f061ca6c
9 files changed
+112
-6
No files matched your search
@@ -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},
|
||||
|
||||
Reference in new issue
Block a user