Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/alert-master-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Alert Master PRs

on:
pull_request:
branches:
- master

jobs:
alert:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Comment on PR
env:
COMMENT_BODY: |
# Master Branch Alert

⚠️ This PR is targeting the `master` branch. ⚠️
Please ensure that this is intentional, as changes to the master branch will go directly to production upon merge.

Pull requests should be targeting `develop` to add new work.
run: |
gh pr comment ${{ github.event.pull_request.number }} --body "${{ env.COMMENT_BODY }}"