Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
chore: update tend workflows (0.1.22 → 0.1.24) (#3969)
Worktrunk Botcf734e3b3390
diff --git a/.github/actionlint.yaml b/.github/actionlint.yamlnew file mode 100644index 000000000..7daa83a61--- /dev/null+++ b/.github/actionlint.yaml@@ -0,0 +1,8 @@+# `concurrency.queue` is valid GitHub Actions syntax that+# actionlint's schema rejects. tend writes this ignore so the+# generated workflows lint clean; the glob keeps a real schema+# error in your own workflows failing.+paths:+ '**/.github/workflows/tend-*.yaml':+ ignore:+ - unexpected key "queue" for "concurrency" sectiondiff --git a/.github/workflows/tend-ci-fix.yaml b/.github/workflows/tend-ci-fix.yamlindex 4b8685e33..0e652b7b2 100644--- a/.github/workflows/tend-ci-fix.yaml+++ b/.github/workflows/tend-ci-fix.yaml@@ -1,4 +1,4 @@-# Generated by tend 0.1.22. Regenerate with: uvx tend@latest init+# Generated by tend 0.1.24. Regenerate with: uvx tend@latest init## Do not edit this file directly — it will be overwritten on regeneration.# To customize behavior, edit the relevant skill (for example,@@ -34,20 +34,20 @@ jobs:- uses: ./.github/actions/tend-setup- - uses: max-sixty/tend/[email protected]+ - uses: max-sixty/tend/[email protected]with:github_token: ${{ secrets.TEND_BOT_TOKEN }}claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}bot_name: worktrunk-botmodel: opus- sandbox_setup: |+ sandbox_setup: |2mkdir -p ~/.local/bininstall -m755 /home/runner/.cargo-install/cargo-insta/bin/cargo-insta ~/.local/bin/install -m755 /home/runner/.cargo-install/cargo-nextest/bin/cargo-nextest ~/.local/bin/uv tool install --quiet pre-commitfor t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/CLAUDE.md"; exit 1; }; done- prompt: |+ prompt: |2/tend-ci-runner:ci-fix ${{ github.event.workflow_run.id }}- Run URL: ${{ github.event.workflow_run.html_url }}- Commit: ${{ github.event.workflow_run.head_sha }}diff --git a/.github/workflows/tend-mention.yaml b/.github/workflows/tend-mention.yamlindex 923329fda..f4c044bfa 100644--- a/.github/workflows/tend-mention.yaml+++ b/.github/workflows/tend-mention.yaml@@ -1,4 +1,4 @@-# Generated by tend 0.1.22. Regenerate with: uvx tend@latest init+# Generated by tend 0.1.24. Regenerate with: uvx tend@latest init## Do not edit this file directly — it will be overwritten on regeneration.# To customize behavior, edit the relevant skill (for example,@@ -420,14 +420,14 @@ jobs:# the API record — the dispatch payload never carries one to spoof.EVENT_TS: ${{ github.event.comment.updated_at || needs.verify.outputs.ts || github.event.issue.updated_at }}- - uses: max-sixty/tend/[email protected]+ - uses: max-sixty/tend/[email protected]with:github_token: ${{ secrets.TEND_BOT_TOKEN }}claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}bot_name: worktrunk-botmodel: opus- sandbox_setup: |+ sandbox_setup: |2mkdir -p ~/.local/bininstall -m755 /home/runner/.cargo-install/cargo-insta/bin/cargo-insta ~/.local/bin/install -m755 /home/runner/.cargo-install/cargo-nextest/bin/cargo-nextest ~/.local/bin/diff --git a/.github/workflows/tend-nightly.yaml b/.github/workflows/tend-nightly.yamlindex 06aecb068..2c58dcdc7 100644--- a/.github/workflows/tend-nightly.yaml+++ b/.github/workflows/tend-nightly.yaml@@ -1,4 +1,4 @@-# Generated by tend 0.1.22. Regenerate with: uvx tend@latest init+# Generated by tend 0.1.24. Regenerate with: uvx tend@latest init## Do not edit this file directly — it will be overwritten on regeneration.# To customize behavior, edit the relevant skill (for example,@@ -34,18 +34,18 @@ jobs:- uses: ./.github/actions/tend-setup- - uses: max-sixty/tend/[email protected]+ - uses: max-sixty/tend/[email protected]with:github_token: ${{ secrets.TEND_BOT_TOKEN }}claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}bot_name: worktrunk-botmodel: opus- sandbox_setup: |+ sandbox_setup: |2mkdir -p ~/.local/bininstall -m755 /home/runner/.cargo-install/cargo-insta/bin/cargo-insta ~/.local/bin/install -m755 /home/runner/.cargo-install/cargo-nextest/bin/cargo-nextest ~/.local/bin/uv tool install --quiet pre-commitfor t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/CLAUDE.md"; exit 1; }; done- prompt: |+ prompt: |2/tend-ci-runner:nightlydiff --git a/.github/workflows/tend-notifications.yaml b/.github/workflows/tend-notifications.yamlindex 26f385086..32741c920 100644--- a/.github/workflows/tend-notifications.yaml+++ b/.github/workflows/tend-notifications.yaml@@ -1,4 +1,4 @@-# Generated by tend 0.1.22. Regenerate with: uvx tend@latest init+# Generated by tend 0.1.24. Regenerate with: uvx tend@latest init## Do not edit this file directly — it will be overwritten on regeneration.# To customize behavior, edit the relevant skill (for example,@@ -28,13 +28,13 @@ jobs:actions: readissues: writesteps:- - name: Check for unread notifications+ - name: Check for unread notifications and conflicted PRsid: checkenv:GITHUB_TOKEN: ${{ secrets.TEND_BOT_TOKEN }}run: |# shellcheck shell=bash- # Establish the repository's notification recovery queue and decide whether the+ # Establish the repository's frequent maintenance queue and decide whether the# agent needs to boot. Inlined into the generated workflow: env in,# GITHUB_OUTPUT out.#@@ -69,14 +69,52 @@ jobs:echo "count=$COUNT" >> "$GITHUB_OUTPUT"- if [ "$COUNT" = "0" ]; then- echo "No notification work before $CUTOFF — skipping"+ # GitHub computes mergeability lazily after the base moves. UNKNOWN therefore+ # means "worth a synchronous local test", not "clean". This is only a cheap+ # boot gate; the agent test-merges every candidate before changing a branch.+ # Read the newest comments: a deferral is normally the PR's latest activity.+ # An older marker can waste boots, but the resolver paginates before acting.+ # shellcheck disable=SC2016 # $q is a GraphQL variable, not a shell variable.+ if BOT_LOGIN=$(gh api user --jq .login 2>/dev/null) \+ && PRS=$(gh api graphql -f query='+ query($q: String!) {+ search(query: $q, type: ISSUE, first: 100) {+ nodes { ... on PullRequest {+ mergeable headRefOid+ comments(last: 100) { nodes { author { login } body } }+ } }+ }+ }' -f q="repo:$GITHUB_REPOSITORY author:$BOT_LOGIN is:pr is:open" \+ --jq '.data.search.nodes' 2>/dev/null) \+ && CONFLICT_COUNT=$(jq -er --arg bot "$BOT_LOGIN" '+ [.[]+ | select(.mergeable != "MERGEABLE")+ | . as $pr+ | "<!-- tend-conflict-deferred head=\($pr.headRefOid) -->" as $marker+ | select(any($pr.comments.nodes[]?;+ .author.login == $bot+ and (((.body // "") | sub("\\s+$"; "") | split("\n") | last) == $marker))+ | not)]+ | length' <<<"$PRS"); then+ :else- echo "$COUNT notification task(s) — proceeding"+ CONFLICT_COUNT=0+ echo "::warning::bot PR conflict scan failed; retrying next cycle"+ fi++ echo "conflict_count=$CONFLICT_COUNT" >> "$GITHUB_OUTPUT"++ if [ "$COUNT" = "0" ] && [ "$CONFLICT_COUNT" = "0" ]; then+ echo "No notification or conflict work — skipping"+ else+ [ "$COUNT" = "0" ] || \+ echo "$COUNT notification task(s) — proceeding"+ [ "$CONFLICT_COUNT" = "0" ] || \+ echo "$CONFLICT_COUNT possible conflicted bot PR(s) — proceeding"fi- uses: actions/checkout@v7- if: steps.check.outputs.count != '0' || github.event_name == 'workflow_dispatch'+ if: steps.check.outputs.count != '0' || steps.check.outputs.conflict_count != '0' || github.event_name == 'workflow_dispatch'with:ref: mainfetch-depth: 0@@ -84,22 +122,23 @@ jobs:token: ${{ secrets.TEND_BOT_TOKEN }}- uses: ./.github/actions/tend-setup- if: steps.check.outputs.count != '0' || github.event_name == 'workflow_dispatch'- - uses: max-sixty/tend/[email protected]- if: steps.check.outputs.count != '0' || github.event_name == 'workflow_dispatch'+ if: steps.check.outputs.count != '0' || steps.check.outputs.conflict_count != '0' || github.event_name == 'workflow_dispatch'+ - uses: max-sixty/tend/[email protected]+ if: steps.check.outputs.count != '0' || steps.check.outputs.conflict_count != '0' || github.event_name == 'workflow_dispatch'with:github_token: ${{ secrets.TEND_BOT_TOKEN }}claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}bot_name: worktrunk-botmodel: opus- sandbox_setup: |+ sandbox_setup: |2mkdir -p ~/.local/bininstall -m755 /home/runner/.cargo-install/cargo-insta/bin/cargo-insta ~/.local/bin/install -m755 /home/runner/.cargo-install/cargo-nextest/bin/cargo-nextest ~/.local/bin/uv tool install --quiet pre-commitfor t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/CLAUDE.md"; exit 1; }; done- prompt: |+ prompt: |2/tend-ci-runner:notificationsNotification snapshot cutoff: ${{ steps.check.outputs.cutoff }}+ Possible conflicted bot PR count: ${{ steps.check.outputs.conflict_count }}diff --git a/.github/workflows/tend-review-runs.yaml b/.github/workflows/tend-review-runs.yamlindex ca8fac8b9..f543d31ff 100644--- a/.github/workflows/tend-review-runs.yaml+++ b/.github/workflows/tend-review-runs.yaml@@ -1,4 +1,4 @@-# Generated by tend 0.1.22. Regenerate with: uvx tend@latest init+# Generated by tend 0.1.24. Regenerate with: uvx tend@latest init## Do not edit this file directly — it will be overwritten on regeneration.# To customize behavior, edit the relevant skill (for example,@@ -34,18 +34,18 @@ jobs:- uses: ./.github/actions/tend-setup- - uses: max-sixty/tend/[email protected]+ - uses: max-sixty/tend/[email protected]with:github_token: ${{ secrets.TEND_BOT_TOKEN }}claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}bot_name: worktrunk-botmodel: opus- sandbox_setup: |+ sandbox_setup: |2mkdir -p ~/.local/bininstall -m755 /home/runner/.cargo-install/cargo-insta/bin/cargo-insta ~/.local/bin/install -m755 /home/runner/.cargo-install/cargo-nextest/bin/cargo-nextest ~/.local/bin/uv tool install --quiet pre-commitfor t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/CLAUDE.md"; exit 1; }; done- prompt: |+ prompt: |2/tend-ci-runner:review-runsdiff --git a/.github/workflows/tend-review.yaml b/.github/workflows/tend-review.yamlindex 959409fc8..563c251e0 100644--- a/.github/workflows/tend-review.yaml+++ b/.github/workflows/tend-review.yaml@@ -1,4 +1,4 @@-# Generated by tend 0.1.22. Regenerate with: uvx tend@latest init+# Generated by tend 0.1.24. Regenerate with: uvx tend@latest init## Do not edit this file directly — it will be overwritten on regeneration.# To customize behavior, edit the relevant skill (for example,@@ -77,21 +77,21 @@ jobs:fetch-tags: truetoken: ${{ secrets.TEND_BOT_TOKEN }}- - uses: max-sixty/tend/[email protected]+ - uses: max-sixty/tend/[email protected]with:github_token: ${{ secrets.TEND_BOT_TOKEN }}claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}bot_name: worktrunk-botmodel: opus- sandbox_setup: |+ sandbox_setup: |2mkdir -p ~/.local/bininstall -m755 /home/runner/.cargo-install/cargo-insta/bin/cargo-insta ~/.local/bin/install -m755 /home/runner/.cargo-install/cargo-nextest/bin/cargo-nextest ~/.local/bin/uv tool install --quiet pre-commitfor t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/CLAUDE.md"; exit 1; }; done- prompt: >-- ${{ format('/tend-ci-runner:review {0}', github.event.pull_request.number) }}+ prompt: |2+ /tend-ci-runner:review ${{ github.event.pull_request.number }}- name: Restore local setup actions for POST cleanupif: always()diff --git a/.github/workflows/tend-triage.yaml b/.github/workflows/tend-triage.yamlindex d763edebb..82d6ffb3b 100644--- a/.github/workflows/tend-triage.yaml+++ b/.github/workflows/tend-triage.yaml@@ -1,4 +1,4 @@-# Generated by tend 0.1.22. Regenerate with: uvx tend@latest init+# Generated by tend 0.1.24. Regenerate with: uvx tend@latest init## Do not edit this file directly — it will be overwritten on regeneration.# To customize behavior, edit the relevant skill (for example,@@ -46,20 +46,20 @@ jobs:- uses: ./.github/actions/tend-setup- - uses: max-sixty/tend/[email protected]+ - uses: max-sixty/tend/[email protected]with:github_token: ${{ secrets.TEND_BOT_TOKEN }}claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}bot_name: worktrunk-botmodel: opus- sandbox_setup: |+ sandbox_setup: |2mkdir -p ~/.local/bininstall -m755 /home/runner/.cargo-install/cargo-insta/bin/cargo-insta ~/.local/bin/install -m755 /home/runner/.cargo-install/cargo-nextest/bin/cargo-nextest ~/.local/bin/uv tool install --quiet pre-commitfor t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/CLAUDE.md"; exit 1; }; done- prompt: |+ prompt: |2/tend-ci-runner:triage ${{ github.event.issue.number }}- name: Remove the eyes reactiondiff --git a/.github/workflows/tend-weekly.yaml b/.github/workflows/tend-weekly.yamlindex 936891b6c..aac3c6ac4 100644--- a/.github/workflows/tend-weekly.yaml+++ b/.github/workflows/tend-weekly.yaml@@ -1,4 +1,4 @@-# Generated by tend 0.1.22. Regenerate with: uvx tend@latest init+# Generated by tend 0.1.24. Regenerate with: uvx tend@latest init## Do not edit this file directly — it will be overwritten on regeneration.# To customize behavior, edit the relevant skill (for example,@@ -34,18 +34,18 @@ jobs:- uses: ./.github/actions/tend-setup- - uses: max-sixty/tend/[email protected]+ - uses: max-sixty/tend/[email protected]with:github_token: ${{ secrets.TEND_BOT_TOKEN }}claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}bot_name: worktrunk-botmodel: opus- sandbox_setup: |+ sandbox_setup: |2mkdir -p ~/.local/bininstall -m755 /home/runner/.cargo-install/cargo-insta/bin/cargo-insta ~/.local/bin/install -m755 /home/runner/.cargo-install/cargo-nextest/bin/cargo-nextest ~/.local/bin/uv tool install --quiet pre-commitfor t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/CLAUDE.md"; exit 1; }; done- prompt: |+ prompt: |2/tend-ci-runner:weekly