Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/CODEOWNERS

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
run: |
bazel build //:entry_points_manifest
pnpm check-entry-point-setup $(bazel info bazel-bin)/entry_points_manifest.json
- name: Check OWNERS file
run: pnpm ownerslint
- name: Validate pull approve configuration
run: pnpm ng-dev pullapprove verify
- name: Check for component id collisions
run: pnpm detect-component-id-collisions
- name: Check style lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
run: |
bazel build //:entry_points_manifest
pnpm check-entry-point-setup $(bazel info bazel-bin)/entry_points_manifest.json
- name: Check OWNERS file
run: pnpm ownerslint
- name: Validate pull approve configuration
run: pnpm ng-dev pullapprove verify
- name: Check for component id collisions
run: pnpm detect-component-id-collisions
- name: Check style lint
Expand Down
107 changes: 107 additions & 0 deletions .pullapprove.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
version: 3

# Add users here if they're temporarily unavailable.
#availability:
# users_unavailable: []

# Meta field that goes unused by PullApprove to allow for defining aliases to be
# used throughout the config.
meta:
no-groups-above-this-active: &no-groups-above-this-active len(groups.active.exclude("components-team")) == 0

defaults: &defaults
reviews:
# Authors provide their approval implicitly, this approval allows for a reviewer
# from a group not to need a review specifically for an area of the repository
# they own. This is coupled with the `required-minimum-review` group which requires
# that all PRs are reviewed by at least one team member who is not the author of
# the PR.
author_value: 1

# turn on 'draft' support
# https://docs.pullapprove.com/config/github-api-version/
# https://developer.github.com/v3/previews/#draft-pull-requests
github_api_version: 'shadow-cat-preview'

# https://docs.pullapprove.com/config/overrides/
# Note that overrides are processed in order.
overrides:
# For PRs which are still being worked on, either still in draft mode or indicated through WIP in
# title or label, PullApprove stays in a pending state until its ready for review.
- if: "draft or 'WIP' in title or 'PR state: WIP' in labels"
status: pending
explanation: 'Waiting to send reviews as PR is WIP'
# Disable PullApprove on specific PRs by adding the `PullApprove: disable` label
- if: "'PullApprove: disable' in labels"
status: success
explanation: "PullApprove skipped because of 'PullApprove: disable' label"
# If no file matching based groups are active, report this pull request as failing. Most likely,
# the PR author would need to update the PullApprove config, or create new group.
- if: len(groups.active) == 0
status: failure
explanation: 'At least one group must match this PR. Please update an existing review group, or create a new group.'

groups:
components-infra:
<<: *defaults
conditions:
- author not in ["angular-robot"]
- >
contains_any_globs(files, [
'.bazel_fix_commands.json',
'.bazelignore',
'.bazelrc',
'.bazelversion',
'.firebaserc',
'.git-blame-ignore-revs',
'.gitignore',
'.npmrc',
'.nvmrc',
'.pullapprove.yml',
'firebase.json',
'LICENSE',
'renovate.json',
'tsconfig.json',
'.github/**/{*,.*}',
'.husky/**/{*,.*}',
'.ng-dev/**/{*,.*}',
'.vscode/**/{*,.*}',
'scripts/**/{*,.*}',
'test/**/{*,.*}',
'tools/**/{*,.*}',
])
reviews:
request: 1 # Request at least one review
required: 1 # Require that all PRs have approval from at least one of the users in the group
author_value: 0 # The author of the PR cannot provide an approval for themself
reviewers:
users:
- crisbeto
- devversion
- andrewseguin
- josephperrott

components-team:
<<: *defaults
conditions:
- *no-groups-above-this-active
- >
contains_any_globs(files, [
'**/{.*,*}/**',
'**/{.*,*}',
])
reviews:
request: 2 # Request at least two reviews
required: 1 # Require that all PRs have approval from at least one of the users in the group
author_value: 0 # The author of the PR cannot provide an approval for themself
reviewers:
users:
- adolgachev
- crisbeto
- mmalerba
- andrewseguin
- wagnermaciel
- tjshiu
- ok7sai
- ~devversion
- ~josephperrott
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@
"test-local": "pnpm -s test --local",
"test-firefox": "pnpm -s test --firefox",
"test-tsec": "pnpm bazelisk test //... --build_tag_filters=tsec --test_tag_filters=tsec",
"lint": "pnpm -s tslint && pnpm -s stylelint && pnpm -s ownerslint && pnpm -s ng-dev format changed --check",
"lint": "pnpm -s tslint && pnpm -s stylelint && pnpm -s ng-dev format changed --check",
"e2e": "bazel test //src/... --build_tag_filters=e2e --test_tag_filters=e2e --build_tests_only",
"deploy-dev-app": "node ./scripts/deploy-dev-app.js",
"breaking-changes": "node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only scripts/breaking-changes.mts",
"check-entry-point-setup": "node ./scripts/check-entry-point-setup.mjs",
"check-package-externals": "node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only scripts/check-package-externals.mts",
"format": "pnpm -s ng-dev format changed",
"cherry-pick-patch": "ts-node --project tools/cherry-pick-patch/tsconfig.json tools/cherry-pick-patch/cherry-pick-patch.ts",
"ownerslint": "node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only scripts/ownerslint.mts",
"detect-component-id-collisions": "node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only scripts/detect-component-id-collisions.mts",
"tslint": "tslint -c tslint.json --project ./tsconfig.json",
"stylelint": "stylelint \"(src|docs)/**/*.+(css|scss)\" --config .stylelintrc.json",
Expand Down
86 changes: 0 additions & 86 deletions scripts/ownerslint.mts

This file was deleted.

Loading