drone/internal/gitrpc/proto/shared.proto
Johannes Batzill 91a75ed601 Add GetContent and ListCommits APIs, Fix DefaultBranch support (#32)
Adds the following:
- Add GetContent API (with gitrpc, proto, gitadapter changes)
- Add ListCommits API (with gitrpc, proto, gitadapter changes)
- DefaultBranch (to repo table in DB, update branch in git-repo, have default value in config)
2022-10-17 00:14:31 -07:00

46 lines
731 B
Protocol Buffer

syntax = "proto3";
package rpc;
option go_package = "github.com/harness/gitness/gitrpc/rpc";
message FileUpload{
oneof data {
FileUploadHeader header = 1;
Chunk chunk = 2;
}
}
message FileUploadHeader {
string path = 1;
}
message Chunk {
bool eof = 1;
bytes data = 2;
}
message CommitRequest {
string title = 1;
string message = 2;
Identity author = 3;
Identity committer = 4;
}
message Commit {
string sha = 1;
string title = 2;
string message = 3;
Signature author = 4;
Signature committer = 5;
}
message Signature {
Identity identity = 1;
int64 when = 2;
}
message Identity {
string name = 1;
string email = 2;
}