Skip to content

Instantly share code, notes, and snippets.

@yiannistri
Last active June 14, 2021 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yiannistri/1a5ca75c145bc54c4c6ce37277c5830c to your computer and use it in GitHub Desktop.
Save yiannistri/1a5ca75c145bc54c4c6ce37277c5830c to your computer and use it in GitHub Desktop.
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