Skip to content

branch_prefix and batch caps become live, configurable settings - #163

Merged
coordt merged 1 commit into
mainfrom
158-branch-prefix-batch-caps-live
Aug 16, 2026
Merged

branch_prefix and batch caps become live, configurable settings#163
coordt merged 1 commit into
mainfrom
158-branch-prefix-batch-caps-live

Conversation

@coordt

@coordt coordt commented Aug 16, 2026

Copy link
Copy Markdown
Member

Summary

  • write_gate.py's branch-name builders (start_wiki_branch, propose_pr) and batches.py's plan_batches now take branch_prefix/batch_byte_cap/batch_file_cap as parameters instead of reading hardcoded module constants
  • CLI call sites for start-branch, propose-pr, and batch-plan pass these values from ctx.obj (resolved by settings.build_context)
  • Timestamp format and PR framing labels remain internal constants, unchanged

Closes #158

Test plan

  • uv run pytest — 265 passed
  • New unit tests: non-default branch_prefix produces branch names using that prefix (test_write_gate.py); non-default batch_byte_cap/batch_file_cap change plan_batches output (test_batches.py)
  • New CLI tests: WIKI_TOOLKIT_BRANCH_PREFIX and WIKI_TOOLKIT_BATCH_FILE_CAP env vars change start-branch/batch-plan output (test_cli.py)
  • ruff check/ruff format clean (pre-existing unrelated lint errors unchanged)
  • code-review agent: no findings

write_gate.py's branch-name builders and batches.py's plan_batches now take
branch_prefix/batch_byte_cap/batch_file_cap as parameters instead of reading
hardcoded module constants, sourced from ctx.obj at the start-branch,
propose-pr, and batch-plan CLI call sites.
@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callowayproject.github.io/wiki-toolkit/pr-preview/pr-163/

Built to branch gh-pages at 2026-08-16 12:46 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions

Copy link
Copy Markdown
Contributor

Version hint: patch
Current version: 0.28.1
New version (when merged): 0.28.2

Comment ID: Display version hint-auto-generated

@coordt
coordt merged commit 3ab7d39 into main Aug 16, 2026
7 checks passed
@coordt
coordt deleted the 158-branch-prefix-batch-caps-live branch August 16, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

branch_prefix and batch caps become live, configurable settings

1 participant