* Add PR review automation workflow and script closes #559 * Improve PR review automation with better error handling and permissions * Update PR review automation to use pull_request_target event for improved security
34 lines
729 B
YAML
34 lines
729 B
YAML
name: PR Review Automation
|
|
|
|
on:
|
|
pull_request_target:
|
|
paths:
|
|
- README.md
|
|
- db/**
|
|
types: [opened, synchronize]
|
|
|
|
jobs:
|
|
pr-review-automation:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
issues: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.base.ref }}
|
|
|
|
- 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 }}
|