Skip to content

Commit

Permalink
fix: remove leading slash
Browse files Browse the repository at this point in the history
Fixes 404 (the URL is https://api.github.com//teams/..., which is incorrect due to the double slash).
  • Loading branch information
sqs committed Apr 19, 2020
1 parent f7769d7 commit 0ed004b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async function main(): Promise<void> {
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',
},
Expand Down

0 comments on commit 0ed004b

Please sign in to comment.