mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-30 17:32:26 +00:00
- Add `scripts/automated-pr-review.mjs` to run format, lint, tests, and security checks. - Add `.github/workflows/agent-pr-review.yml` to trigger the review on PRs. - Script flags sensitive file changes (crypto/storage) and posts comments. - Script attempts to commit formatting micro-fixes if permissions allow.
35 lines
925 B
YAML
35 lines
925 B
YAML
name: Automated Agent PR Review
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
agent-review:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.ref }}
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'npm'
|
|
|
|
- name: Run Agent Review
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
GITHUB_BASE_REF: ${{ github.base_ref }}
|
|
GITHUB_BASE_REPO_URL: ${{ github.event.pull_request.base.repo.clone_url }}
|
|
run: node scripts/automated-pr-review.mjs
|