Skip to content

Add release automation + tighten enforce-main-source against forks#1

Merged
dwoodruff83 merged 2 commits into
mainfrom
staging
Apr 27, 2026
Merged

Add release automation + tighten enforce-main-source against forks#1
dwoodruff83 merged 2 commits into
mainfrom
staging

Conversation

@dwoodruff83

Copy link
Copy Markdown
Owner

Two related infra additions for the staging→main flow:

  1. release.yml — when a vX.Y.Z tag is pushed, automatically create a GitHub Release with auto-generated notes. Version 0.x.x tags are pre-releases; 1.x.x+ are full releases.

  2. enforce-main-source.yml tightening — also rejects PRs from forks. Previously the workflow would pass if a fork named their branch staging; now the head-repo must equal this repo. Combined with the collaborator list (only repo write-access can push to this repo's staging), this restricts main merges to people the maintainer has explicitly added.

Test plan

  • Release workflow file is valid YAML
  • enforce-main-source.yml syntax check
  • Workflow runs on this PR (will become visible on PR creation)
  • Status check check-source-branch passes (PR source IS staging in this repo)

dwoodruff83 and others added 2 commits April 26, 2026 22:22
When a vX.Y.Z tag is pushed, create a GitHub Release with auto-generated
notes. Version 0.x.x tags are marked as pre-releases; 1.x.x+ as full
releases.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds a head-repo check so PRs from forks (where the contributor named
their branch 'staging') don't pass the source-branch gate. Combined
with the collaborator list controlling who can push to this repo's
staging, this restricts main merges to repo-write-access only.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dwoodruff83 dwoodruff83 merged commit ff7a88f into main Apr 27, 2026
1 check passed
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.

1 participant