mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-28 19:11:03 +08:00
fix(ci): use built-in JetBrains change detection
This commit is contained in:
+27
-25
@@ -16,12 +16,12 @@ concurrency:
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write
|
||||
pull-requests: read
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||
|
||||
jobs:
|
||||
# kilocode_change start
|
||||
changes:
|
||||
name: detect JetBrains changes
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
@@ -30,34 +30,34 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Detect JetBrains changes
|
||||
id: filter
|
||||
uses: dorny/paths-filter@6852f92c20ea7fd3b0c25de3b5112db3a98da050 # v3
|
||||
with:
|
||||
filters: |
|
||||
jetbrains:
|
||||
- 'packages/kilo-jetbrains/**'
|
||||
- 'packages/opencode/src/**'
|
||||
- 'packages/opencode/package.json'
|
||||
- 'packages/opencode/tsconfig.json'
|
||||
- 'packages/opencode/bunfig.toml'
|
||||
- 'packages/core/**'
|
||||
- 'packages/kilo-gateway/**'
|
||||
- 'packages/kilo-indexing/**'
|
||||
- 'packages/kilo-telemetry/**'
|
||||
- 'packages/plugin/**'
|
||||
- 'packages/plugin-atomic-chat/**'
|
||||
- 'packages/sdk/**'
|
||||
- 'packages/script/**'
|
||||
- 'packages/ui/**'
|
||||
- 'package.json'
|
||||
- 'bun.lock'
|
||||
- 'bunfig.toml'
|
||||
- 'patches/**'
|
||||
- '.github/actions/setup-bun/**'
|
||||
- '.github/workflows/test.yml'
|
||||
env:
|
||||
BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
|
||||
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
run: |
|
||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ] || [ -z "$BASE_SHA" ] || [[ "$BASE_SHA" =~ ^0+$ ]]; then
|
||||
echo "jetbrains=true" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
relevant=false
|
||||
while IFS= read -r -d '' path; do
|
||||
case "$path" in
|
||||
packages/kilo-jetbrains/* | packages/opencode/src/* | packages/opencode/package.json | packages/opencode/tsconfig.json | packages/opencode/bunfig.toml | \
|
||||
packages/core/* | packages/kilo-gateway/* | packages/kilo-indexing/* | packages/kilo-telemetry/* | packages/plugin/* | \
|
||||
packages/plugin-atomic-chat/* | packages/sdk/* | packages/script/* | packages/ui/* | package.json | bun.lock | bunfig.toml | \
|
||||
patches/* | .github/actions/setup-bun/* | .github/workflows/test.yml)
|
||||
relevant=true
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done < <(git diff --name-only -z "$BASE_SHA" "$HEAD_SHA")
|
||||
echo "jetbrains=$relevant" >> "$GITHUB_OUTPUT"
|
||||
# kilocode_change end
|
||||
unit:
|
||||
name: unit (${{ matrix.settings.name }})
|
||||
strategy:
|
||||
@@ -195,6 +195,7 @@ jobs:
|
||||
path: packages/kilo-jetbrains/.artifacts/unit/junit.xml
|
||||
# kilocode_change end
|
||||
|
||||
# kilocode_change start
|
||||
required:
|
||||
name: test (linux)
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
@@ -217,3 +218,4 @@ jobs:
|
||||
test "${{ needs.changes.outputs.jetbrains }}" = "false"
|
||||
test "${{ needs.jetbrains.result }}" = "skipped"
|
||||
fi
|
||||
# kilocode_change end
|
||||
|
||||
Reference in New Issue
Block a user