Skip to content

Commit 7a0619e

Browse files
Merge branch 'main' into get_check_runs
2 parents 9a82603 + d44894e commit 7a0619e

File tree

134 files changed

+10047
-7820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+10047
-7820
lines changed

.github/workflows/code-scanning.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ jobs:
7474
go-version: ${{ fromJSON(steps.resolve-environment.outputs.environment).configuration.go.version }}
7575
cache: false
7676

77+
- name: Set up Node.js
78+
if: matrix.language == 'go'
79+
uses: actions/setup-node@v4
80+
with:
81+
node-version: "20"
82+
cache: "npm"
83+
cache-dependency-path: ui/package-lock.json
84+
85+
- name: Build UI
86+
if: matrix.language == 'go'
87+
run: script/build-ui
88+
7789
- name: Autobuild
7890
uses: github/codeql-action/autobuild@v4
7991

.github/workflows/docker-publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,14 @@ jobs:
9393
key: ${{ runner.os }}-go-build-cache-${{ hashFiles('**/go.sum') }}
9494

9595
- name: Inject go-build-cache
96-
uses: reproducible-containers/buildkit-cache-dance@4b2444fec0c0fb9dbf175a96c094720a692ef810 # v2.1.4
96+
uses: reproducible-containers/buildkit-cache-dance@6f699a72a59e4252f05a7435430009b77e25fe06 # v3.3.1
9797
with:
98-
cache-source: go-build-cache
98+
cache-map: |
99+
{
100+
"go-build-cache/apk": "/var/cache/apk",
101+
"go-build-cache/pkg": "/go/pkg/mod",
102+
"go-build-cache/build": "/root/.cache/go-build"
103+
}
99104
100105
# Build and push Docker image with Buildx (don't push on PR)
101106
# https://github.com/docker/build-push-action

.github/workflows/docs-check.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v6
1818

19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: "20"
23+
cache: "npm"
24+
cache-dependency-path: ui/package-lock.json
25+
26+
- name: Build UI
27+
run: script/build-ui
28+
1929
- name: Set up Go
2030
uses: actions/setup-go@v6
2131
with:

.github/workflows/go.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ jobs:
2525
- name: Check out code
2626
uses: actions/checkout@v6
2727

28+
- name: Set up Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: "20"
32+
cache: "npm"
33+
cache-dependency-path: ui/package-lock.json
34+
35+
- name: Build UI
36+
shell: bash
37+
run: script/build-ui
38+
2839
- name: Set up Go
2940
uses: actions/setup-go@v6
3041
with:
@@ -34,6 +45,7 @@ jobs:
3445
run: go mod tidy -diff
3546

3647
- name: Run unit tests
48+
shell: bash
3749
run: script/test
3850

3951
- name: Build

.github/workflows/goreleaser.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ jobs:
1616
- name: Check out code
1717
uses: actions/checkout@v6
1818

19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: "20"
23+
cache: "npm"
24+
cache-dependency-path: ui/package-lock.json
25+
26+
- name: Build UI
27+
run: script/build-ui
28+
1929
- name: Set up Go
2030
uses: actions/setup-go@v6
2131
with:

.github/workflows/license-check.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ jobs:
3232
GH_TOKEN: ${{ github.token }}
3333
run: gh pr checkout ${{ github.event.pull_request.number }}
3434

35+
- name: Set up Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: "20"
39+
cache: "npm"
40+
cache-dependency-path: ui/package-lock.json
41+
42+
- name: Build UI
43+
run: script/build-ui
44+
3545
- name: Set up Go
3646
uses: actions/setup-go@v6
3747
with:

.github/workflows/lint.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v6
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: "20"
20+
cache: "npm"
21+
cache-dependency-path: ui/package-lock.json
22+
- name: Build UI
23+
run: script/build-ui
1724
- uses: actions/setup-go@v6
1825
with:
19-
go-version: stable
26+
go-version: '1.25'
2027
- name: golangci-lint
2128
uses: golangci/golangci-lint-action@v9
2229
with:
23-
version: v2.5
30+
# sync with script/lint
31+
version: v2.9

.github/workflows/mcp-diff.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22+
- name: Set up Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
27+
- name: Build UI
28+
run: script/build-ui
29+
2230
- name: Run MCP Server Diff
2331
uses: SamMorrowDrums/mcp-server-diff@v2.3.5
2432
with:

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,12 @@ e2e.test
2323

2424
.history
2525
conformance-report/
26+
27+
# UI build artifacts
28+
ui/dist/
29+
ui/node_modules/
30+
31+
# Embedded UI assets (built from ui/)
32+
pkg/github/ui_dist/*
33+
!pkg/github/ui_dist/.gitkeep
34+
!pkg/github/ui_dist/.placeholder.html

.golangci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ linters:
99
- gosec
1010
- makezero
1111
- misspell
12+
- modernize
1213
- nakedret
1314
- revive
1415
- errcheck
1516
- staticcheck
1617
- govet
1718
- ineffassign
19+
- intrange
1820
- unused
1921
exclusions:
2022
generated: lax
@@ -27,6 +29,11 @@ linters:
2729
- third_party$
2830
- builtin$
2931
- examples$
32+
- internal/githubv4mock
33+
rules:
34+
- linters:
35+
- revive
36+
text: "var-naming: avoid package names that conflict with Go standard library package names"
3037
settings:
3138
staticcheck:
3239
checks:

0 commit comments

Comments
 (0)