Last active
June 14, 2021 15:56
-
-
Save yiannistri/1a5ca75c145bc54c4c6ce37277c5830c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
package git_provider_service.v1; | |
option go_package = "github.com/yiannistri/git-provider-service/pkg/protos;git_provider_service"; | |
import "google/api/annotations.proto"; | |
service GitProviderService { | |
rpc CreatePullRequest(CreatePullRequestRequest) returns (CreatePullRequestResponse) { | |
option (google.api.http) = { | |
post: "/v1/pulls" | |
body: "*" | |
}; | |
} | |
} | |
message CreatePullRequestRequest { | |
string git_repository_name = 1; | |
string git_repository_namespace = 2; | |
string head_branch = 3; | |
string base_branch = 4; | |
string title = 5; | |
map<string,string> contents = 6; | |
string commit_message = 7; | |
} | |
message CreatePullRequestResponse { | |
string status = 1; | |
string url = 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment