@codyswann/lisa 1.54.4 → 1.54.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -72,7 +72,7 @@
72
72
  "axios": ">=1.13.5"
73
73
  },
74
74
  "name": "@codyswann/lisa",
75
- "version": "1.54.4",
75
+ "version": "1.54.5",
76
76
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
77
77
  "main": "dist/index.js",
78
78
  "exports": {
@@ -0,0 +1,68 @@
1
+ # This file was created by Lisa on first setup.
2
+ # You can customize this file — Lisa will not overwrite it.
3
+
4
+ name: Auto-update PR branches (Dispatch Handler)
5
+
6
+ on:
7
+ repository_dispatch:
8
+ types:
9
+ - auto-update-pr-branches
10
+ - auto-update-pr-branch
11
+
12
+ permissions:
13
+ contents: write
14
+ pull-requests: write
15
+ id-token: write
16
+
17
+ jobs:
18
+ update-all-prs:
19
+ name: Update open PRs targeting ${{ github.event.client_payload.ref_name }}
20
+ if: github.event.action == 'auto-update-pr-branches'
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - name: Checkout
24
+ uses: actions/checkout@v6
25
+
26
+ - name: Update all open PR branches
27
+ uses: anthropics/claude-code-action@v1
28
+ continue-on-error: true
29
+ with:
30
+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
31
+ prompt: |
32
+ Update all open pull request branches targeting "${{ github.event.client_payload.ref_name }}" in "${{ github.event.client_payload.repo_full_name }}".
33
+
34
+ Run this command:
35
+ ```bash
36
+ prs=$(gh pr list --repo "${{ github.event.client_payload.repo_full_name }}" --base "${{ github.event.client_payload.ref_name }}" --state open --json number --jq '.[].number')
37
+ for pr in $prs; do
38
+ echo "Updating PR #$pr..."
39
+ gh api -X PUT "repos/${{ github.event.client_payload.repo_full_name }}/pulls/$pr/update-branch" -f update_method=merge || echo "PR #$pr update failed or already up to date"
40
+ done
41
+ ```
42
+ claude_args: |
43
+ --allowedTools "Bash(*)"
44
+ --max-turns 3
45
+
46
+ update-single-pr:
47
+ name: Update PR #${{ github.event.client_payload.pr_number }}
48
+ if: github.event.action == 'auto-update-pr-branch'
49
+ runs-on: ubuntu-latest
50
+ steps:
51
+ - name: Checkout
52
+ uses: actions/checkout@v6
53
+
54
+ - name: Update PR branch
55
+ uses: anthropics/claude-code-action@v1
56
+ continue-on-error: true
57
+ with:
58
+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
59
+ prompt: |
60
+ Update pull request #${{ github.event.client_payload.pr_number }} branch in "${{ github.event.client_payload.repo_full_name }}".
61
+
62
+ Run this command:
63
+ ```bash
64
+ gh api -X PUT "repos/${{ github.event.client_payload.repo_full_name }}/pulls/${{ github.event.client_payload.pr_number }}/update-branch" -f update_method=merge
65
+ ```
66
+ claude_args: |
67
+ --allowedTools "Bash(*)"
68
+ --max-turns 3