diff --git a/changelog.d/fixed-506-netlify-ignore-bot-lane.md b/changelog.d/fixed-506-netlify-ignore-bot-lane.md new file mode 100644 index 0000000..f3a7fa0 --- /dev/null +++ b/changelog.d/fixed-506-netlify-ignore-bot-lane.md @@ -0,0 +1,3 @@ +- Skip Netlify deploy previews for the `bot/*` lane so the daily Hive docs + mirror resync PR no longer requests a deploy preview on every run + (hivecommons/docs#506). diff --git a/netlify.toml b/netlify.toml index 40b27f9..f053641 100644 --- a/netlify.toml +++ b/netlify.toml @@ -50,7 +50,7 @@ # CI checks Bot-authored PR heads against this exact rule (#439). Add new bot # lanes here when that gate fails; prefixes also match human-authored branches. [context.deploy-preview] - ignore = "case \"${HEAD:-$BRANCH}\" in arch/*|guide/*|scanner/*|quality/*|sec/*|outreach/*|ops/*|automation/*|hive/*|dependabot/*|reviewer/*|feat/*|fix/*|generated/*|docs-rot-*) exit 0;; *) exit 1;; esac" + ignore = "case \"${HEAD:-$BRANCH}\" in arch/*|guide/*|scanner/*|quality/*|sec/*|outreach/*|ops/*|automation/*|hive/*|dependabot/*|reviewer/*|feat/*|fix/*|generated/*|bot/*|docs-rot-*) exit 0;; *) exit 1;; esac" # Enable branch deploys for documentation versioning # Version branches follow the pattern: docs/{version} diff --git a/scripts/check-deploy-preview-ignore.test.ts b/scripts/check-deploy-preview-ignore.test.ts index d469394..beaba83 100644 --- a/scripts/check-deploy-preview-ignore.test.ts +++ b/scripts/check-deploy-preview-ignore.test.ts @@ -39,6 +39,7 @@ describe("deploy-preview drift gate", () => { "feat/topic", "fix/topic", "generated/topic", + "bot/hive-docs-refresh", "docs-rot-weekly", ])("accepts a Bot PR covered by the real rule: %s", head => { expect(main({ PR_AUTHOR_TYPE: "Bot", PR_HEAD_REF: head })).toBe(0);