-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (57 loc) · 3.02 KB
/
Copy pathimplement.yml
File metadata and controls
66 lines (57 loc) · 3.02 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: "DevFlow: Implement"
on:
repository_dispatch:
types: [devflow-implement]
run-name: "implement · ${{ github.event.client_payload.issue_key }} → ${{ github.event.client_payload.project_key }}"
jobs:
implement:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: "📋 ${{ github.event.client_payload.issue_key }} | implement"
run: |
echo "╔══════════════════════════════════════════╗"
echo "║ DevFlow Kit — Implementation ║"
echo "╠══════════════════════════════════════════╣"
echo "║ Ticket: ${{ github.event.client_payload.issue_key }}"
echo "║ Project: ${{ github.event.client_payload.project_key }}"
echo "║ Component: ${{ github.event.client_payload.component }}"
echo "║ GitHub: ${{ github.event.client_payload.github_issue_url }}"
echo "╚══════════════════════════════════════════╝"
- name: Checkout devflow-kit
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: |
uv sync --all-extras
npm install -g @anthropic-ai/claude-code
- name: "🤖 Run implementation · ${{ github.event.client_payload.issue_key }}"
env:
PYTHONUNBUFFERED: "1"
LLM_PROVIDER: ${{ vars.LLM_PROVIDER || 'anthropic' }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
GH_PAT: ${{ secrets.GH_PAT }}
REPO_MAP_ENGINE: ${{ vars.REPO_MAP_ENGINE || 'ast' }}
GRAPH_STORE_BUCKET: ${{ secrets.GRAPH_STORE_BUCKET }}
GRAPH_STORE_ENDPOINT: ${{ secrets.GRAPH_STORE_ENDPOINT }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
ISSUE_KEY: ${{ github.event.client_payload.issue_key }}
PROJECT_KEY: ${{ github.event.client_payload.project_key }}
COMPONENT: ${{ github.event.client_payload.component }}
SUMMARY: ${{ github.event.client_payload.summary }}
DESCRIPTION: ${{ github.event.client_payload.description }}
GITHUB_ISSUE_URL: ${{ github.event.client_payload.github_issue_url }}
run: uv run python run_agent.py implementation