From 0fc22dcfd96507dbd735cf17b2f1f57195dfac2a Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Sat, 4 Sep 2021 06:50:12 +0900 Subject: [PATCH] fix the param for CreateAppAccessToken --- provider/github-app-token/github-app-token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/github-app-token/github-app-token.go b/provider/github-app-token/github-app-token.go index 0b0fbbee..118e11fd 100644 --- a/provider/github-app-token/github-app-token.go +++ b/provider/github-app-token/github-app-token.go @@ -152,7 +152,7 @@ func (h *Handler) handle(ctx context.Context, req *requestBody) (*responseBody, return nil, fmt.Errorf("failed to get resp's installation: %w", err) } token, err := h.github.CreateAppAccessToken(ctx, inst.ID, &github.CreateAppAccessTokenRequest{ - Repositories: []string{owner + "/" + repo}, + Repositories: []string{repo}, }) if err != nil { return nil, fmt.Errorf("failed create access token: %w", err)