-
-
Notifications
You must be signed in to change notification settings - Fork 97
93 lines (80 loc) · 2.64 KB
/
devbird.yml
File metadata and controls
93 lines (80 loc) · 2.64 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: "DevBird"
run-name: "DevBird: ${{ inputs.task_title }}"
on:
workflow_dispatch:
inputs:
prompt:
description: "Instructions for DevBird. Can be a direct prompt or custom template."
type: string
required: true
base_branch:
description: "The branch to use as the base/source when creating new branches (defaults to repository default branch)"
type: string
required: false
default: "main"
agent:
description: "The agent to use for the action. Can be 'claude_code', 'gemini_cli', 'codex_cli' or 'opencode'"
type: choice
default: "claude_code"
options:
- claude_code
- gemini_cli
- codex_cli
- opencode
- crush_cli
- github_copilot_cli
agent_model:
description: "The (optional) model to use for the agent"
type: string
required: false
default: ""
devbird_workflow_execution_token:
description: "The token to use for the DevBird task"
type: string
required: false
default: ""
devbird_mode:
description: "The DevBird execution mode. Can be 'develop' (default) or 'plan' (for task graph planning)"
type: choice
default: "develop"
options:
- develop
- plan
task_title:
description: "The title of the DevBird task"
type: string
required: false
default: ""
jobs:
devbird:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
actions: read # Required for Claude to read CI results on PRs
steps:
- name: Checkout code
uses: actions/checkout@v5
- run: corepack enable
- uses: actions/setup-node@v4
with:
cache: "pnpm"
- uses: pnpm/action-setup@v4
with:
run_install: true
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run DevBird
uses: delinoio/devbird-action@main
with:
agent: ${{ inputs.agent }}
agent_model: ${{ inputs.agent_model }}
devbird_mode: ${{ inputs.devbird_mode }}
devbird_workflow_execution_token: ${{ inputs.devbird_workflow_execution_token }}
prompt: ${{ inputs.prompt }}
base_branch: ${{ inputs.base_branch }}
delino_access_token: ${{ secrets.DELINO_ACCESS_TOKEN }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
openai_api_key: ${{ secrets.AUTODEV_OPENAI_API_KEY }}