Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

chore: regenerate tend workflows from upstream main (#2009)

Worktrunk Boteafa84b6e8b2
diff --git a/.github/CLAUDE.md b/.github/CLAUDE.md
index 27d090522..b30c48c99 100644
--- a/.github/CLAUDE.md
+++ b/.github/CLAUDE.md
@@ -75,13 +75,17 @@ restriction is the safety boundary, not access control on the workflow.
- Editing a comment or issue body re-triggers the mention workflow
**Does not trigger:**
-- Issues authored by `worktrunk-bot` (prevents self-triggering)
-- `worktrunk-bot`'s own comments or reviews (loop prevention)
+- `worktrunk-bot`'s own comments (workflow-level loop prevention)
- Empty approvals on `worktrunk-bot` PRs
- Comments on issues/PRs where `worktrunk-bot` hasn't engaged and no mention
-- Inline review comments from `worktrunk-bot` itself
- Draft PRs
+**Loop prevention for bot reviews:** Bot-authored reviews and review comments
+are no longer filtered at the workflow level (removed in tend#168 to allow the
+bot to apply its own review suggestions). Instead, the prompt includes
+self-conversation loop prevention: the bot exits silently unless there is a
+distinct role boundary (e.g., reviewer on its own PR).
+
**Routing:** Formal reviews (`pull_request_review`) → `tend-review`. Inline
comments (`pull_request_review_comment`) and conversation comments
(`issue_comment`) → `tend-mention`.
diff --git a/.github/workflows/tend-ci-fix.yaml b/.github/workflows/tend-ci-fix.yaml
index 50a6aec43..f1801571d 100644
--- a/.github/workflows/tend-ci-fix.yaml
+++ b/.github/workflows/tend-ci-fix.yaml
@@ -1,4 +1,10 @@
-# Generated by tend. Regenerate with: uvx tend init
+# Generated by tend. 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,
+# `running-tend`) in this repo's .claude/skills/ directory, or open an issue at
+# https://github.com/max-sixty/tend/issues for changes that need to
+# happen upstream in the tend-ci-runner plugin.
name: tend-ci-fix
on:
diff --git a/.github/workflows/tend-mention.yaml b/.github/workflows/tend-mention.yaml
index d10a3f49c..58032cba1 100644
--- a/.github/workflows/tend-mention.yaml
+++ b/.github/workflows/tend-mention.yaml
@@ -1,4 +1,10 @@
-# Generated by tend. Regenerate with: uvx tend init
+# Generated by tend. 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,
+# `running-tend`) in this repo's .claude/skills/ directory, or open an issue at
+# https://github.com/max-sixty/tend/issues for changes that need to
+# happen upstream in the tend-ci-runner plugin.
name: tend-mention
on:
@@ -16,14 +22,11 @@ jobs:
verify:
if: |
(github.event_name == 'issues' &&
- contains(github.event.issue.body, '@worktrunk-bot') &&
- github.event.issue.user.login != 'worktrunk-bot') ||
+ contains(github.event.issue.body, '@worktrunk-bot')) ||
(github.event_name == 'issue_comment' &&
github.event.comment.user.login != 'worktrunk-bot') ||
- (github.event_name == 'pull_request_review_comment' &&
- github.event.comment.user.login != 'worktrunk-bot') ||
- (github.event_name == 'pull_request_review' &&
- github.event.review.user.login != 'worktrunk-bot')
+ github.event_name == 'pull_request_review_comment' ||
+ github.event_name == 'pull_request_review'
runs-on: ubuntu-24.04
outputs:
should_run: ${{ steps.check.outputs.should_run }}
@@ -182,5 +185,9 @@ jobs:
&& format('A review was submitted on a PR where you previously participated (PR #{0}, {1}). Read the review and full PR context. If the review requests changes or asks questions, respond appropriately. If the review approves or is between humans, exit silently.', github.event.pull_request.number, github.event.review.html_url))
|| (contains(github.event.comment.body, '@worktrunk-bot')
&& format('You were mentioned in a comment ({0}). Read the full issue or PR (description, diff, recent comments, CI status) and respond. If they are requesting changes, make the changes, commit, and push.', github.event.comment.html_url))
- || format('A user commented on an issue/PR where you previously participated ({0}). Read the full context. Only respond if the comment is directed at you, asks a question you can help with, or requests changes you can make. A comment that responds to concerns you raised in a review is directed at you — briefly acknowledge that the concerns are resolved (or explain why they are not). If the conversation is between humans, exit silently.', github.event.comment.html_url)
+ || format('A user commented on an issue/PR where you previously participated ({0}). Read the full context. Only respond if the comment is directed at you, asks a question you can help with, or requests changes you can make. A comment that responds to concerns you raised in a review is directed at you — briefly acknowledge that the concerns are resolved (or explain why they are not). If the conversation is between other participants, exit silently. In multi-way conversations (other participants besides you and the commenter are active), apply a higher bar: only respond if you have something genuinely new to add — a code fix, reproduction, or specific technical detail no one else provided. Do not restate, agree with, or summarize what a maintainer said.', github.event.comment.html_url)
}}
+
+ If you are responding to your own prior comment or review (not a human's reply to it), be cautious — only respond if there is a distinct role boundary (e.g., you are the reviewer on your own PR and need to address review feedback). If there is no such role distinction, exit silently to avoid self-conversation loops.
+
+ If you are going to propose a code fix for a bug, load /tend-ci-runner:triage first — it contains reproduction and testing gates that apply to all fix attempts, not just initial triage.
diff --git a/.github/workflows/tend-nightly.yaml b/.github/workflows/tend-nightly.yaml
index f8cf403e2..7b1cb6c85 100644
--- a/.github/workflows/tend-nightly.yaml
+++ b/.github/workflows/tend-nightly.yaml
@@ -1,4 +1,10 @@
-# Generated by tend. Regenerate with: uvx tend init
+# Generated by tend. 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,
+# `running-tend`) in this repo's .claude/skills/ directory, or open an issue at
+# https://github.com/max-sixty/tend/issues for changes that need to
+# happen upstream in the tend-ci-runner plugin.
name: tend-nightly
on:
diff --git a/.github/workflows/tend-notifications.yaml b/.github/workflows/tend-notifications.yaml
index 79df38fdd..79604fb6d 100644
--- a/.github/workflows/tend-notifications.yaml
+++ b/.github/workflows/tend-notifications.yaml
@@ -1,4 +1,10 @@
-# Generated by tend. Regenerate with: uvx tend init
+# Generated by tend. 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,
+# `running-tend`) in this repo's .claude/skills/ directory, or open an issue at
+# https://github.com/max-sixty/tend/issues for changes that need to
+# happen upstream in the tend-ci-runner plugin.
name: tend-notifications
on:
diff --git a/.github/workflows/tend-review-runs.yaml b/.github/workflows/tend-review-runs.yaml
index bbba23a84..7c44cf3aa 100644
--- a/.github/workflows/tend-review-runs.yaml
+++ b/.github/workflows/tend-review-runs.yaml
@@ -1,4 +1,10 @@
-# Generated by tend. Regenerate with: uvx tend init
+# Generated by tend. 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,
+# `running-tend`) in this repo's .claude/skills/ directory, or open an issue at
+# https://github.com/max-sixty/tend/issues for changes that need to
+# happen upstream in the tend-ci-runner plugin.
name: tend-review-runs
on:
diff --git a/.github/workflows/tend-review.yaml b/.github/workflows/tend-review.yaml
index abc719a82..e31915250 100644
--- a/.github/workflows/tend-review.yaml
+++ b/.github/workflows/tend-review.yaml
@@ -1,4 +1,10 @@
-# Generated by tend. Regenerate with: uvx tend init
+# Generated by tend. 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,
+# `running-tend`) in this repo's .claude/skills/ directory, or open an issue at
+# https://github.com/max-sixty/tend/issues for changes that need to
+# happen upstream in the tend-ci-runner plugin.
name: tend-review
on:
diff --git a/.github/workflows/tend-triage.yaml b/.github/workflows/tend-triage.yaml
index 2eb6be2af..535aedcf1 100644
--- a/.github/workflows/tend-triage.yaml
+++ b/.github/workflows/tend-triage.yaml
@@ -1,4 +1,10 @@
-# Generated by tend. Regenerate with: uvx tend init
+# Generated by tend. 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,
+# `running-tend`) in this repo's .claude/skills/ directory, or open an issue at
+# https://github.com/max-sixty/tend/issues for changes that need to
+# happen upstream in the tend-ci-runner plugin.
name: tend-triage
on:
@@ -11,8 +17,6 @@ concurrency:
jobs:
triage:
- if: >-
- github.event.issue.user.login != 'worktrunk-bot'
runs-on: ubuntu-24.04
timeout-minutes: 60
permissions:
diff --git a/.github/workflows/tend-weekly.yaml b/.github/workflows/tend-weekly.yaml
index 1dd60b106..c5995a5c4 100644
--- a/.github/workflows/tend-weekly.yaml
+++ b/.github/workflows/tend-weekly.yaml
@@ -1,4 +1,10 @@
-# Generated by tend. Regenerate with: uvx tend init
+# Generated by tend. 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,
+# `running-tend`) in this repo's .claude/skills/ directory, or open an issue at
+# https://github.com/max-sixty/tend/issues for changes that need to
+# happen upstream in the tend-ci-runner plugin.
name: tend-weekly
on: