You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git diff --exit-code || (echo "Generated docs are out of date. Please run 'make docs.generate' locally and commit the changes." && exit 1)
32
+
test -z "$(git status --porcelain)" || (echo "Generated docs are out of date. Please run 'make docs.generate' locally and commit the changes." && git status --porcelain && exit 1)
33
+
14
34
build:
15
35
runs-on: ubuntu-latest
16
36
steps:
@@ -23,20 +43,6 @@ jobs:
23
43
node-version-file: '.nvmrc'
24
44
cache: 'npm'
25
45
26
-
# - name: Filter modified codepaths
27
-
# uses: dorny/paths-filter@v3
28
-
# id: filter
29
-
# with:
30
-
# filters: |
31
-
# cli:
32
-
# - "cli/**"
33
-
34
-
# - name: Check if new files were created
35
-
# if: ${{ steps.filter.outputs.cli == 'true' }}
36
-
# run: |
37
-
# make docs.generate
38
-
# git diff --exit-code || (echo "New files were created, please run 'make docs.generate' locally and commit the changes" && exit 0)
Copy file name to clipboardExpand all lines: .github/workflows/proto-check.yml
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,12 @@ name: Check .proto files
2
2
on:
3
3
pull_request:
4
4
paths:
5
+
- ".github/workflows/proto-check.yml"
5
6
- "proto/**"
7
+
- "scripts/convert-openapi-v2-to-v3/**"
8
+
- "web-admin/src/client/**"
9
+
- "web-common/src/proto/**"
10
+
- "web-common/src/runtime-client/**"
6
11
jobs:
7
12
check:
8
13
runs-on: ubuntu-latest
@@ -12,3 +17,33 @@ jobs:
12
17
- uses: bufbuild/buf-lint-action@v1
13
18
with:
14
19
input: "proto"
20
+
21
+
generate:
22
+
runs-on: ubuntu-latest
23
+
steps:
24
+
- name: Checkout code
25
+
uses: actions/checkout@v4
26
+
27
+
- name: Set up Go
28
+
uses: actions/setup-go@v5
29
+
with:
30
+
go-version: 1.25
31
+
32
+
- name: Set up buf
33
+
uses: bufbuild/buf-setup-action@v1
34
+
35
+
- name: Set up NodeJS
36
+
uses: actions/setup-node@v4
37
+
with:
38
+
node-version-file: '.nvmrc'
39
+
cache: 'npm'
40
+
41
+
- name: Generate proto
42
+
run: make proto.generate
43
+
env:
44
+
HUSKY: 0
45
+
46
+
- name: Check for uncommitted changes
47
+
run: |
48
+
git diff --exit-code || (echo "Generated proto files are out of date. Please run 'make proto.generate' locally and commit the changes." && exit 1)
49
+
test -z "$(git status --porcelain)" || (echo "Generated proto files are out of date. Please run 'make proto.generate' locally and commit the changes." && git status --porcelain && exit 1)
// isTerminal reports whether both stdin and stdout are connected to an interactive terminal.
697
+
// It can be overridden by setting RILL_DOCS_GENERATE=true (used in CI for docs generation).
697
698
funcisTerminal() bool {
699
+
ifos.Getenv("RILL_DOCS_GENERATE") =="true" {
700
+
// Used for generating docs with `make docs.generate`.
701
+
// This ensures --interactive defaults to "true", which makes the generated docs appear the way the CLI help menus appear to a real user (e.g. strips agent instructions).
Copy file name to clipboardExpand all lines: proto/gen/rill/admin/v1/openapi.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2321,7 +2321,7 @@ externalDocs:
2321
2321
info:
2322
2322
description: Rill Admin API enables programmatic management of Rill Cloud resources, including organizations, projects, and user access. It provides endpoints for creating, updating, and deleting these resources, as well as managing authentication and permissions.
Copy file name to clipboardExpand all lines: proto/gen/rill/admin/v1/public.openapi.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2321,7 +2321,7 @@ externalDocs:
2321
2321
info:
2322
2322
description: Rill Admin API enables programmatic management of Rill Cloud resources, including organizations, projects, and user access. It provides endpoints for creating, updating, and deleting these resources, as well as managing authentication and permissions.
0 commit comments