From f928a8f9bfcf1ecd84404ca2c0d62ab7b5be8fc4 Mon Sep 17 00:00:00 2001 From: Andrea Falzetti Date: Fri, 16 Jul 2021 09:44:53 +0100 Subject: [PATCH] chore: remove comment Signed-off-by: Andrea Falzetti --- .../src/scaffolder/actions/builtin/ci/githubActionsDispatch.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/ci/githubActionsDispatch.ts b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/ci/githubActionsDispatch.ts index 99e745f852..d7a5a26ccb 100644 --- a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/ci/githubActionsDispatch.ts +++ b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/ci/githubActionsDispatch.ts @@ -91,8 +91,6 @@ export function createGithubActionsDispatchAction(options: { ); } - // TODO(blam): Consider changing this API to have owner, repo interface instead of URL as the it's - // needless to create URL and then parse again the other side. const { token } = await credentialsProvider.getCredentials({ url: `https://${host}/${encodeURIComponent(owner)}/${encodeURIComponent( repoName, @@ -104,6 +102,7 @@ export function createGithubActionsDispatchAction(options: { `No token available for host: ${host}, with owner ${owner}, and repo ${repoName}`, ); } + const client = new Octokit({ auth: token, baseUrl: integrationConfig.config.apiBaseUrl,