mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-28 19:11:03 +08:00
refactor: rename gh repo
This commit is contained in:
@@ -29,7 +29,7 @@ jobs:
|
||||
- uses: ./.github/actions/setup-bun
|
||||
|
||||
- name: Run opencode
|
||||
uses: Kilo-Org/kilo/github@latest
|
||||
uses: Kilo-Org/kilocode/github@latest
|
||||
env:
|
||||
KILO_API_KEY: ${{ secrets.KILO_API_KEY }}
|
||||
KILO_ORG_ID: ${{ secrets.KILO_ORG_ID }}
|
||||
|
||||
@@ -33,7 +33,7 @@ permissions:
|
||||
jobs:
|
||||
version:
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
if: github.repository == 'Kilo-Org/kilo'
|
||||
if: github.repository == 'Kilo-Org/kilocode'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
build-cli:
|
||||
needs: version
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
if: github.repository == 'Kilo-Org/kilo'
|
||||
if: github.repository == 'Kilo-Org/kilocode'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -90,7 +90,7 @@ jobs:
|
||||
build-vscode:
|
||||
needs: build-cli
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
if: github.repository == 'Kilo-Org/kilo'
|
||||
if: github.repository == 'Kilo-Org/kilocode'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
||||
+2
-2
@@ -91,7 +91,7 @@ This will walk you through installing the KiloConnect GitHub app, creating the w
|
||||
persist-credentials: false
|
||||
|
||||
- name: Run Kilo
|
||||
uses: Kilo-Org/kilo/github@latest
|
||||
uses: Kilo-Org/kilocode/github@latest
|
||||
with:
|
||||
model: kilo/claude-sonnet-4-20250514
|
||||
kilo_api_key: ${{ secrets.KILO_API_KEY }}
|
||||
@@ -120,7 +120,7 @@ You can also use other AI providers by setting their API keys:
|
||||
|
||||
```yml
|
||||
- name: Run Kilo
|
||||
uses: Kilo-Org/kilo/github@latest
|
||||
uses: Kilo-Org/kilocode/github@latest
|
||||
with:
|
||||
model: anthropic/claude-sonnet-4-20250514
|
||||
env:
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ runs:
|
||||
id: version
|
||||
shell: bash
|
||||
run: |
|
||||
VERSION=$(curl -sf https://api.github.com/repos/Kilo-Org/kilo/releases/latest | grep -o '"tag_name": *"[^"]*"' | cut -d'"' -f4)
|
||||
VERSION=$(curl -sf https://api.github.com/repos/Kilo-Org/kilocode/releases/latest | grep -o '"tag_name": *"[^"]*"' | cut -d'"' -f4)
|
||||
echo "version=${VERSION:-latest}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache Kilo
|
||||
|
||||
@@ -184,7 +184,7 @@ else
|
||||
|
||||
if [ -z "$requested_version" ]; then
|
||||
url="https://github.com/Kilo-Org/kilocode/releases/latest/download/$filename"
|
||||
specific_version=$(curl -s https://api.github.com/repos/Kilo-Org/kilo/releases/latest | sed -n 's/.*"tag_name": *"v\([^"]*\)".*/\1/p')
|
||||
specific_version=$(curl -s https://api.github.com/repos/Kilo-Org/kilocode/releases/latest | sed -n 's/.*"tag_name": *"v\([^"]*\)".*/\1/p')
|
||||
|
||||
if [[ $? -ne 0 || -z "$specific_version" ]]; then
|
||||
echo -e "${RED}Failed to fetch version information${NC}"
|
||||
|
||||
@@ -398,7 +398,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Run Kilo
|
||||
uses: Kilo-Org/kilo/github@latest${envStr}
|
||||
uses: Kilo-Org/kilocode/github@latest${envStr}
|
||||
with:
|
||||
model: ${provider}/${model}`,
|
||||
)
|
||||
|
||||
@@ -254,7 +254,7 @@ export namespace Installation {
|
||||
.then((data: any) => data.version)
|
||||
}
|
||||
|
||||
return fetch("https://api.github.com/repos/Kilo-Org/kilo/releases/latest")
|
||||
return fetch("https://api.github.com/repos/Kilo-Org/kilocode/releases/latest")
|
||||
.then((res) => {
|
||||
if (!res.ok) throw new Error(res.statusText)
|
||||
return res.json()
|
||||
|
||||
+3
-3
@@ -12,7 +12,7 @@ type Release = {
|
||||
}
|
||||
|
||||
export async function getLatestRelease(skip?: string) {
|
||||
const data = await fetch("https://api.github.com/repos/Kilo-Org/kilo/releases?per_page=100").then((res) => {
|
||||
const data = await fetch("https://api.github.com/repos/Kilo-Org/kilocode/releases?per_page=100").then((res) => {
|
||||
if (!res.ok) throw new Error(res.statusText)
|
||||
return res.json()
|
||||
})
|
||||
@@ -43,7 +43,7 @@ export async function getCommits(from: string, to: string): Promise<Commit[]> {
|
||||
|
||||
// Get commit data with GitHub usernames from the API
|
||||
const compare =
|
||||
await $`gh api "/repos/Kilo-Org/kilo/compare/${fromRef}...${toRef}" --jq '.commits[] | {sha: .sha, login: .author.login, message: .commit.message}'`.text()
|
||||
await $`gh api "/repos/Kilo-Org/kilocode/compare/${fromRef}...${toRef}" --jq '.commits[] | {sha: .sha, login: .author.login, message: .commit.message}'`.text()
|
||||
|
||||
const commitData = new Map<string, { login: string | null; message: string }>()
|
||||
for (const line of compare.split("\n").filter(Boolean)) {
|
||||
@@ -201,7 +201,7 @@ export async function getContributors(from: string, to: string) {
|
||||
const fromRef = from.startsWith("v") ? from : `v${from}`
|
||||
const toRef = to === "HEAD" ? to : to.startsWith("v") ? to : `v${to}`
|
||||
const compare =
|
||||
await $`gh api "/repos/Kilo-Org/kilo/compare/${fromRef}...${toRef}" --jq '.commits[] | {login: .author.login, message: .commit.message}'`.text()
|
||||
await $`gh api "/repos/Kilo-Org/kilocode/compare/${fromRef}...${toRef}" --jq '.commits[] | {login: .author.login, message: .commit.message}'`.text()
|
||||
const contributors = new Map<string, Set<string>>()
|
||||
|
||||
for (const line of compare.split("\n").filter(Boolean)) {
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ async function fetchReleases(): Promise<Release[]> {
|
||||
const per = 100
|
||||
|
||||
while (true) {
|
||||
const url = `https://api.github.com/repos/Kilo-Org/kilo/releases?page=${page}&per_page=${per}`
|
||||
const url = `https://api.github.com/repos/Kilo-Org/kilocode/releases?page=${page}&per_page=${per}`
|
||||
|
||||
const response = await fetch(url)
|
||||
if (!response.ok) {
|
||||
|
||||
@@ -45,7 +45,7 @@ const SCRIPT_REPLACEMENTS: ScriptReplacement[] = [
|
||||
// gh CLI commands
|
||||
{
|
||||
pattern: /gh api "\/repos\/anomalyco\/opencode/g,
|
||||
replacement: 'gh api "/repos/Kilo-Org/kilo',
|
||||
replacement: 'gh api "/repos/Kilo-Org/kilocode',
|
||||
description: "gh api command",
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user