File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 - " *"
1111jobs :
1212 lint :
13- name : " Lint"
13+ name : " Lint & Publish Draft/Branch "
1414 runs-on : " ubuntu-latest"
1515 steps :
1616 - uses : " actions/checkout@v3"
1717 - uses : " authzed/actions/yaml-lint@main"
18- - uses : " bufbuild/buf-setup-action@v1"
18+ - uses : " bufbuild/buf-setup-action@v1.30.0 "
1919 with :
20- version : " 1.22 .0"
20+ version : " 1.30 .0"
2121 - uses : " bufbuild/buf-lint-action@v1"
2222 - uses : " bufbuild/buf-breaking-action@v1"
2323 if : " github.event_name == 'pull_request'"
3333 env :
3434 BUF_TOKEN : " ${{ secrets.BUF_REGISTRY_TOKEN }}"
3535 run : " buf push --draft ${{ github.sha }}"
36+ - name : " Push to BSR a Draft"
37+ if : " github.event_name == 'push' && github.ref == 'refs/heads/main'"
38+ shell : " bash"
39+ env :
40+ BUF_TOKEN : " ${{ secrets.BUF_REGISTRY_TOKEN }}"
41+ run : " buf push --draft ${{ github.sha }}"
42+ - name : " Push to BSR a Branch"
43+ if : " github.event_name == 'push' && github.ref != 'refs/heads/main'"
44+ shell : " bash"
45+ env :
46+ BUF_TOKEN : " ${{ secrets.BUF_REGISTRY_TOKEN }}"
47+ run : " buf push --branch ${{ github.sha }}"
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package authzed.api.v1;
33
44option go_package = "github.com/authzed/authzed-go/proto/authzed/api/v1" ;
55option java_package = "com.authzed.api.v1" ;
6+ option java_multiple_files = true ;
67
78import "google/protobuf/struct.proto" ;
89import "validate/validate.proto" ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import "google/protobuf/duration.proto";
88
99option go_package = "github.com/authzed/authzed-go/proto/authzed/api/v1" ;
1010option java_package = "com.authzed.api.v1" ;
11+ option java_multiple_files = true ;
1112
1213// DebugInformation defines debug information returned by an API call in a footer when
1314// requested with a specific debugging header.
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package authzed.api.v1;
33
44option go_package = "github.com/authzed/authzed-go/proto/authzed/api/v1" ;
55option java_package = "com.authzed.api.v1" ;
6+ option java_multiple_files = true ;
67
78// Defines the supported values for `google.rpc.ErrorInfo.reason` for the
89// `authzed.com` error domain.
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package authzed.api.v1;
33
44option go_package = "github.com/authzed/authzed-go/proto/authzed/api/v1" ;
55option java_package = "com.authzed.api.v1" ;
6+ option java_multiple_files = true ;
67
78import "google/api/annotations.proto" ;
89import "validate/validate.proto" ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package authzed.api.v1;
33
44option go_package = "github.com/authzed/authzed-go/proto/authzed/api/v1" ;
55option java_package = "com.authzed.api.v1" ;
6+ option java_multiple_files = true ;
67
78import "protoc-gen-openapiv2/options/annotations.proto" ;
89
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package authzed.api.v1;
33
44option go_package = "github.com/authzed/authzed-go/proto/authzed/api/v1" ;
55option java_package = "com.authzed.api.v1" ;
6+ option java_multiple_files = true ;
67
78import "google/protobuf/struct.proto" ;
89import "google/api/annotations.proto" ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package authzed.api.v1;
33
44option go_package = "github.com/authzed/authzed-go/proto/authzed/api/v1" ;
55option java_package = "com.authzed.api.v1" ;
6+ option java_multiple_files = true ;
67
78import "google/api/annotations.proto" ;
89import "validate/validate.proto" ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package authzed.api.v1;
33
44option go_package = "github.com/authzed/authzed-go/proto/authzed/api/v1" ;
55option java_package = "com.authzed.api.v1" ;
6+ option java_multiple_files = true ;
67
78import "google/api/annotations.proto" ;
89import "validate/validate.proto" ;
Original file line number Diff line number Diff line change 88lint :
99 ignore :
1010 - " authzed/api/v0" # legacy from before we used buf
11+ breaking :
12+ use :
13+ - " WIRE_JSON"
You can’t perform that action at this time.
0 commit comments