Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuk committed Aug 23, 2022
1 parent 41c0b37 commit a463e98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/scripts/github-branch-protection.bash
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ function apply_branch_protection_setting() {
gh api --method PUT -H "Accept: application/vnd.github+json" --input - repos//${REPO}/branches/${BRANCH}/protection
}

function enfore_admins_off() {
function enforce_admins_off() {
get_current_branch_protection_setting | jq '.enforce_admins = false' | apply_branch_protection_setting
}

export -f enfore_admins_off
export -f enforce_admins_off

function enfore_admins_on() {
function enforce_admins_on() {
get_current_branch_protection_setting | jq '.enforce_admins = true' | apply_branch_protection_setting
}

export -f enfore_admins_on
export -f enforce_admins_on

0 comments on commit a463e98

Please sign in to comment.