Skip to content

Commit

Permalink
docs: Add comment why we cannot create branch protection for non-exis…
Browse files Browse the repository at this point in the history
…itng branches "next", "beta", and "*.x"

ping #14
  • Loading branch information
gr2m committed May 19, 2020
1 parent 5687ddd commit 03b9e3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/create-branch-protection.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ module.exports = createBranchProtection;
async function createBranchProtection(octokit, { owner, repo }) {
await octokit.request("PUT /repos/:owner/:repo/branches/:branch/protection", {
mediaType: {
previews: ["luke-cage"]
previews: ["luke-cage"],
},
owner,
repo,
branch: "master",
enforce_admins: null,
required_pull_request_reviews: {
dismiss_stale_reviews: true
dismiss_stale_reviews: true,
},
required_status_checks: {
strict: false,
contexts: ["WIP", "Pika CI", "test (14)", "test (12)", "test (10)"]
contexts: ["WIP", "Pika CI", "test (14)", "test (12)", "test (10)"],
},
restrictions: null
restrictions: null,
});
}

0 comments on commit 03b9e3d

Please sign in to comment.