Files
public-apis/.github/workflows/pr-review-automation.yml
Juan Diaz 274218e3fb Improve PR Review Automation with better error handling and permissions (#563)
* Add PR review automation workflow and script

closes #559

* Improve PR review automation with better error handling and permissions
2025-07-11 16:04:20 -04:00

33 lines
712 B
YAML

name: PR Review Automation
on:
pull_request:
paths:
- README.md
- db/**
types: [opened, synchronize]
jobs:
pr-review-automation:
runs-on: ubuntu-latest
# Add permissions for the GITHUB_TOKEN to comment on PRs
permissions:
contents: read
pull-requests: write
issues: write
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install deps (if needed)
run: npm install @actions/github
- name: Run PR review automation
run: node scripts/pr-review-automation.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}