Skip to content

feat: add branch protection workflow for main#7

Closed
gamechanger1s wants to merge 3 commits into
mainfrom
feat/branch-protection
Closed

feat: add branch protection workflow for main#7
gamechanger1s wants to merge 3 commits into
mainfrom
feat/branch-protection

Conversation

@gamechanger1s
Copy link
Copy Markdown
Contributor

Summary

  • Adds branch-protection.yml to protect the main branch from direct commits
  • Mirrors the same pattern used across all AGO repos
  • On a direct push to main: reverts the commit automatically and sends a Slack alert
  • Merge commits (PRs) are allowed through — only direct pushes are blocked

Test plan

  • Confirm prod environment exists in repo settings with SLACK_WEBHOOK_URL secret
  • Attempt a direct push to main — should be reverted and Slack notified
  • Merge a PR to main — pipeline should pass through without reverting

🤖 Generated with Claude Code

gamechanger1s and others added 3 commits May 29, 2026 17:35
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gamechanger1s gamechanger1s deleted the feat/branch-protection branch May 29, 2026 14:49
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