1.0.0 • Published 5 days ago
pull-request-vir v1.0.0
pull-request-vir
GitHub Action for pull requests.
type docs: https://electrovir.github.io/pull-request-vir
usage
- install this package into whatever repo you're planning to use it
npm i pull-request-vir
create a config using that import
- the config file can be named anything but must be JavaScript or TypeScript
- import
definePullRequestVirConfig
into the config file export its output as the default output:
import type {Config} from 'pull-request-vir'; export const config: Config = { // see type definition for full config options assignToAuthor: true, blockNoMerge: true, reviewRules: [ { autoAdd: true, users: [ 'electrovir', 'another-user', 'ghost', ], required: 2, requiredIf: [/^src\/backend\//], }, ], };
create a GitHub Actions workflow that uses
pull-request-vir
:# recommended triggers on: pull_request_review: types: [submitted, dismissed] pull_request: types: [ opened, reopened, labeled, edited, ready_for_review, review_requested, review_request_removed, ] jobs: merge-checks: runs-on: ubuntu-latest steps: # you must checkout your repo so that pull-request-vir can read your config - uses: actions/checkout@v4.1.1 - uses: electrovir/pull-request-vir@latest with: config_file: relative/path/to/config.ts
push to GitHub and (hopefully) watch the magic
1.0.0
5 days ago
0.1.3
6 days ago
0.1.2
13 days ago
0.1.1
20 days ago
0.1.0
27 days ago
0.0.20
28 days ago
0.0.17
28 days ago
0.0.18
28 days ago
0.0.19
28 days ago
0.0.10
1 month ago
0.0.11
1 month ago
0.0.12
1 month ago
0.0.13
1 month ago
0.0.14
1 month ago
0.0.15
1 month ago
0.0.16
1 month ago
0.0.7
6 months ago
0.0.3
6 months ago
0.0.2
6 months ago
0.0.1
6 months ago
0.0.0
7 months ago