Skip to content

Commit 1242177

Browse files
authored
Update check-branch.yml
1 parent 2b61924 commit 1242177

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/check-branch.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ jobs:
77
check_branch:
88
runs-on: ubuntu-latest
99
steps:
10+
- name: Comment PR
11+
if: github.base_ref == 'main' && github.head_ref != 'next'
12+
uses: thollander/actions-comment-pull-request@v2
13+
with:
14+
message: |
15+
We regret to inform you that you are currently not able to merge your changes into the master branch due to restrictions applied by our SRE team. To proceed with merging your changes, we kindly request that you create a pull request from the next branch. Our team will then review the changes and work with you to ensure a successful merge into the master branch.
1016
- name: Check branch
1117
if: github.base_ref == 'main' && github.head_ref != 'next'
1218
run: |
13-
echo "ERROR: You can only merge to main from next."
19+
echo "ERROR: YWe regret to inform you that you are currently not able to merge your changes into the master branch due to restrictions applied by our SRE team. To proceed with merging your changes, we kindly request that you create a pull request from the next branch. Our team will then review the changes and work with you to ensure a successful merge into the master branch."
1420
exit 1

0 commit comments

Comments
 (0)