@biffo/cli 0.231.3 → 0.232.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7862,7 +7862,10 @@ async function createAndPushStandaloneRepo(org, names, destDir, options, deps) {
|
|
|
7862
7862
|
reason: `No status-check contexts could be derived from ${ciPath}, so there was nothing to require. Protection with an empty context list reads as configured while admitting every PR, so none was applied.`
|
|
7863
7863
|
});
|
|
7864
7864
|
} else {
|
|
7865
|
-
await github.protectSingleBranch(org, names.dist, "dev", contexts);
|
|
7865
|
+
const outcome = await github.protectSingleBranch(org, names.dist, "dev", contexts);
|
|
7866
|
+
if (outcome.status === "applied") {
|
|
7867
|
+
await github.sealBranchProtection(org, names.dist, ["dev"]);
|
|
7868
|
+
}
|
|
7866
7869
|
}
|
|
7867
7870
|
if (options.register !== false) {
|
|
7868
7871
|
await registerInRegistrySources(names, cloneUrl, token, deps);
|