@@ -9752,17 +9752,44 @@ var COMMIT_TYPES = {
97529752};
97539753
97549754// 
9755- var createTypedObject = () => (v) => v;
9755+ var createTypedObject = (LabelConstructor) => {
9756+  return (val) => {
9757+  for (const key in val) {
9758+  val[key] = new LabelConstructor(val[key]);
9759+  }
9760+  return val;
9761+  };
9762+ };
97569763var Label = class {
9757-  constructor({ name, description, color }) {
9758-  this.name = name;
9759-  this.description = description;
9760-  this.color = color;
9764+  constructor(params2) {
9765+  this.params = params2;
9766+  this.repositories = this.params.repositories || [
9767+  ManagedRepositories.ANGULAR,
9768+  ManagedRepositories.ANGULAR_CLI,
9769+  ManagedRepositories.COMPONENTS,
9770+  ManagedRepositories.DEV_INFRA
9771+  ];
9772+  this.name = this.params.name;
9773+  this.description = this.params.description;
9774+  this.color = this.params.color;
97619775 }
97629776};
9777+ var ManagedRepositories;
9778+ (function(ManagedRepositories2) {
9779+  ManagedRepositories2["COMPONENTS"] = "components";
9780+  ManagedRepositories2["ANGULAR"] = "angular";
9781+  ManagedRepositories2["ANGULAR_CLI"] = "angular-cli";
9782+  ManagedRepositories2["DEV_INFRA"] = "dev-infra";
9783+ })(ManagedRepositories || (ManagedRepositories = {}));
97639784
97649785// 
9765- var managedLabels = createTypedObject()({
9786+ var ManagedLabel = class extends Label {
9787+  constructor() {
9788+  super(...arguments);
9789+  this.commitCheck = this.params.commitCheck;
9790+  }
9791+ };
9792+ var managedLabels = createTypedObject(ManagedLabel)({
97669793 DETECTED_BREAKING_CHANGE: {
97679794 description: "PR contains a commit with a breaking change",
97689795 name: "detected: breaking change",
@@ -9783,16 +9810,6 @@ var managedLabels = createTypedObject()({
97839810 name: "area: docs",
97849811 commitCheck: (c) => c.type === "docs"
97859812 },
9786-  DETECTED_COMPILER_CHANGE: {
9787-  description: "Issues related to `ngc`, Angular's template compiler",
9788-  name: "area: compiler",
9789-  commitCheck: (c) => c.type === "compiler" || c.type === "compiler-cli"
9790-  },
9791-  DETECTED_PLATFORM_BROWSER_CHANGE: {
9792-  description: "Issues related to the framework runtime",
9793-  name: "area: core",
9794-  commitCheck: (c) => c.type === "platform-browser" || c.type === "core"
9795-  },
97969813 DETECTED_INFRA_CHANGE: {
97979814 description: "Related the build and CI infrastructure of the project",
97989815 name: "area: build & ci",
@@ -9804,14 +9821,29 @@ var managedLabels = createTypedObject()({
98049821 commitCheck: (c) => c.type === "perf"
98059822 },
98069823 DETECTED_HTTP_CHANGE: {
9807-  description: "",
9824+  description: "Issues related to HTTP and HTTP Client ",
98089825 name: "area: common/http",
9809-  commitCheck: (c) => c.type === "common/http" || c.type === "http"
9826+  commitCheck: (c) => c.type === "common/http" || c.type === "http",
9827+  repositories: [ManagedRepositories.ANGULAR]
9828+  },
9829+  DETECTED_COMPILER_CHANGE: {
9830+  description: "Issues related to `ngc`, Angular's template compiler",
9831+  name: "area: compiler",
9832+  commitCheck: (c) => c.type === "compiler" || c.type === "compiler-cli",
9833+  repositories: [ManagedRepositories.ANGULAR]
9834+  },
9835+  DETECTED_PLATFORM_BROWSER_CHANGE: {
9836+  description: "Issues related to the framework runtime",
9837+  name: "area: core",
9838+  commitCheck: (c) => c.type === "platform-browser" || c.type === "core",
9839+  repositories: [ManagedRepositories.ANGULAR]
98109840 }
98119841});
98129842
98139843// 
9814- var actionLabels = createTypedObject()({
9844+ var ActionLabel = class extends Label {
9845+ };
9846+ var actionLabels = createTypedObject(ActionLabel)({
98159847 ACTION_MERGE: {
98169848 description: "The PR is ready for merge by the caretaker",
98179849 name: "action: merge"
@@ -9835,7 +9867,9 @@ var actionLabels = createTypedObject()({
98359867});
98369868
98379869// 
9838- var mergeLabels = createTypedObject()({
9870+ var MergeLabel = class extends Label {
9871+ };
9872+ var mergeLabels = createTypedObject(MergeLabel)({
98399873 MERGE_PRESERVE_COMMITS: {
98409874 description: "When the PR is merged, a rebase and merge should be performed",
98419875 name: "merge: preserve commits"
@@ -9861,35 +9895,37 @@ var TargetLabel = class extends Label {
98619895 this.__hasTargetLabelMarker__ = true;
98629896 }
98639897};
9864- var targetLabels = createTypedObject()({
9865-  TARGET_FEATURE: new TargetLabel( {
9898+ var targetLabels = createTypedObject(TargetLabel )({
9899+  TARGET_FEATURE: {
98669900 description: "This PR is targeted for a feature branch (outside of main and semver branches)",
98679901 name: "target: feature"
9868-  }) ,
9869-  TARGET_LTS: new TargetLabel( {
9902+  },
9903+  TARGET_LTS: {
98709904 description: "This PR is targeting a version currently in long-term support",
98719905 name: "target: lts"
9872-  }) ,
9873-  TARGET_MAJOR: new TargetLabel( {
9906+  },
9907+  TARGET_MAJOR: {
98749908 description: "This PR is targeted for the next major release",
98759909 name: "target: major"
9876-  }) ,
9877-  TARGET_MINOR: new TargetLabel( {
9910+  },
9911+  TARGET_MINOR: {
98789912 description: "This PR is targeted for the next minor release",
98799913 name: "target: minor"
9880-  }) ,
9881-  TARGET_PATCH: new TargetLabel( {
9914+  },
9915+  TARGET_PATCH: {
98829916 description: "This PR is targeted for the next patch release",
98839917 name: "target: patch"
9884-  }) ,
9885-  TARGET_RC: new TargetLabel( {
9918+  },
9919+  TARGET_RC: {
98869920 description: "This PR is targeted for the next release-candidate",
98879921 name: "target: rc"
9888-  }) 
9922+  }
98899923});
98909924
98919925// 
9892- var priorityLabels = createTypedObject()({
9926+ var PriorityLabel = class extends Label {
9927+ };
9928+ var priorityLabels = createTypedObject(PriorityLabel)({
98939929 P0: {
98949930 name: "P0",
98959931 description: "Issue that causes an outage, breakage, or major function to be unusable, with no known workarounds"
@@ -9917,7 +9953,9 @@ var priorityLabels = createTypedObject()({
99179953});
99189954
99199955// 
9920- var featureLabels = createTypedObject()({
9956+ var FeatureLabel = class extends Label {
9957+ };
9958+ var featureLabels = createTypedObject(FeatureLabel)({
99219959 FEATURE_IN_BACKLOG: {
99229960 name: "feature: in backlog",
99239961 description: "Feature request for which voting has completed and is now in the backlog"
@@ -9937,7 +9975,9 @@ var featureLabels = createTypedObject()({
99379975});
99389976
99399977// 
9940- var requiresLabels = createTypedObject()({
9978+ var RequiresLabel = class extends Label {
9979+ };
9980+ var requiresLabels = createTypedObject(RequiresLabel)({
99419981 REQUIRES_TGP: {
99429982 name: "requires: TGP",
99439983 description: "This PR requires a passing TGP before merging is allowed"
0 commit comments