gitea-saas-core#21: single owning issue for gitea_saas/gitea_client.py (#21) #23
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: pbwraith/gitea-saas-core#23
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "issue-21"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #21
What
gitea_saas/gitea_client.pynow has exactly one owning issue. Measured live today, four open issues declared it in their "Files allowed" set (#4, #5, #7, #8) and three PRs carried independent copies of the module. This PR:gitea_saas/gitea_client.py(extend) from Files allowedgitea_saas/gitea_client.py(extend) from Files allowedgitea_saas/gitea_client.py(extend) from Files allowedAcceptance evidence
Grep across open issue bodies — "Files allowed" lines (after edit):
gitea_saas/gitea_client.py,gitea_saas/intake_factory.py,tests/test_intake_factory.py<-- only ownergitea_saas/reviewer.py,tests/test_reviewer.pygitea_saas/delivery.py,tests/test_delivery.pygitea_saas/intake_eval.py,tests/test_intake_eval.py=>
gitea_saas/gitea_client.pyis listed in the allowed-files set of exactly one open issue (#4).ARCHITECTURE.md names the module and its owner and states new front-ends import it.
Tests
No code change.
python -m pytest -qon base main: 29 passed.git diff --checkclean.Out of scope (per #21)
gitea_client.pybehaviour or itsGITEA_TOKENhandling.Merged — verified against the merge result
origin/main(c78f497) merged intoorigin/issue-21: 0 conflicts (alreadyup to date — the branch already contains current main).
Docs-only change (
ARCHITECTURE.md, +9 lines, no code), so an unchanged countis the correct result here, not a weak one.
What I checked beyond the count
The ownership claim this PR writes into ARCHITECTURE.md is #4 owns
gitea_saas/gitea_client.py. I verified that against #21's own measured tablerather than taking the PR's word for it:
9698050b6f2ebcb4d5c905ebf6b56b6a(divergent superset)!17 (issue #4) is the superset by method name — it carries
repo_exists,create_org_repo,list_labels,label_id,create_issueon top of the fourmethods the other copies have. So "owned by #4, everyone else imports it"
matches the code that actually exists.
I also confirmed the file genuinely does not exist on
main(
git ls-tree -r origin/main: 8 files, nogitea_client.py) — every one ofthose PRs creates it. That is what makes this an add/add conflict invisible to
any single-PR review.
Why this is worth merging ahead of the code PRs
#21 records that #8 (eval farm) and #9 (dashboard) are both open,
unstarted, and both plainly need Gitea API access. With no written owner they
would each write a fourth and fifth copy. Landing the rule first is the cheap
way to stop that; landing it after the fact only documents a mess that already
happened.
Out of scope here and still open: the actual de-duplication of the three
existing copies, which is !17's and !12's job.