Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/docs-sync/edit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* warning — its PRs show up in the rolling PR body as skipped, so nothing
* fails silently.
*
* Env: EDIT_MODEL (provider/model), KILO_API_KEY (set by workflow; read natively by the kilo provider).
* Env: EDIT_MODEL (provider/model), KILO_API_KEY + KILO_ORG_ID (set by workflow; read natively by the kilo provider).
*/

import { execFileSync } from "node:child_process"
Expand Down
4 changes: 2 additions & 2 deletions .github/docs-sync/triage.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* "unclassified" entries (docs_worthy=false) instead of failing the run —
* the PR body then shows those PRs as skipped, visible to reviewers.
*
* Env: TRIAGE_MODEL (provider/model), KILO_API_KEY (gateway auth, set by the workflow;
* the kilo provider reads it natively). Reads the prompt from triage-prompt.md next to this script.
* Env: TRIAGE_MODEL (provider/model), KILO_API_KEY + KILO_ORG_ID (gateway auth, set by
* the workflow; the kilo provider reads them natively). Reads the prompt from triage-prompt.md next to this script.
*/

import { execFileSync } from "node:child_process"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docs-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
if: github.repository == 'Kilo-Org/kilocode'
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 120
env:
# Both are required: without KILO_ORG_ID the gateway bills the key
# owner's personal balance (402 "Add credits") instead of the org.
KILO_API_KEY: ${{ secrets.KILO_API_KEY }}
KILO_ORG_ID: ${{ secrets.KILO_ORG_ID }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand Down Expand Up @@ -74,8 +79,6 @@ jobs:
- name: Triage merged PRs (LLM, chunked)
id: triage
if: steps.collect.outputs.count != '0'
env:
KILO_API_KEY: ${{ secrets.KILO_API_KEY }}
run: node .github/docs-sync/triage.mjs

- name: Filter docs-worthy PRs
Expand Down Expand Up @@ -103,8 +106,6 @@ jobs:

- name: Update docs (Kilo CLI, batched)
if: (steps.worthy.outputs.count || '0') != '0' && inputs.dry_run != true
env:
KILO_API_KEY: ${{ secrets.KILO_API_KEY }}
run: node .github/docs-sync/edit.mjs

- name: Verify docs build and tests
Expand All @@ -122,7 +123,6 @@ jobs:
if: steps.verify.outcome == 'failure'
continue-on-error: true
env:
KILO_API_KEY: ${{ secrets.KILO_API_KEY }}
NEXT_PUBLIC_POSTHOG_KEY: ${{ secrets.POSTHOG_API_KEY }}
run: |
set -o pipefail
Expand Down
Loading