forked from opensanctions/opensanctions
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.21 KB
/
issues-agent.yml
File metadata and controls
50 lines (42 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# yamllint disable
name: Issues agent
"on":
workflow_dispatch: {}
schedule:
- cron: "0 3 * * 1-5"
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
jobs:
generate-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.gen.outputs.matrix }}
steps:
- uses: actions/checkout@v6
- name: Generate sub-tasks
id: gen
run: |
MATRIX=$(python contrib/issues_agent/tasks.py)
echo "matrix=$MATRIX" >> "$GITHUB_OUTPUT"
run-tasks:
needs: generate-matrix
runs-on: ubuntu-latest
name: ${{ matrix.task.name }}
strategy:
matrix:
task: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
fail-fast: false
steps:
- uses: actions/checkout@v6
# - uses: actions/setup-node@v6
# with:
# cache: 'npm'
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
prompt: ${{ matrix.task.prompt }}
claude_args: "--max-turns 50 --allowed-tools \"Bash(git:*),Bash(curl:*),View,Edit,Write,GlobTool,GrepTool,WebFetch,mcp__github__create_pull_request\""
show_full_output: true