Skip to content

Commit 52d3b3f

Browse files
committed
[ core/pre-review ] DRAFT: github-actions pre review init
1 parent d6cc6f9 commit 52d3b3f

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/pre-review.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: PR Pre-review
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
env:
10+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11+
SKIP_REST: false
12+
13+
jobs:
14+
pre-review:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.head_ref }}
21+
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: 'npm'
26+
27+
- name: check author
28+
run: echo $GITHUB_ACTOR_ID

generators/pre-review.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const fs = require('node:fs/promise');
2+
const path = require('node:path');
3+
4+
const x = fs.read

0 commit comments

Comments
 (0)