Skip to content

ci: point workflow branch refs at master - #1

Closed
BartoszBlizniak wants to merge 1 commit into
initfrom
fix/branch-refs-master
Closed

ci: point workflow branch refs at master#1
BartoszBlizniak wants to merge 1 commit into
initfrom
fix/branch-refs-master

Conversation

@BartoszBlizniak

Copy link
Copy Markdown
Member

Updates the workflow branch references from main to master ahead of the default-branch rename (initmaster, pending org admin).

  • test.yml / zizmor.yml: push trigger branch
  • release.yml: tag-ancestry gate

Opening this PR also gives the Test and Zizmor workflows their first real run via the pull_request trigger.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 7, 2026 10:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates GitHub Actions workflow branch references from main to master in preparation for an upcoming default-branch rename, affecting CI triggers and the release tag-ancestry gate.

Changes:

  • Switch push.branches triggers in Test and Zizmor workflows to master.
  • Update the Release workflow’s “tag is on branch” verification to use master (including its error message).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/zizmor.yml Changes the push-trigger branch filter from main to master.
.github/workflows/test.yml Changes the push-trigger branch filter from main to master.
.github/workflows/release.yml Updates the tag ancestry gate to fetch/verify against origin/master instead of origin/main.

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

Comment on lines 6 to +7
branches:
- main
- master
Comment on lines 8 to +9
branches:
- main
- master
Comment on lines 30 to 35
set -eu
git fetch origin main --quiet
if ! git merge-base --is-ancestor "$GITHUB_SHA" origin/main; then
echo "refusing to release: $GITHUB_SHA is not an ancestor of origin/main" >&2
git fetch origin master --quiet
if ! git merge-base --is-ancestor "$GITHUB_SHA" origin/master; then
echo "refusing to release: $GITHUB_SHA is not an ancestor of origin/master" >&2
exit 1
fi
@BartoszBlizniak
BartoszBlizniak deleted the fix/branch-refs-master branch July 7, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants