Skip to content

Commit 059aa6b

Browse files
Codestzxclaude
andcommitted
chore: align all workflows with claude-hindsight style
- actions/checkout, setup-node, cache → @v6/@v5 - ubuntu-22.04 everywhere (no ubuntu-latest) - Consolidated CI into single job + msrv + security-audit - release-drafter: pull_request_target, GITHUB_TOKEN in env - labels: simplified to match claude-hindsight set + krait-specific (lsp, daemon) - release-drafter config: simplified categories matching claude-hindsight Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 02dcd1a commit 059aa6b

7 files changed

Lines changed: 139 additions & 198 deletions

File tree

.github/labels.yml

Lines changed: 50 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,73 @@
1-
# Type
2-
- name: feature
3-
color: '0075ca'
4-
description: New feature or request
5-
6-
- name: enhancement
7-
color: 'a2eeef'
8-
description: Improvement to an existing feature
1+
# Synced via .github/workflows/labels.yml
92

103
- name: bug
11-
color: 'd73a4a'
4+
color: d73a4a
125
description: Something isn't working
136

14-
- name: fix
15-
color: 'e4e669'
16-
description: Bug fix
17-
18-
- name: breaking-change
19-
color: 'b60205'
20-
description: Introduces a breaking API change
21-
22-
- name: major
23-
color: 'b60205'
24-
description: Triggers a major version bump
25-
26-
# Areas
27-
- name: performance
28-
color: 'f9d0c4'
29-
description: Performance improvement
30-
31-
- name: security
32-
color: 'ee0701'
33-
description: Security fix or improvement
7+
- name: enhancement
8+
color: a2eeef
9+
description: New feature or improvement
3410

3511
- name: documentation
36-
color: '0075ca'
12+
color: 0075ca
3713
description: Improvements or additions to documentation
3814

39-
- name: docs
40-
color: '0075ca'
41-
description: Improvements or additions to documentation
42-
43-
- name: lsp
44-
color: '5319e7'
45-
description: Related to LSP client or language servers
46-
47-
- name: daemon
48-
color: '5319e7'
49-
description: Related to the krait daemon
50-
51-
- name: index
52-
color: '5319e7'
53-
description: Related to the SQLite symbol index
54-
55-
- name: cli
56-
color: '5319e7'
57-
description: Related to the CLI interface
58-
59-
# Process
60-
- name: chore
61-
color: 'fef2c0'
62-
description: Build process, tooling, or maintenance
63-
64-
- name: refactor
65-
color: 'fef2c0'
66-
description: Code refactoring without behavior change
67-
68-
- name: dependencies
69-
color: 'fef2c0'
70-
description: Dependency updates
71-
7215
- name: good first issue
73-
color: '7057ff'
16+
color: 7057ff
7417
description: Good for newcomers
7518

7619
- name: help wanted
77-
color: '008672'
20+
color: "008672"
7821
description: Extra attention is needed
7922

8023
- name: question
81-
color: 'd876e3'
24+
color: d876e3
8225
description: Further information is requested
8326

84-
- name: wontfix
85-
color: 'ffffff'
86-
description: This will not be worked on
87-
8827
- name: duplicate
89-
color: 'cfd3d7'
28+
color: cfd3d7
9029
description: This issue or PR already exists
9130

31+
- name: wontfix
32+
color: ffffff
33+
description: This will not be worked on
34+
9235
- name: invalid
93-
color: 'e4e669'
36+
color: e4e669
9437
description: This doesn't seem right
9538

96-
- name: skip-changelog
97-
color: 'ededed'
98-
description: Exclude from release notes
39+
- name: dependencies
40+
color: 0366d6
41+
description: Dependency update (Dependabot)
42+
43+
- name: rust
44+
color: dea584
45+
description: Rust / Cargo changes
46+
47+
- name: ci
48+
color: 6e40c9
49+
description: CI/CD and workflow changes
50+
51+
- name: triage
52+
color: e99695
53+
description: Needs initial review
54+
55+
- name: breaking
56+
color: b60205
57+
description: Breaking change
58+
59+
- name: performance
60+
color: 0e8a16
61+
description: Performance improvement
62+
63+
- name: security
64+
color: ee0701
65+
description: Security-related issue or fix
66+
67+
- name: lsp
68+
color: 5319e7
69+
description: LSP client or language server changes
70+
71+
- name: daemon
72+
color: 5319e7
73+
description: Daemon or socket changes

.github/release-drafter.yml

Lines changed: 26 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,51 @@
1-
name-template: 'v$RESOLVED_VERSION'
2-
tag-template: 'v$RESOLVED_VERSION'
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
33

44
categories:
5-
- title: '🚀 Features'
5+
- title: "Breaking Changes"
66
labels:
7-
- 'feature'
8-
- 'enhancement'
9-
- title: '🐛 Bug Fixes'
7+
- breaking
8+
- title: "New Features"
109
labels:
11-
- 'bug'
12-
- 'fix'
13-
- title: '⚡ Performance'
10+
- enhancement
11+
- title: "Bug Fixes"
1412
labels:
15-
- 'performance'
16-
- title: '🔒 Security'
13+
- bug
14+
- title: "Performance"
1715
labels:
18-
- 'security'
19-
- title: '📚 Documentation'
16+
- performance
17+
- title: "Documentation"
2018
labels:
21-
- 'documentation'
22-
- 'docs'
23-
- title: '🔧 Maintenance'
19+
- documentation
20+
- title: "Dependencies"
2421
labels:
25-
- 'chore'
26-
- 'dependencies'
27-
- 'refactor'
22+
- dependencies
23+
- title: "CI / Infrastructure"
24+
labels:
25+
- ci
2826

29-
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
27+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
3028
change-title-escapes: '\<*_&'
3129

3230
version-resolver:
3331
major:
3432
labels:
35-
- 'breaking-change'
36-
- 'major'
33+
- breaking
3734
minor:
3835
labels:
39-
- 'feature'
40-
- 'enhancement'
36+
- enhancement
4137
patch:
4238
labels:
43-
- 'bug'
44-
- 'fix'
45-
- 'performance'
46-
- 'security'
47-
- 'documentation'
48-
- 'docs'
49-
- 'chore'
50-
- 'dependencies'
51-
- 'refactor'
39+
- bug
40+
- performance
41+
- documentation
42+
- dependencies
43+
- ci
5244
default: patch
5345

54-
exclude-labels:
55-
- 'skip-changelog'
56-
5746
template: |
5847
## What's Changed
5948
6049
$CHANGES
6150
62-
**Full Changelog**: https://github.com/Codestz/krait/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
51+
**Full Changelog**: $PREVIOUS_TAG...v$RESOLVED_VERSION

.github/workflows/ci.yml

Lines changed: 31 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -3,94 +3,70 @@ name: CI
33
on:
44
push:
55
branches: [main]
6-
paths-ignore:
7-
- '**.md'
8-
- 'LICENSE'
96
pull_request:
107
branches: [main]
11-
paths-ignore:
12-
- '**.md'
13-
- 'LICENSE'
148

159
env:
1610
CARGO_TERM_COLOR: always
1711
RUST_BACKTRACE: 1
18-
MSRV: "1.75"
1912

2013
jobs:
21-
fmt:
22-
name: Formatting
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v4
26-
- uses: dtolnay/rust-toolchain@stable
27-
with:
28-
components: rustfmt
29-
- run: cargo fmt --check
14+
ci:
15+
runs-on: ubuntu-22.04
3016

31-
clippy:
32-
name: Clippy
33-
runs-on: ubuntu-latest
3417
steps:
35-
- uses: actions/checkout@v4
36-
- uses: dtolnay/rust-toolchain@stable
37-
with:
38-
components: clippy
39-
- uses: actions/cache@v4
18+
- uses: actions/checkout@v6
19+
20+
- name: Set up Rust
21+
uses: dtolnay/rust-toolchain@stable
4022
with:
41-
path: |
42-
~/.cargo/registry
43-
~/.cargo/git
44-
target
45-
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.toml') }}
46-
- run: cargo clippy -- -D warnings
23+
components: clippy, rustfmt
4724

48-
test:
49-
name: Test (${{ matrix.os }})
50-
runs-on: ${{ matrix.os }}
51-
needs: [fmt, clippy]
52-
strategy:
53-
fail-fast: false
54-
matrix:
55-
os: [ubuntu-latest, macos-latest]
56-
steps:
57-
- uses: actions/checkout@v4
58-
- uses: dtolnay/rust-toolchain@stable
59-
- uses: actions/cache@v4
25+
- name: Cache cargo registry
26+
uses: actions/cache@v5
6027
with:
6128
path: |
6229
~/.cargo/registry
6330
~/.cargo/git
64-
target
65-
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
66-
- name: Build
67-
run: cargo build --release
68-
- name: Test (unit + CLI smoke tests)
31+
target/
32+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
33+
restore-keys: |
34+
${{ runner.os }}-cargo-
35+
36+
- name: Check formatting
37+
run: cargo fmt --check
38+
39+
- name: Run clippy
40+
run: cargo clippy -- -D warnings
41+
42+
- name: Run tests
6943
run: cargo test
70-
# LSP e2e tests are marked #[ignore] — run locally with: cargo test -- --ignored
7144

7245
msrv:
7346
name: Minimum Supported Rust Version (1.75)
74-
runs-on: ubuntu-latest
47+
runs-on: ubuntu-22.04
7548
steps:
76-
- uses: actions/checkout@v4
49+
- uses: actions/checkout@v6
50+
7751
- uses: dtolnay/rust-toolchain@master
7852
with:
79-
toolchain: ${{ env.MSRV }}
80-
- uses: actions/cache@v4
53+
toolchain: "1.75"
54+
55+
- uses: actions/cache@v5
8156
with:
8257
path: |
8358
~/.cargo/registry
8459
~/.cargo/git
85-
target
60+
target/
8661
key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.toml') }}
62+
8763
- run: cargo build
8864

8965
security-audit:
9066
name: Security Audit
91-
runs-on: ubuntu-latest
67+
runs-on: ubuntu-22.04
9268
steps:
93-
- uses: actions/checkout@v4
69+
- uses: actions/checkout@v6
9470
- uses: rustsec/audit-check@v2
9571
with:
9672
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ concurrency:
1717

1818
jobs:
1919
build:
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-22.04
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v6
2323

24-
- uses: actions/setup-node@v4
24+
- uses: actions/setup-node@v6
2525
with:
26-
node-version: 20
26+
node-version: "20"
2727
cache: npm
2828
cache-dependency-path: docs/package-lock.json
2929

@@ -42,7 +42,7 @@ jobs:
4242

4343
deploy:
4444
needs: build
45-
runs-on: ubuntu-latest
45+
runs-on: ubuntu-22.04
4646
environment:
4747
name: github-pages
4848
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)