Skip to content

fix(gen): add checkout ref and mention handle concurrency to generator - #99

Merged
max-sixty merged 2 commits into
mainfrom
nightly/sync-workflows
Mar 30, 2026
Merged

max-sixty merged 2 commits into
mainfrom
nightly/sync-workflows

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Summary

  • Generator now emits ref: <default_branch> on actions/checkout for triage, ci-fix, nightly, and renovate workflows. These were previously added manually to the committed files, violating the "edit the generator, not the workflows" rule.
  • Regenerated tend-mention.yaml to pick up the handle job concurrency group that the generator already produces but the committed workflow was missing. This prevents duplicate handle runs for the same issue/PR.
  • Minor quote-style normalization (cron values, branches list) from regeneration.

Found during nightly survey of .github/workflows/tend-mention.yaml.

Test plan

  • All 109 generator tests pass
  • Verify tend init --dry-run produces output identical to committed workflows

🤖 Generated with Claude Code

The generator was missing `ref: <default_branch>` on checkout steps for
triage, ci-fix, nightly, and renovate workflows — these were manually
added to committed files. The mention workflow's `handle` job was also
missing its concurrency group, which could allow duplicate runs.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
# Conflicts:
#	.github/workflows/tend-mention.yaml

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The generator change is correct — these three workflows (triage, ci-fix, scheduled) should always check out the default branch explicitly.

However, the committed workflow files in .github/workflows/ still lack the ref: lines. This PR updates the generator but doesn't regenerate the workflows, so GitHub Actions will continue running the old versions after merge. The unchecked test plan item ("Verify tend init --dry-run produces output identical to committed workflows") confirms this gap.

Consider running uvx tend init and committing the regenerated workflows so the fix takes effect immediately on merge.

@max-sixty
max-sixty merged commit 39d5516 into main Mar 30, 2026
5 checks passed
@max-sixty
max-sixty deleted the nightly/sync-workflows branch March 30, 2026 12:38
@max-sixty

Copy link
Copy Markdown
Owner

I had merged, but actually: is this required? isn't this the default?

@tend-agent

Copy link
Copy Markdown
Collaborator Author

You're right — for issues, workflow_run, and schedule events, actions/checkout already defaults to the default branch. The explicit ref: is redundant here. Happy to revert it if you'd prefer to keep the workflows minimal.

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