diff --git a/client/client.go b/client/client.go index 574d8f6..cc11530 100644 --- a/client/client.go +++ b/client/client.go @@ -19,6 +19,7 @@ type GithubridgeClient interface { AddLabel(ctx context.Context, req *pb.AddLabelRequest) (*pb.AddLabelResponse, error) DeleteLabel(ctx context.Context, req *pb.DeleteLabelRequest) (*pb.DeleteLabelResponse, error) GetComments(ctx context.Context, req *pb.GetCommentsRequest) (*pb.GetCommentsResponse, error) + GetRepos(ctx context.Context, req *pb.GetReposRequest) (*pb.GetReposResponse, error) } type rClient struct { @@ -81,3 +82,8 @@ func (c *rClient) DeleteLabel(ctx context.Context, req *pb.DeleteLabelRequest) ( nctx := metadata.AppendToOutgoingContext(context.Background(), "auth-token", string(c.passkey)) return c.gClient.DeleteLabel(nctx, req) } + +func (c *rClient) GetRepos(ctx context.Context, req *pb.GetReposRequest) (*pb.GetReposResponse, error) { + nctx := metadata.AppendToOutgoingContext(context.Background(), "auth-token", string(c.passkey)) + return c.gClient.GetRepos(nctx, req) +} diff --git a/client/testclient.go b/client/testclient.go index d54f36b..8ed7bf5 100644 --- a/client/testclient.go +++ b/client/testclient.go @@ -54,6 +54,10 @@ func (c *TestClient) GetIssue(ctx context.Context, req *pb.GetIssueRequest) (*pb return &pb.GetIssueResponse{}, nil } +func (c *TestClient) GetRepos(ctx context.Context, req *pb.GetReposRequest) (*pb.GetReposResponse, error) { + return &pb.GetReposResponse{}, nil +} + func (c *TestClient) GetLabels(ctx context.Context, req *pb.GetLabelsRequest) (*pb.GetLabelsResponse, error) { return &pb.GetLabelsResponse{Labels: c.labels[fmt.Sprintf("%v-%v-%v", req.GetUser(), req.GetRepo(), req.GetId())]}, nil }