-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (38 loc) · 1.27 KB
/
kompass-ticket-plan.yml
File metadata and controls
46 lines (38 loc) · 1.27 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
name: Kompass Ticket Plan
on:
workflow_dispatch:
inputs:
ticket:
description: 'Ticket identifier or URL'
required: true
type: string
jobs:
plan:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App Token
id: token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.KOMPASS_APP_ID }}
private-key: ${{ secrets.KOMPASS_APP_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ steps.token.outputs.token }}
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Install Kompass Tooling
uses: ./.github/actions/kompass-opencode-install
- name: Run Kompass Ticket Plan
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
run: opencode run --model="${{ vars.OPENCODE_MODEL }}" --variant="${{ vars.OPENCODE_VARIANT }}" --thinking --command="ticket/plan" "${{ inputs.ticket }}"
- name: Export Kompass Session
if: always()
uses: ./.github/actions/kompass-opencode-session-export