mirror of
https://github.com/harness/drone.git
synced 2025-05-05 12:39:55 +08:00
37 lines
1.0 KiB
Protocol Buffer
37 lines
1.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
package rpc;
|
|
|
|
option go_package = "github.com/harness/gitness/gitrpc/rpc";
|
|
|
|
import "shared.proto";
|
|
|
|
// DiffService is a service which provides RPCs to inspect differences
|
|
// introduced between a set of commits.
|
|
service MergeService {
|
|
rpc MergeBranch(MergeBranchRequest) returns (MergeBranchResponse) {}
|
|
}
|
|
|
|
|
|
message MergeBranchRequest {
|
|
WriteRequest base = 1;
|
|
// head_branch is the source branch we want to merge
|
|
string head_branch = 2;
|
|
// base_branch is the branch into which the given commit shall be merged and whose
|
|
// reference is going to be updated.
|
|
string base_branch = 3;
|
|
// title is the title to use for the merge commit.
|
|
string title = 4;
|
|
// message is the message to use for the merge commit.
|
|
string message = 5;
|
|
// force merge
|
|
bool force = 6;
|
|
// delete branch after merge
|
|
bool delete_head_branch = 7;
|
|
}
|
|
|
|
message MergeBranchResponse {
|
|
// The merge_sha is merge commit between head_sha and base_sha
|
|
string merge_sha = 1;
|
|
string base_sha = 2;
|
|
string head_sha = 3;
|
|
} |