This commit is contained in:
9 files changed
+633
-114
No files matched your search
@@ -37,6 +37,10 @@ service ForgeService {
|
||||
rpc AcceptInvitations(AcceptInvitationsRequest) returns (AcceptInvitationsResponse);
|
||||
rpc VerifyPush(VerifyPushRequest) returns (VerifyPushResponse);
|
||||
rpc LinkBranch(LinkBranchRequest) returns (LinkBranchResponse);
|
||||
// GitCredential returns a short-lived credential for cloning and pushing one
|
||||
// repository, and the identity commits through it should carry. A forge that
|
||||
// authenticates git with its configured token answers UNIMPLEMENTED.
|
||||
rpc GitCredential(GitCredentialRequest) returns (GitCredentialResponse);
|
||||
// ParseWebhook decodes one webhook delivery the host has already
|
||||
// authenticated. A delivery that is not an event the host acts on returns no
|
||||
// event; an undecodable body is INVALID_ARGUMENT.
|
||||
@@ -242,6 +246,15 @@ message AcceptInvitationsResponse {}
|
||||
message VerifyPushRequest { RepoRef repo = 1; }
|
||||
message VerifyPushResponse {}
|
||||
|
||||
message GitCredentialRequest { RepoRef repo = 1; }
|
||||
message GitCredentialResponse {
|
||||
string username = 1;
|
||||
string token = 2;
|
||||
google.protobuf.Timestamp expires_at = 3;
|
||||
string commit_name = 4;
|
||||
string commit_email = 5;
|
||||
}
|
||||
|
||||
message GetRepoArchiveRequest {
|
||||
RepoRef repo = 1;
|
||||
string ref = 2;
|
||||
|
||||
Reference in new issue
Block a user