Skip to content

chore: point renovate.json at next, add main-branch guard#178

Merged
ss-o merged 1 commit into
nextfrom
feature-177
Jul 24, 2026
Merged

chore: point renovate.json at next, add main-branch guard#178
ss-o merged 1 commit into
nextfrom
feature-177

Conversation

@ss-o

@ss-o ss-o commented Jul 24, 2026

Copy link
Copy Markdown
Member

Closes #177.

Same root cause found and fixed in z-shell/zsh-eza this session:

This PR only adds the check. Wiring it into main's ruleset as a required status check is a follow-up, once the check has run at least once on a real PR against main.

Test plan

  • renovate.json validated with python3 -m json.tool
  • Workflow YAML validated with python3 -c "import yaml; yaml.safe_load(...)"

Same root cause found and fixed in z-shell/zsh-eza this session:
renovate.json had no baseBranches override, so Renovate defaulted to
main, bypassing next the same way several past PRs (#171, #150-156)
did. dependabot.yml was already fixed for this in #172; this brings
Renovate in line with it and ADR-0008 (z-shell/.github).

Also adds a required-status-check workflow that fails a PR targeting
main unless its head branch is next or matches hotfix-*.

Closes #177
Copilot AI review requested due to automatic review settings July 24, 2026 08:09
@ss-o
ss-o merged commit 82eb036 into next Jul 24, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns Renovate and repository workflow enforcement with the repo’s next -> main branching model by targeting Renovate PRs at next and adding an automated guard to prevent most direct PRs into main.

Changes:

  • Configure Renovate to open PRs against next via baseBranches.
  • Add a GitHub Actions workflow that fails PRs targeting main unless they originate from next or hotfix-*.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
renovate.json Adds baseBranches: ["next"] so Renovate targets the integration branch instead of defaulting to main.
.github/workflows/main-branch-guard.yml Introduces a PR guard workflow intended to block non-next/hotfix-* branches from targeting main.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +4 to +7
on:
pull_request:
branches: [main]
types: [opened, reopened, synchronize, edited]
ss-o added a commit that referenced this pull request Jul 24, 2026
Promotes next to main: #176's zi-identity/checksum fix and #178 (renovate.json baseBranches, main-branch-guard workflow).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants