From 0ed004bee62c9bef0f55135be7b391bf5959f163 Mon Sep 17 00:00:00 2001 From: Quinn Slack Date: Sat, 18 Apr 2020 21:06:41 -0700 Subject: [PATCH] fix: remove leading slash Fixes 404 (the URL is https://api.github.com//teams/..., which is incorrect due to the double slash). --- src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 66474863..39f6b491 100755 --- a/src/cli.ts +++ b/src/cli.ts @@ -135,7 +135,7 @@ async function main(): Promise { console.log('🔑 Giving admin access to all team members') // This is the GitHub team in the "sourcegraph" org named "Team"; see // https://api.github.com/orgs/sourcegraph/teams. - await githubClient.put(`/teams/626894/repos/sourcegraph/${repoName}`, { + await githubClient.put(`teams/626894/repos/sourcegraph/${repoName}`, { json: { permission: 'admin', },