We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 399c33f commit 143d4f8Copy full SHA for 143d4f8
.github/workflows/comment-PR.yml
@@ -1,19 +1,15 @@
1
name: Comment on Pull Request
2
-
3
on:
4
- pull_request_target:
5
- types: [opened, reopened]
6
+ pull_request:
+ types: [opened]
+permissions:
+ pull-requests: write
7
jobs:
8
- comment:
+ build:
9
+ name: Post welcome comment
10
runs-on: ubuntu-latest
11
steps:
- - uses: actions/github-script@v6
12
- with:
13
- script: |
14
- github.rest.issues.createComment({
15
- issue_number: context.issue.number,
16
- owner: context.repo.owner,
17
- repo: context.repo.repo,
18
- body: 'Hi!😃 \n Thanks for this PR!'
19
- })
+ - run: gh pr comment $PR_URL --body "Welcome to the repository!"
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ PR_URL: ${{ github.event.pull_request.html_url }}
0 commit comments