Skip to content

[ISSUE #545]🔧Update label-on-approval.yml #28

[ISSUE #545]🔧Update label-on-approval.yml

[ISSUE #545]🔧Update label-on-approval.yml #28

Workflow file for this run

name: Auto Comment on PR
on:
pull_request:
types: [ opened, synchronize ]
jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create a comment
uses: actions/github-script@v7
with:
github-token: ${{ secrets.PAT_TOKEN }}
script: |
const { owner, repo, number: issue_number } = context.issue;
const commentBody = "@coderabbitai review Please review this PR.";
github.rest.issues.createComment({
owner,
repo,
issue_number,
body: commentBody
});