Skip to content

[ISSUE #557]🔨Update automerge.yml #25

[ISSUE #557]🔨Update automerge.yml

[ISSUE #557]🔨Update automerge.yml #25

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.GITHUB_TOKEN }}
script: |
const { owner, repo, number: issue_number } = context.issue;
const commentBody = "Please review this PR.";
github.rest.issues.createComment({
owner,
repo,
issue_number,
body: commentBody
});