ci: minor PullApprove fixes/improvements (#35015)

This is a follow-up to #34814 to fix some typos in patterns and make
them more similar to the old patterns from `.github/CODEOWNERS`.

PR Close #35015
This commit is contained in:
George Kalpakas 2020-01-28 22:52:49 +02:00 committed by Andrew Kushnir
parent 4a5467bac6
commit 519e9e1ae8
3 changed files with 56 additions and 58 deletions

View File

@ -5,6 +5,9 @@
#################################################################################### ####################################################################################
# #
# Configuration of code ownership and review approvals for the angular/angular repo. # Configuration of code ownership and review approvals for the angular/angular repo.
#
# More info: https://docs.pullapprove.com/
#
# ========================================================= # =========================================================
# General rules / philosophy # General rules / philosophy
# ========================================================= # =========================================================
@ -73,6 +76,8 @@
# ========================================================= # =========================================================
# @angular/framework-global-approvers # @angular/framework-global-approvers
# ========================================================= # =========================================================
# Used for approving minor changes, large-scale refactorings, and in emergency situations.
#
# IgorMinar # IgorMinar
# josephperrott # josephperrott
# kara # kara
@ -81,9 +86,11 @@
# ========================================================= # =========================================================
# @angular/framework-global-approvers-for-docs-only-changes # @angular/framework-global-approvers-for-docs-only-changes
# ========================================================= # =========================================================
# Used for approving minor documentation-only changes that don't require engineering review.
#
# aikidave # aikidave
# kapunahelewong
# gkalpak # gkalpak
# kapunahelewong
# petebacondarwin # petebacondarwin
@ -162,7 +169,7 @@ groups:
conditions: conditions:
- > - >
contains_any_globs(files, [ contains_any_globs(files, [
'packages/compiler-cli/ngcc/*' 'packages/compiler-cli/ngcc/**'
]) ])
reviewers: reviewers:
users: users:
@ -175,23 +182,6 @@ groups:
- ~framework-global-approvers-for-docs-only-changes - ~framework-global-approvers-for-docs-only-changes
# =========================================================
# Framework: Compiler + CLI integration
# =========================================================
fw-cli-integration:
conditions:
- >
contains_any_globs(files, [
'packages/compiler-cli/src/ngtools/**',
])
reviewers:
users:
- filipesilva
teams:
- ~framework-global-approvers
- ~framework-global-approvers-for-docs-only-changes
# ========================================================= # =========================================================
# Framework: Core # Framework: Core
# ========================================================= # =========================================================
@ -298,7 +288,7 @@ groups:
'aio/content/images/guide/structural-directives/**', 'aio/content/images/guide/structural-directives/**',
'aio/content/guide/user-input.md', 'aio/content/guide/user-input.md',
'aio/content/examples/user-input/**', 'aio/content/examples/user-input/**',
'aio/content/images/guide/user-input/*' 'aio/content/images/guide/user-input/**'
]) ])
reviewers: reviewers:
users: users:
@ -324,7 +314,7 @@ groups:
'packages/examples/http/**', 'packages/examples/http/**',
'aio/content/guide/http.md', 'aio/content/guide/http.md',
'aio/content/examples/http/**', 'aio/content/examples/http/**',
'aio/content/images/guide/http/*' 'aio/content/images/guide/http/**'
]) ])
reviewers: reviewers:
users: users:
@ -379,7 +369,7 @@ groups:
'aio/content/images/guide/dynamic-form/**', 'aio/content/images/guide/dynamic-form/**',
'aio/content/guide/reactive-forms.md', 'aio/content/guide/reactive-forms.md',
'aio/content/examples/reactive-forms/**', 'aio/content/examples/reactive-forms/**',
'aio/content/images/guide/reactive-forms/*' 'aio/content/images/guide/reactive-forms/**'
]) ])
reviewers: reviewers:
users: users:
@ -411,7 +401,7 @@ groups:
'packages/compiler-cli/src/extract_i18n.ts', 'packages/compiler-cli/src/extract_i18n.ts',
'packages/localize/**', 'packages/localize/**',
'aio/content/guide/i18n.md', 'aio/content/guide/i18n.md',
'aio/content/examples/i18n/*' 'aio/content/examples/i18n/**'
]) ])
reviewers: reviewers:
users: users:
@ -432,7 +422,7 @@ groups:
contains_any_globs(files, [ contains_any_globs(files, [
'packages/platform-server/**', 'packages/platform-server/**',
'aio/content/guide/universal.md', 'aio/content/guide/universal.md',
'aio/content/examples/universal/*' 'aio/content/examples/universal/**'
]) ])
reviewers: reviewers:
users: users:
@ -454,7 +444,7 @@ groups:
'packages/examples/router/**', 'packages/examples/router/**',
'aio/content/guide/router.md', 'aio/content/guide/router.md',
'aio/content/examples/router/**', 'aio/content/examples/router/**',
'aio/content/images/guide/router/*' 'aio/content/images/guide/router/**'
]) ])
reviewers: reviewers:
users: users:
@ -480,7 +470,7 @@ groups:
'aio/content/guide/service-worker-config.md', 'aio/content/guide/service-worker-config.md',
'aio/content/guide/service-worker-devops.md', 'aio/content/guide/service-worker-devops.md',
'aio/content/guide/service-worker-intro.md', 'aio/content/guide/service-worker-intro.md',
'aio/content/images/guide/service-worker/*' 'aio/content/images/guide/service-worker/**'
]) ])
reviewers: reviewers:
users: users:
@ -512,7 +502,7 @@ groups:
'aio/content/guide/upgrade-performance.md', 'aio/content/guide/upgrade-performance.md',
'aio/content/guide/upgrade-setup.md', 'aio/content/guide/upgrade-setup.md',
'aio/content/guide/ajs-quick-reference.md', 'aio/content/guide/ajs-quick-reference.md',
'aio/content/examples/ajs-quick-reference/*' 'aio/content/examples/ajs-quick-reference/**'
]) ])
reviewers: reviewers:
users: users:
@ -530,15 +520,15 @@ groups:
conditions: conditions:
- > - >
contains_any_globs(files, [ contains_any_globs(files, [
'testing/**', '**/testing/**',
'aio/content/guide/testing.md', 'aio/content/guide/testing.md',
'aio/content/examples/testing/**', 'aio/content/examples/testing/**',
'aio/content/images/guide/testing/*' 'aio/content/images/guide/testing/**'
]) ])
reviewers: reviewers:
users: users:
- kara
- IgorMinar - IgorMinar
- kara
- pkozlowski-opensource - pkozlowski-opensource
teams: teams:
- ~framework-global-approvers - ~framework-global-approvers
@ -558,7 +548,7 @@ groups:
'packages/platform-browser/src/security/**', 'packages/platform-browser/src/security/**',
'aio/content/guide/security.md', 'aio/content/guide/security.md',
'aio/content/examples/security/**', 'aio/content/examples/security/**',
'aio/content/images/guide/security/*' 'aio/content/images/guide/security/**'
]) ])
reviewers: reviewers:
users: users:
@ -581,9 +571,9 @@ groups:
]) ])
reviewers: reviewers:
users: users:
- kyliau
- IgorMinar - IgorMinar
- josephperrott - josephperrott
- kyliau
teams: teams:
- ~framework-global-approvers - ~framework-global-approvers
- ~framework-global-approvers-for-docs-only-changes - ~framework-global-approvers-for-docs-only-changes
@ -598,8 +588,8 @@ groups:
contains_any_globs(files, [ contains_any_globs(files, [
'packages/language-service/**', 'packages/language-service/**',
'aio/content/guide/language-service.md', 'aio/content/guide/language-service.md',
'aio/content/images/guide/language-service/*' 'aio/content/images/guide/language-service/**'
]) ])
reviewers: reviewers:
users: users:
- kyliau - kyliau
@ -650,7 +640,7 @@ groups:
conditions: conditions:
- > - >
contains_any_globs(files, [ contains_any_globs(files, [
'integration/*' 'integration/**'
]) ])
reviewers: reviewers:
users: users:
@ -660,7 +650,6 @@ groups:
- mhevery - mhevery
teams: teams:
- ~framework-global-approvers - ~framework-global-approvers
- ~framework-global-approvers-for-docs-only-changes
# ========================================================= # =========================================================
@ -684,7 +673,7 @@ groups:
'aio/content/examples/getting-started-v0/**', 'aio/content/examples/getting-started-v0/**',
'aio/content/examples/getting-started/**', 'aio/content/examples/getting-started/**',
'aio/content/start/**', 'aio/content/start/**',
'aio/content/images/guide/start/*' 'aio/content/images/guide/start/**'
]) ])
reviewers: reviewers:
users: users:
@ -733,7 +722,7 @@ groups:
'aio/content/guide/practical-observable-usage.md', 'aio/content/guide/practical-observable-usage.md',
'aio/content/examples/practical-observable-usage/**', 'aio/content/examples/practical-observable-usage/**',
'aio/content/guide/rx-library.md', 'aio/content/guide/rx-library.md',
'aio/content/examples/rx-library/*' 'aio/content/examples/rx-library/**'
]) ])
reviewers: reviewers:
users: users:
@ -782,17 +771,18 @@ groups:
conditions: conditions:
- > - >
contains_any_globs(files, [ contains_any_globs(files, [
'aio/content/guide/typescript-configuration.md', 'aio/content/guide/typescript-configuration.md',
'aio/content/examples/setup/**', 'aio/content/examples/setup/**',
'aio/content/guide/build.md', 'aio/content/guide/build.md',
'aio/content/images/guide/build/**', 'aio/content/images/guide/build/**',
'aio/content/guide/cli-builder.md', 'aio/content/guide/cli-builder.md',
'aio/content/guide/deployment.md', 'aio/content/examples/cli-builder/**',
'aio/content/images/guide/deployment/**', 'aio/content/guide/deployment.md',
'aio/content/guide/file-structure.md', 'aio/content/images/guide/deployment/**',
'aio/content/guide/ivy.md', 'aio/content/guide/file-structure.md',
'aio/content/guide/web-worker.md' 'aio/content/guide/ivy.md',
'aio/content/guide/workspace-config.md', 'aio/content/guide/web-worker.md'
'aio/content/guide/workspace-config.md',
]) ])
reviewers: reviewers:
users: users:
@ -866,7 +856,7 @@ groups:
'aio/content/examples/docs-style-guide/**', 'aio/content/examples/docs-style-guide/**',
'aio/content/images/guide/docs-style-guide/**', 'aio/content/images/guide/docs-style-guide/**',
'aio/content/guide/visual-studio-2015.md', 'aio/content/guide/visual-studio-2015.md',
'aio/content/examples/visual-studio-2015/*' 'aio/content/examples/visual-studio-2015/**'
]) ])
reviewers: reviewers:
users: users:
@ -886,24 +876,29 @@ groups:
- > - >
contains_any_globs(files, [ contains_any_globs(files, [
'*', '*',
'.buildkite/**',
'.circleci/**', '.circleci/**',
'.devcontainer/**', '.devcontainer/**',
'.github/**', '.github/**',
'.vscode/**', '.vscode/**',
'.yarn/**',
'docs/BAZEL.md', 'docs/BAZEL.md',
'packages/*', 'packages/*',
'packages/examples/test-utils/**', 'packages/examples/test-utils/**',
'packages/private/**', 'packages/private/**',
'scripts/**', 'scripts/**',
'third_party/**', 'third_party/**',
'tools/brotli-cli/**',
'tools/browsers/**',
'tools/build/**', 'tools/build/**',
'tools/circular_dependency_test/**',
'tools/gulp-tasks/**', 'tools/gulp-tasks/**',
'tools/ng_rollup_bundle/**',
'tools/ngcontainer/**', 'tools/ngcontainer/**',
'tools/npm/**', 'tools/npm/**',
'tools/public_api_guard/BUILD', 'tools/public_api_guard/BUILD.bazel',
'tools/public_api_guard/public_api_guard.bzl', 'tools/public_api_guard/public_api_guard.bzl',
'tools/rxjs/**', 'tools/rxjs/**',
'tools/saucelabs/**',
'tools/size-tracking/**', 'tools/size-tracking/**',
'tools/source-map-test/**', 'tools/source-map-test/**',
'tools/symbol-extractor/**', 'tools/symbol-extractor/**',
@ -913,8 +908,8 @@ groups:
'tools/validate-commit-message/**', 'tools/validate-commit-message/**',
'tools/yarn/**', 'tools/yarn/**',
'tools/*', 'tools/*',
'*.bzl', '**/*.bzl',
'*.BAZEL' '**/*.bazel'
]) ])
reviewers: reviewers:
users: users:
@ -934,7 +929,7 @@ groups:
conditions: conditions:
- > - >
contains_any_globs(files, [ contains_any_globs(files, [
'tools/material-ci/*' 'tools/components-repo-ci/**'
]) ])
reviewers: reviewers:
users: users:
@ -976,7 +971,7 @@ groups:
contains_any_globs(files, [ contains_any_globs(files, [
'aio/scripts/_payload-limits.json', 'aio/scripts/_payload-limits.json',
'integration/_payload-limits.json' 'integration/_payload-limits.json'
]) ])
reviewers: reviewers:
users: users:
- IgorMinar - IgorMinar

View File

@ -173,6 +173,9 @@ Before a PR can be merged it must be approved by the appropriate reviewer(s).
To ensure that the right people review each change, we set review requests using [PullApprove](https://https://docs.pullapprove.com/) (via `.pullapprove`) and require that each PR has at least one approval from an appropriate code owner. To ensure that the right people review each change, we set review requests using [PullApprove](https://https://docs.pullapprove.com/) (via `.pullapprove`) and require that each PR has at least one approval from an appropriate code owner.
If the PR author is a code owner themselves, the approval can come from _any_ repo collaborator (person with write access).
In any case, the reviewer should actually look through the code and provide feedback if necessary.
Note that approved state does not mean a PR is ready to be merged. Note that approved state does not mean a PR is ready to be merged.
For example, a reviewer might approve the PR but request a minor tweak that doesn't need further review, e.g., a rebase or small uncontroversial change. For example, a reviewer might approve the PR but request a minor tweak that doesn't need further review, e.g., a rebase or small uncontroversial change.
Only the `PR action: merge` label means that the PR is ready for merging. Only the `PR action: merge` label means that the PR is ready for merging.

View File

@ -131,8 +131,8 @@ CHERRY_PICK_PR="git cherry-pick merge_pr_base..merge_pr"
# #
# This check is used to enforce that we don't merge PRs that have not been rebased recently and could result in merging # This check is used to enforce that we don't merge PRs that have not been rebased recently and could result in merging
# of non-approved or otherwise bad changes. # of non-approved or otherwise bad changes.
REQUIRED_BASE_SHA_MASTER="a03a9236f2aed5d00012d25f032aa43a046d91da" # pullapprove => CODEOWNERS migration REQUIRED_BASE_SHA_MASTER="296dc0622f0e8c4e803ff4f19a5c6fe02a2ae66e" # CODEOWNERS => PullApprove migration
REQUIRED_BASE_SHA_PATCH="a03a9236f2aed5d00012d25f032aa43a046d91da" # pullapprove => CODEOWNERS migration REQUIRED_BASE_SHA_PATCH="110f6c91b904819cab639861b54b6a989e176942" # CODEOWNERS => PullApprove migration
if [[ $MERGE_MASTER == 1 ]]; then if [[ $MERGE_MASTER == 1 ]]; then
REQUIRED_BASE_SHA="$REQUIRED_BASE_SHA_MASTER" REQUIRED_BASE_SHA="$REQUIRED_BASE_SHA_MASTER"
# check patch only if patch-only PR # check patch only if patch-only PR