From e83ffb23810833c111db4fa532b0eb04260e478c Mon Sep 17 00:00:00 2001 From: Jessica Janiuk Date: Thu, 12 Sep 2024 10:08:40 -0400 Subject: [PATCH] refactor(ng-dev): Add managed labels for proper remapping This adds core and compiler to the managed labels list. We have scopes for both that need to be remapped to the singular area label. So this fixes the auto labeling for those. --- .github/local-actions/branch-manager/main.js | 10 ++++++++++ .github/local-actions/labels-sync/main.js | 10 ++++++++++ github-actions/branch-manager/main.js | 10 ++++++++++ github-actions/commit-message-based-labels/main.js | 10 ++++++++++ github-actions/unified-status-check/main.js | 10 ++++++++++ ng-dev/pr/common/labels/managed.ts | 10 ++++++++++ 6 files changed, 60 insertions(+) diff --git a/.github/local-actions/branch-manager/main.js b/.github/local-actions/branch-manager/main.js index 4fb625c80..50c8b54ca 100644 --- a/.github/local-actions/branch-manager/main.js +++ b/.github/local-actions/branch-manager/main.js @@ -60744,6 +60744,16 @@ var managedLabels = createTypedObject()({ name: "area: docs", commitCheck: (c) => c.type === "docs" }, + DETECTED_COMPILER_CHANGE: { + description: "Issues related to `ngc`, Angular's template compiler", + name: "area: compiler", + commitCheck: (c) => c.type === "compiler" || c.type === "compiler-cli" + }, + DETECTED_PLATFORM_BROWSER_CHANGE: { + description: "Issues related to the framework runtime", + name: "area: core", + commitCheck: (c) => c.type === "platform-browser" || c.type === "core" + }, DETECTED_INFRA_CHANGE: { description: "Related the build and CI infrastructure of the project", name: "area: build & ci", diff --git a/.github/local-actions/labels-sync/main.js b/.github/local-actions/labels-sync/main.js index 3e89590be..74f6780b8 100644 --- a/.github/local-actions/labels-sync/main.js +++ b/.github/local-actions/labels-sync/main.js @@ -42942,6 +42942,16 @@ var managedLabels = createTypedObject()({ name: "area: docs", commitCheck: (c) => c.type === "docs" }, + DETECTED_COMPILER_CHANGE: { + description: "Issues related to `ngc`, Angular's template compiler", + name: "area: compiler", + commitCheck: (c) => c.type === "compiler" || c.type === "compiler-cli" + }, + DETECTED_PLATFORM_BROWSER_CHANGE: { + description: "Issues related to the framework runtime", + name: "area: core", + commitCheck: (c) => c.type === "platform-browser" || c.type === "core" + }, DETECTED_INFRA_CHANGE: { description: "Related the build and CI infrastructure of the project", name: "area: build & ci", diff --git a/github-actions/branch-manager/main.js b/github-actions/branch-manager/main.js index c4ce85135..1ab82feed 100644 --- a/github-actions/branch-manager/main.js +++ b/github-actions/branch-manager/main.js @@ -42942,6 +42942,16 @@ var managedLabels = createTypedObject()({ name: "area: docs", commitCheck: (c) => c.type === "docs" }, + DETECTED_COMPILER_CHANGE: { + description: "Issues related to `ngc`, Angular's template compiler", + name: "area: compiler", + commitCheck: (c) => c.type === "compiler" || c.type === "compiler-cli" + }, + DETECTED_PLATFORM_BROWSER_CHANGE: { + description: "Issues related to the framework runtime", + name: "area: core", + commitCheck: (c) => c.type === "platform-browser" || c.type === "core" + }, DETECTED_INFRA_CHANGE: { description: "Related the build and CI infrastructure of the project", name: "area: build & ci", diff --git a/github-actions/commit-message-based-labels/main.js b/github-actions/commit-message-based-labels/main.js index 2c4d7f4c8..1833fde03 100644 --- a/github-actions/commit-message-based-labels/main.js +++ b/github-actions/commit-message-based-labels/main.js @@ -43407,6 +43407,16 @@ var managedLabels = createTypedObject()({ name: "area: docs", commitCheck: (c) => c.type === "docs" }, + DETECTED_COMPILER_CHANGE: { + description: "Issues related to `ngc`, Angular's template compiler", + name: "area: compiler", + commitCheck: (c) => c.type === "compiler" || c.type === "compiler-cli" + }, + DETECTED_PLATFORM_BROWSER_CHANGE: { + description: "Issues related to the framework runtime", + name: "area: core", + commitCheck: (c) => c.type === "platform-browser" || c.type === "core" + }, DETECTED_INFRA_CHANGE: { description: "Related the build and CI infrastructure of the project", name: "area: build & ci", diff --git a/github-actions/unified-status-check/main.js b/github-actions/unified-status-check/main.js index 65bb92e85..6211c1752 100644 --- a/github-actions/unified-status-check/main.js +++ b/github-actions/unified-status-check/main.js @@ -45726,6 +45726,16 @@ var managedLabels = createTypedObject()({ name: "area: docs", commitCheck: (c) => c.type === "docs" }, + DETECTED_COMPILER_CHANGE: { + description: "Issues related to `ngc`, Angular's template compiler", + name: "area: compiler", + commitCheck: (c) => c.type === "compiler" || c.type === "compiler-cli" + }, + DETECTED_PLATFORM_BROWSER_CHANGE: { + description: "Issues related to the framework runtime", + name: "area: core", + commitCheck: (c) => c.type === "platform-browser" || c.type === "core" + }, DETECTED_INFRA_CHANGE: { description: "Related the build and CI infrastructure of the project", name: "area: build & ci", diff --git a/ng-dev/pr/common/labels/managed.ts b/ng-dev/pr/common/labels/managed.ts index 65830111b..d7c841522 100644 --- a/ng-dev/pr/common/labels/managed.ts +++ b/ng-dev/pr/common/labels/managed.ts @@ -27,6 +27,16 @@ export const managedLabels = createTypedObject()({ name: 'area: docs', commitCheck: (c: Commit) => c.type === 'docs', }, + DETECTED_COMPILER_CHANGE: { + description: "Issues related to `ngc`, Angular's template compiler", + name: 'area: compiler', + commitCheck: (c: Commit) => c.type === 'compiler' || c.type === 'compiler-cli', + }, + DETECTED_PLATFORM_BROWSER_CHANGE: { + description: 'Issues related to the framework runtime', + name: 'area: core', + commitCheck: (c: Commit) => c.type === 'platform-browser' || c.type === 'core', + }, DETECTED_INFRA_CHANGE: { description: 'Related the build and CI infrastructure of the project', name: 'area: build & ci',