We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fff4937 + 86e8e53 commit 53bb203Copy full SHA for 53bb203
.github/workflows/COMMENT_TARGETS_MAIN.yml
@@ -0,0 +1,24 @@
1
+name: COMMENT_TARGETS_MAIN
2
+on:
3
+ pull_request:
4
+ types:
5
+ - opened
6
+ branches:
7
+ - main
8
+permissions:
9
+ pull-requests: write
10
+jobs:
11
+ comment:
12
+ name: Comment on targeting main branch
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
16
+ steps:
17
+ - name: Create comment
18
+ env:
19
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20
+ GH_REPO: ${{ github.repository }}
21
+ NUMBER: ${{ github.event.number }}
22
+ BODY: |
23
+ This pull request targets the `main` branch. Please target `main` for bug fixes only. Target `develop` for regular feature development.
24
+ run: gh issue comment "$NUMBER" --body "$BODY"
0 commit comments