Repository navigation
Conversation
8c73fc1 to
ea4a5ed
Compare
ea4a5ed to
c7580b2
Compare
cba2b77 to
95956d8
Compare
95956d8 to
ec011cc
Compare
ec011cc to
1ea6b57
Compare
1ea6b57 to
53041ca
Compare
| version: "0.12.13" | ||
| checksum: "745765a3b6e360ad76743599ae5c42e9278c7edf8bbff9fc76d05bf2623a04dd" |
There was a problem hiding this comment.
[P2] Use a uv version that supports the root configuration
uv 0.12.13 deserializes build-constraint-dependencies as requirement strings, but the root pyproject.toml now contains { requirement, hashes } tables. The new type-check command reads that manifest directly, and the nested project commands also parse it during workspace discovery, causing these jobs to fail before Python runs. Update the new uv pins and matching checksums in all three workflows to the compatible version already used by neighboring jobs.
| @dataclass(frozen=True, slots=True) | ||
| class LabelPlan: | ||
| labels: tuple[str, ...] |
There was a problem hiding this comment.
[P3] Enforce label policy when constructing LabelPlan
The CLI currently calls validate_label_plan, but the library permits LabelPlan(("bot:rebase",)), which apply_labels forwards to the publisher without checking the allowlist, count, or uniqueness. The frozen dataclass prevents mutation but does not establish the invariant its consumer relies on; every future caller must remember the validation sequence. Require the allowlist when constructing LabelPlan and enforce these constraints there, with both recommendation and JSON adapters delegating to that checked construction.
| for value in [ | ||
| '{"labels":[],"summary":""}\n{"labels":["bug"],"summary":""}', | ||
| '{"labels":["bug"],"labels":[],"summary":""}', | ||
| '{"labels":[],"summary":NaN}', | ||
| ]: | ||
| with self.subTest(value=value): |
There was a problem hiding this comment.
[P3] Give CLI rejection scenarios separate named tests
This case-table loop runs three full CLI integration scenarios against the same output path, contrary to the repository's explicit integration-test convention. The cases cannot be selected independently, and an unexpected output write in one case contaminates subsequent assertions. Follow the direct invocation pattern in the neighboring test_cli: use separately named tests with isolated fixtures for the distinct CLI rejection behaviors, leaving additional decoder permutations in test_json.py.
The GitHub automations currently spread data handling, API calls, and workflow decisions across shell scripts,
jq, and inline code. Introduceuv-automations, an internal Python 3.14+ package with typed GitHub values, exhaustive state handling, immutable results, and explicit Actions adapters. Move the deterministic pull-request labeling and conflict-discovery stages into Python, including context preparation, repository and head checks, matrix selection, label publication, and cleanup. GitHub Actions retains the job graph, credential exchange, and separate publisher jobs. The package README sketches the same boundary for issue context, workflow retries, promotion, rebasing, and releases.