1.4.1 • Published 6 months ago
pull-request-vir v1.4.1
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 -D pull-request-vir
Create a config file somewhere in the repo (not within source code).
- The config file can be named anything but must be JavaScript or TypeScript.
- If using TypeScript, import the
Config
type into the config file. Create a config object that matches that type and export it 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, codeOwners: { paths: [/^src\/backend\//], }, }, ], };
Define 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: # pull-request-vir needs the repo checked out so it 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 watch the magic.
1.4.1
6 months ago
1.4.0
6 months ago
1.3.1
6 months ago
1.3.0
6 months ago
1.2.0
8 months ago
1.1.1
12 months ago
1.1.0
1 year ago
1.1.3
11 months ago
1.1.2
12 months ago
1.0.0
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago
0.0.20
1 year ago
0.0.17
1 year ago
0.0.18
1 year ago
0.0.19
1 year ago
0.0.10
1 year ago
0.0.11
1 year ago
0.0.12
1 year ago
0.0.13
1 year ago
0.0.14
1 year ago
0.0.15
1 year ago
0.0.16
1 year ago
0.0.7
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago
0.0.0
2 years ago