Skip to content

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

fix(ci): fix artifact upload path and review skill quoting (#1091)

Maximilian Roosf3f186d2ba2e
diff --git a/.claude/skills/worktrunk-review/SKILL.md b/.claude/skills/worktrunk-review/SKILL.md
index fef8ee9de..db1bb5b1f 100644
--- a/.claude/skills/worktrunk-review/SKILL.md
+++ b/.claude/skills/worktrunk-review/SKILL.md
@@ -116,6 +116,8 @@ OWNER=$(echo "$REPO" | cut -d/ -f1)
NAME=$(echo "$REPO" | cut -d/ -f2)
# Get unresolved bot review threads
+# NOTE: Pipe to jq (don't use --jq) and use --arg to pass BOT_LOGIN cleanly.
+# Avoid quote-nesting patterns like "'"$VAR"'" — Claude mangles them.
gh api graphql -f query='
query($owner: String!, $repo: String!, $number: Int!) {
repository(owner: $owner, name: $repo) {
@@ -138,9 +140,10 @@ gh api graphql -f query='
}
}
' -f owner="$OWNER" -f repo="$NAME" -F number=<number> \
- --jq '.data.repository.pullRequest.reviewThreads.nodes[]
+ | jq --arg bot "$BOT_LOGIN" '
+ .data.repository.pullRequest.reviewThreads.nodes[]
| select(.isResolved == false)
- | select(.comments.nodes[0].author.login == "'"$BOT_LOGIN"'")
+ | select(.comments.nodes[0].author.login == $bot)
| {id, path: .comments.nodes[0].path, line: .comments.nodes[0].line, body: .comments.nodes[0].body}'
# Resolve a thread that has been addressed
diff --git a/.github/workflows/claude-ci-fix.yaml b/.github/workflows/claude-ci-fix.yaml
index 23892908c..2b2c08cbd 100644
--- a/.github/workflows/claude-ci-fix.yaml
+++ b/.github/workflows/claude-ci-fix.yaml
@@ -154,6 +154,6 @@ jobs:
uses: actions/upload-artifact@v6
with:
name: claude-session-logs
- path: ~/.claude/
+ path: ${{ env.HOME }}/.claude/
retention-days: 30
if-no-files-found: warn
diff --git a/.github/workflows/claude-issue-triage.yaml b/.github/workflows/claude-issue-triage.yaml
index b35e33482..88069e5b4 100644
--- a/.github/workflows/claude-issue-triage.yaml
+++ b/.github/workflows/claude-issue-triage.yaml
@@ -92,6 +92,6 @@ jobs:
uses: actions/upload-artifact@v6
with:
name: claude-session-logs
- path: ~/.claude/
+ path: ${{ env.HOME }}/.claude/
retention-days: 30
if-no-files-found: warn
diff --git a/.github/workflows/claude-mention.yaml b/.github/workflows/claude-mention.yaml
index 18ba6d9e1..dd2d276cb 100644
--- a/.github/workflows/claude-mention.yaml
+++ b/.github/workflows/claude-mention.yaml
@@ -97,6 +97,6 @@ jobs:
uses: actions/upload-artifact@v6
with:
name: claude-session-logs
- path: ~/.claude/
+ path: ${{ env.HOME }}/.claude/
retention-days: 30
if-no-files-found: warn
diff --git a/.github/workflows/claude-renovate.yaml b/.github/workflows/claude-renovate.yaml
index c08cff3c6..f36e1bdf9 100644
--- a/.github/workflows/claude-renovate.yaml
+++ b/.github/workflows/claude-renovate.yaml
@@ -117,6 +117,6 @@ jobs:
uses: actions/upload-artifact@v6
with:
name: claude-session-logs
- path: ~/.claude/
+ path: ${{ env.HOME }}/.claude/
retention-days: 30
if-no-files-found: warn
diff --git a/.github/workflows/claude-review.yaml b/.github/workflows/claude-review.yaml
index 93e7165f2..ed32143f4 100644
--- a/.github/workflows/claude-review.yaml
+++ b/.github/workflows/claude-review.yaml
@@ -65,6 +65,6 @@ jobs:
uses: actions/upload-artifact@v6
with:
name: claude-session-logs
- path: ~/.claude/
+ path: ${{ env.HOME }}/.claude/
retention-days: 30
if-no-files-found: warn