Skip to content

Commit 982c9d2

Browse files
Fix: Auto comment & Review on PR workflow (#65)
Signed-off-by: Arya Pratap Singh <notaryasingh@gmail.com>
1 parent 14f9513 commit 982c9d2

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/autoComment.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,29 @@ jobs:
4545
The team will review your PR shortly. If you have any questions, feel free to ask here!
4646
Happy Coding! 🚀
4747
48+
# Add labels to the pull request
49+
- name: Add Labels to Pull Request
50+
if: ${{ github.event_name == 'pull_request' }}
51+
uses: actions-ecosystem/action-add-labels@v1
52+
with:
53+
github_token: ${{ secrets.GITHUB_TOKEN }}
54+
labels: 'Under Review'
55+
number: ${{ github.event.pull_request.number }}
56+
57+
# Request a review for the pull request
58+
- name: Request Review on Pull Request
59+
if: ${{ github.event_name == 'pull_request' }}
60+
uses: actions/github-script@v6
61+
with:
62+
script: |
63+
github.rest.pulls.requestReviewers({
64+
owner: context.repo.owner,
65+
repo: context.repo.repo,
66+
pull_number: context.payload.pull_request.number,
67+
reviewers: ['yashksaini-coder']
68+
})
69+
70+
# Add a comment to the issue
4871
- name: Add Comment on Issue
4972
if: ${{ github.event_name == 'issues' }}
5073
uses: peter-evans/create-or-update-comment@v3

0 commit comments

Comments
 (0)