Skip to content

Commit 16e352c

Browse files
add protected branch plugin
1 parent 6245143 commit 16e352c

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- run: yarn build && yarn lerna run bundle --scope=auto
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
PROTECTED_BRANCH_REVIEWER_TOKEN: ${{ secrets.GH_TOKEN }}
3435
NPM_TOKEN: ${{ secrets.CANARY_NPM_TOKEN }}
3536

3637
pr-check:

auto.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ const brewOptions: IBrewPluginOptions = {
2222
name: "auto",
2323
};
2424

25-
// const ghPagesOptions: IGhPagesPluginOptions = {
26-
// buildCommand: "yarn docs:build",
27-
// dir: "docs/out",
28-
// };
29-
//
30-
3125
/** Auto configuration */
3226
export default function rc(): AutoRc {
3327
return {
@@ -47,7 +41,13 @@ export default function rc(): AutoRc {
4741
"./scripts/auto-update-curl-version.js",
4842
["all-contributors", allContributorsOptions],
4943
["brew", brewOptions],
50-
// ["gh-pages", ghPagesOptions],
44+
[
45+
"protected-branch",
46+
{
47+
releaseTemporaryBranchPrefix: "protected-release-",
48+
requiredStatusChecks: ["WIP", "build", "test", "lint"],
49+
},
50+
],
5151
],
5252
labels: [
5353
{

0 commit comments

Comments
 (0)