Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-yin committed Nov 16, 2023
1 parent fd345e4 commit 560d41d
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "temporal-api"]
path = temporal-api
url = https://github.com/temporalio/api.git
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ openapiv2-install:
printf $(COLOR) "Install/update openapiv2 protoc gen..."
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.16.2

PROTO_ROOT := temporal-api

##### Import Proto files #####
install-proto-submodule:
@printf $(COLOR) "Install proto submodule..."
git submodule update --init $(PROTO_ROOT)

update-proto-submodule:
@printf $(COLOR) "Update proto submodule from remote..."
git submodule update --force --remote $(PROTO_ROOT)


##### Linters #####
buf-lint:
printf $(COLOR) "Run buf linter..."
Expand Down
4 changes: 2 additions & 2 deletions buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ deps:
- remote: buf.build
owner: googleapis
repository: googleapis
commit: 711e289f6a384c4caeebaff7c6931ade
digest: shake256:e08fb55dad7469f69df00304eed31427d2d1576e9aab31e6bf86642688e04caaf0372f15fe6974cf79432779a635b3ea401ca69c943976dc42749524e4c25d94
commit: 28151c0d0a1641bf938a7672c500e01d
digest: shake256:49215edf8ef57f7863004539deff8834cfb2195113f0b890dd1f67815d9353e28e668019165b9d872395871eeafcbab3ccfdb2b5f11734d3cca95be9e8d139de
6 changes: 6 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ deps:
breaking:
use:
- FILE
build:
excludes:
- temporal-api/google
lint:
use:
- DEFAULT
ignore:
- temporal-api # don't lint temporal-api

1 change: 1 addition & 0 deletions temporal-api
Submodule temporal-api added at 66df14
13 changes: 13 additions & 0 deletions temporal/api/cloud/export/exported_workflow.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
syntax = "proto3";

package temporal.api.cloud.namespace.export.v1;

import "temporal/api/history/v1/message.proto";

message ExportedWorkflows{
repeated ExportedWorkflow workflows = 1;
}

message ExportedWorkflow{
temporal.api.history.v1.History history = 1;
}

0 comments on commit 560d41d

Please sign in to comment.