Skip to content

PR Automation

PR Automation #65

Workflow file for this run

name: PR Automation
on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
pull_request_review:
types: [submitted, edited, dismissed]
workflow_run:
workflows: ["CI"]
types: [completed]
schedule:
- cron: '0 0 * * *' # Run once a day at midnight UTC
permissions:
contents: read
issues: write
pull-requests: write
statuses: read
checks: read
jobs:
automation:
name: Run PR Automation
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Run PR Automation Script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_EVENT_NAME: ${{ github.event_name }}
run: node .github/scripts/pr-automation.js