Skip to content

fix: add workflow_dispatch trigger to release pipeline - #11

Merged
joryirving merged 1 commit into
mainfrom
fix/release-workflow-dispatch
Apr 14, 2026
Merged

fix: add workflow_dispatch trigger to release pipeline#11
joryirving merged 1 commit into
mainfrom
fix/release-workflow-dispatch

Conversation

@itsmiso-ai

Copy link
Copy Markdown
Contributor

Adds workflow_dispatch so we can manually trigger the Release workflow for testing. Will allow manual dispatch at https://github.com/joryirving/windowstead/actions/workflows/release.yml

@joryirving
joryirving merged commit b0d38b9 into main Apr 14, 2026
1 check passed
itsmiso-ai added a commit that referenced this pull request Jul 8, 2026
When the worker cap (BASE_WORKER_CAP + 2 per completed hut) exceeded the
10-entry WORKER_NAMES pool, recruit_worker cycled back to bare names like
"Jun" and produced duplicates (e.g. worker #11 collided with worker #1).

recruit_worker now appends a numeric seed once we've cycled past the
first round ("Jun11", "Mara12", …) and tracks a `base_name` field on
every worker dict so that:
  - bootstrap_state seeds base_name on the initial 10 workers,
  - render_sidebar's badge color lookup uses base_name,
  - render_worker_sprites / render_worker_overlay pass base_name to
    worker_texture so all "Jun*" workers share the same sprite cache
    entry and the same badge color as cycle-1 "Jun".

Added tests/test_recruit_worker_pool_overflow.gd as a regression test:
with five completed huts (cap = 12) it recruits pool_size + 1 workers,
asserts that cycle-1 names stay bare, that the overflow worker gets the
expected numeric suffix, that all names remain unique, and that the
overflow worker's base_name resolves to a real WORKER_BADGE_COLORS entry.

Fixes #247

Signed-off-by: Saffron <263493777+itsmiso-ai@users.noreply.github.com>
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.

2 participants