Skip to content

Workflow file for this run

name: Auto Comment on PR
on:
pull_request_target:
types: [ opened, synchronize ]
branches: [main]
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.GITHUB_TOKEN }}
script: |
const { owner, repo, number: issue_number } = context.issue;
const commentBody = "🚀Thanks for your contribution🎉, CodeRabbit will review your code.🔥";
github.rest.issues.createComment({
owner,
repo,
issue_number,
body: commentBody
});