You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/autoComment.yaml
+53-13Lines changed: 53 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -14,17 +14,57 @@ jobs:
14
14
issues: write
15
15
pull-requests: write
16
16
steps:
17
-
- name: Auto Comment
18
-
uses: actions/github-script@v7
17
+
- name: Checkout repository
18
+
uses: actions/checkout@v3
19
+
20
+
- name: Add Comment on Pull Request
21
+
if: ${{ github.event_name == 'pull_request' }}
22
+
uses: peter-evans/create-or-update-comment@v3
19
23
with:
20
-
github-token: ${{secrets.GITHUB_TOKEN}}
21
-
script: |
22
-
const issueComment = context.payload.issue
23
-
? `Thank you for opening an issue, @${context.payload.issue.user.login}! will review it soon. Meanwhile you can describe & share your approach on how to resolve this issue.`
24
-
: `Thank you for creating this pull request, @${context.payload.pull_request.user.login}! A reviewer will check it shortly.`;
0 commit comments