Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/tend-ci-fix.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by tend 0.1.13. Regenerate with: uvx tend@latest init
# Generated by tend 0.1.14. 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,
Expand All @@ -17,11 +17,12 @@ jobs:
fix-ci:
if: github.repository_owner == 'max-sixty' && github.event.workflow_run.conclusion == 'failure'
runs-on: ubuntu-24.04
environment: tend
environment:
name: tend
deployment: false
permissions:
contents: write
pull-requests: write
id-token: write
actions: read
steps:
- uses: actions/checkout@v7
Expand All @@ -33,7 +34,7 @@ jobs:

- uses: ./.github/actions/claude-setup

- uses: max-sixty/tend/claude@0.1.13
- uses: max-sixty/tend/claude@0.1.14
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
Expand Down
34 changes: 23 additions & 11 deletions .github/workflows/tend-mention.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by tend 0.1.13. Regenerate with: uvx tend@latest init
# Generated by tend 0.1.14. 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,
Expand Down Expand Up @@ -105,7 +105,9 @@ jobs:
(github.event_name == 'issue_comment' &&
!contains(github.event.issue.labels.*.name, 'tend-outage'))
runs-on: ubuntu-24.04
environment: tend
environment:
name: tend
deployment: false
outputs:
should_run: ${{ steps.check.outputs.should_run }}
reason: ${{ steps.check.outputs.reason }}
Expand Down Expand Up @@ -261,9 +263,17 @@ jobs:
if printf '%s\n' "$ISSUE_BODY" | grep -qF '@worktrunk-bot'; then
echo "should_run=true" >> "$GITHUB_OUTPUT"; exit 0
fi
# Don't reduce inside jq: `gh api --paginate` applies `--jq` once
# per page, so `| length` emits one count per page rather than one
# overall. Past 100 comments the variable holds e.g. `100\n7`, a
# numeric test on it errors with `integer expression expected`,
# and the failed test falls through to should_run=false — the bot
# goes quiet on its most-engaged threads. Capture the per-element
# stream and test it for emptiness — the bare substitution also
# keeps a failing `gh api` fatal under GHA's default `bash -e`.
BOT_COMMENTS=$(gh api --paginate "repos/$GITHUB_REPOSITORY/issues/$ISSUE_NUMBER/comments" \
--jq '[.[] | select(.user.login == "worktrunk-bot")] | length')
if [ "$BOT_COMMENTS" -gt "0" ]; then
--jq '.[] | select(.user.login == "worktrunk-bot") | .id')
if [ -n "$BOT_COMMENTS" ]; then
echo "should_run=true" >> "$GITHUB_OUTPUT"; exit 0
fi
echo "should_run=false" >> "$GITHUB_OUTPUT"; exit 0
Expand All @@ -280,16 +290,17 @@ jobs:
echo "reason=participation" >> "$GITHUB_OUTPUT"; exit 0
fi

# Captured, not counted — see the note on the issue-comment lookup above.
BOT_REVIEWS=$(gh api --paginate "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER/reviews" \
--jq '[.[] | select(.user.login == "worktrunk-bot")] | length')
if [ "$BOT_REVIEWS" -gt "0" ]; then
--jq '.[] | select(.user.login == "worktrunk-bot") | .id')
if [ -n "$BOT_REVIEWS" ]; then
echo "should_run=true" >> "$GITHUB_OUTPUT"
echo "reason=participation" >> "$GITHUB_OUTPUT"; exit 0
fi

BOT_COMMENTS=$(gh api --paginate "repos/$GITHUB_REPOSITORY/issues/$PR_NUMBER/comments" \
--jq '[.[] | select(.user.login == "worktrunk-bot")] | length')
if [ "$BOT_COMMENTS" -gt "0" ]; then
--jq '.[] | select(.user.login == "worktrunk-bot") | .id')
if [ -n "$BOT_COMMENTS" ]; then
echo "should_run=true" >> "$GITHUB_OUTPUT"
echo "reason=participation" >> "$GITHUB_OUTPUT"; exit 0
fi
Expand Down Expand Up @@ -334,11 +345,12 @@ jobs:
group: ${{ github.workflow }}-handle-${{ github.event.issue.number || github.event.client_payload.pr }}
cancel-in-progress: false
runs-on: ubuntu-24.04
environment: tend
environment:
name: tend
deployment: false
permissions:
contents: write
pull-requests: write
id-token: write
actions: read
issues: write
steps:
Expand Down Expand Up @@ -379,7 +391,7 @@ 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/claude@0.1.13
- uses: max-sixty/tend/claude@0.1.14
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/tend-nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by tend 0.1.13. Regenerate with: uvx tend@latest init
# Generated by tend 0.1.14. 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,
Expand All @@ -16,11 +16,12 @@ jobs:
nightly:
if: github.repository_owner == 'max-sixty'
runs-on: ubuntu-24.04
environment: tend
environment:
name: tend
deployment: false
permissions:
contents: write
pull-requests: write
id-token: write
actions: read
issues: write
steps:
Expand All @@ -33,7 +34,7 @@ jobs:

- uses: ./.github/actions/claude-setup

- uses: max-sixty/tend/claude@0.1.13
- uses: max-sixty/tend/claude@0.1.14
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/tend-notifications.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by tend 0.1.13. Regenerate with: uvx tend@latest init
# Generated by tend 0.1.14. 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,
Expand All @@ -16,11 +16,12 @@ jobs:
notifications:
if: github.repository_owner == 'max-sixty'
runs-on: ubuntu-24.04
environment: tend
environment:
name: tend
deployment: false
permissions:
contents: write
pull-requests: write
id-token: write
actions: read
issues: write
steps:
Expand Down Expand Up @@ -137,7 +138,7 @@ jobs:

- uses: ./.github/actions/claude-setup
if: steps.check.outputs.count != '0' || github.event_name == 'workflow_dispatch'
- uses: max-sixty/tend/claude@0.1.13
- uses: max-sixty/tend/claude@0.1.14
if: steps.check.outputs.count != '0' || github.event_name == 'workflow_dispatch'
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/tend-review-runs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by tend 0.1.13. Regenerate with: uvx tend@latest init
# Generated by tend 0.1.14. 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,
Expand All @@ -16,11 +16,12 @@ jobs:
review-runs:
if: github.repository_owner == 'max-sixty'
runs-on: ubuntu-24.04
environment: tend
environment:
name: tend
deployment: false
permissions:
contents: write
pull-requests: write
id-token: write
actions: read
issues: write
steps:
Expand All @@ -33,7 +34,7 @@ jobs:

- uses: ./.github/actions/claude-setup

- uses: max-sixty/tend/claude@0.1.13
- uses: max-sixty/tend/claude@0.1.14
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/tend-review.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by tend 0.1.13. Regenerate with: uvx tend@latest init
# Generated by tend 0.1.14. 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,
Expand All @@ -17,11 +17,12 @@ jobs:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
runs-on: ubuntu-24.04
environment: tend
environment:
name: tend
deployment: false
permissions:
contents: write
pull-requests: write
id-token: write
actions: read
issues: write
steps:
Expand Down Expand Up @@ -62,7 +63,7 @@ jobs:
fetch-tags: true
token: ${{ secrets.TEND_BOT_TOKEN }}

- uses: max-sixty/tend/claude@0.1.13
- uses: max-sixty/tend/claude@0.1.14
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/tend-triage.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by tend 0.1.13. Regenerate with: uvx tend@latest init
# Generated by tend 0.1.14. 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,
Expand All @@ -19,11 +19,12 @@ jobs:
triage:
if: github.repository_owner == 'max-sixty' && contains(github.event.issue.labels.*.name, 'tend-outage') == false
runs-on: ubuntu-24.04
environment: tend
environment:
name: tend
deployment: false
permissions:
contents: write
pull-requests: write
id-token: write
actions: read
issues: write
steps:
Expand All @@ -36,7 +37,7 @@ jobs:

- uses: ./.github/actions/claude-setup

- uses: max-sixty/tend/claude@0.1.13
- uses: max-sixty/tend/claude@0.1.14
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/tend-weekly.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by tend 0.1.13. Regenerate with: uvx tend@latest init
# Generated by tend 0.1.14. 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,
Expand All @@ -16,11 +16,12 @@ jobs:
weekly:
if: github.repository_owner == 'max-sixty'
runs-on: ubuntu-24.04
environment: tend
environment:
name: tend
deployment: false
permissions:
contents: write
pull-requests: write
id-token: write
actions: read
issues: write
steps:
Expand All @@ -33,7 +34,7 @@ jobs:

- uses: ./.github/actions/claude-setup

- uses: max-sixty/tend/claude@0.1.13
- uses: max-sixty/tend/claude@0.1.14
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
Expand Down
Loading