Skip to content

Commit

Permalink
update proto
Browse files Browse the repository at this point in the history
- renamings
- removal of unused attributes
  • Loading branch information
AlexTugarev committed Nov 15, 2023
1 parent c6877d7 commit 0991b70
Show file tree
Hide file tree
Showing 7 changed files with 227 additions and 295 deletions.
18 changes: 7 additions & 11 deletions components/public-api/gitpod/v1/scm.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@ import "google/protobuf/timestamp.proto";
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";

service SCMService {
rpc GetToken(GetTokenRequest) returns (GetTokenResponse) {}
rpc GetSCMToken(GetSCMTokenRequest) returns (GetSCMTokenResponse) {}
rpc GuessTokenScopes(GuessTokenScopesRequest) returns (GuessTokenScopesResponse) {}
rpc SearchRepositories(SearchRepositoriesRequest) returns (SearchRepositoriesResponse) {}
rpc ListSuggestedRepositories(ListSuggestedRepositoriesRequest) returns (ListSuggestedRepositoriesResponse) {}
}

message GetTokenRequest {
message GetSCMTokenRequest {
string host = 1;
string organization_id = 2;
}
message GetTokenResponse {
GitToken token = 1;
message GetSCMTokenResponse {
SCMToken token = 1;
}

message GuessTokenScopesRequest {
Expand All @@ -32,9 +31,8 @@ message GuessTokenScopesResponse {
}

message SearchRepositoriesRequest {
string organization_id = 1;
string search_string = 2;
int32 limit = 3;
string search_string = 1;
int32 limit = 2;
}
message SearchRepositoriesResponse {
repeated SuggestedRepository repositories = 1;
Expand All @@ -47,7 +45,7 @@ message ListSuggestedRepositoriesResponse {
repeated SuggestedRepository repositories = 1;
}

message GitToken {
message SCMToken {
string username = 1;
string value = 2;
string id_token = 3;
Expand All @@ -60,6 +58,4 @@ message GitToken {
message SuggestedRepository {
string url = 1;
string repo_name = 2;
string config_name = 3;
string config_id = 4;
}
Loading

0 comments on commit 0991b70

Please sign in to comment.