Skip to content

The fastest browser for AI agents to run browser automation, built for sharing your logged-in browser state with your AI agents, like Codex or Claude Code, without disturbing you. Zero cost, zero config.

ci: allow hotfix/* and docs/* branches as PR sources into main

qddegtya5a3b1d400484
diff --git a/.github/workflows/main-pr-source.yml b/.github/workflows/main-pr-source.yml
index 97b7e8b..8a820de 100644
--- a/.github/workflows/main-pr-source.yml
+++ b/.github/workflows/main-pr-source.yml
@@ -9,11 +9,19 @@ jobs:
require-dev-source:
runs-on: ubuntu-latest
steps:
- - name: Require dev branch
+ - name: Require dev or hotfix/docs branch
env:
HEAD_REF: ${{ github.head_ref }}
run: |
- if [ "$HEAD_REF" != "dev" ]; then
- echo "Pull requests into main must come from the dev branch."
- exit 1
- fi
+ # Regular releases flow dev -> main. hotfix/* and docs/* are the
+ # sanctioned fast lanes for fixes that cannot wait for a release
+ # and must not drag unfinished work from dev into main.
+ case "$HEAD_REF" in
+ dev|hotfix/*|docs/*)
+ echo "Allowed source branch: $HEAD_REF"
+ ;;
+ *)
+ echo "Pull requests into main must come from dev, hotfix/*, or docs/*."
+ exit 1
+ ;;
+ esac