Use a literal for branch name

Signed-off-by: Tejas Kumar <tejask@spotify.com>
This commit is contained in:
Tejas Kumar
2021-05-19 07:31:52 +02:00
parent e606761260
commit 80a2bdc0be
@@ -82,11 +82,6 @@ export const enableBranchProtectionOnDefaultRepoBranch = async ({
owner,
isRetry = false,
}: BranchProtectionOptions): Promise<void> => {
const { data: repo } = await client.repos.get({
owner,
repo: repoName,
});
try {
await client.repos.updateBranchProtection({
mediaType: {
@@ -101,7 +96,7 @@ export const enableBranchProtectionOnDefaultRepoBranch = async ({
},
owner,
repo: repoName,
branch: repo.default_branch,
branch: 'master',
required_status_checks: { strict: true, contexts: [] },
restrictions: null,
enforce_admins: true,