-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.72 KB
/
Copy pathcheck-opencode-annotations.yml
File metadata and controls
53 lines (47 loc) · 1.72 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
name: Check shared upstream annotations
on:
pull_request:
paths:
- ".github/**"
- "github/**"
- "packages/extensions/**"
- "packages/opencode/**"
- "packages/script/**"
- "packages/shared/**"
- "packages/storybook/**"
- "packages/ui/**"
- "script/**"
workflow_dispatch:
jobs:
check-annotations:
name: Check kilocode_change / czcode_change annotations
if: github.repository == 'clickzetta/czcode' # czcode_change
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6 # kilocode_change
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
- name: Check kilocode_change annotations in shared upstream files
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
# czcode_change start - skip annotation check for upstream merge PRs
if [[ "$PR_TITLE" == merge:* || "$PR_TITLE" == "merge: upstream"* ]]; then
echo "Upstream merge PR detected ('$PR_TITLE') — skipping annotation check."
exit 0
fi
# czcode_change end
if [ -n "$BASE_SHA" ]; then
bun run script/check-opencode-annotations.ts --base "$BASE_SHA"
else
echo "No PR base SHA available (workflow_dispatch without PR context) — skipping."
fi
# kilocode_change start
- name: Check Effect Promise facade allowlist
run: bun run script/check-opencode-promise-facades.ts
- name: Check workflow allowlist
run: bun run script/check-workflows.ts
# kilocode_change end