Skip to content

Commit ddbdf22

Browse files
ci: update pullapprove config to enact changes for renovate (angular#57853)
Enact the pullapprove config for changes to renovate reviews PR Close angular#57853
1 parent 38de06b commit ddbdf22

File tree

4 files changed

+92
-42
lines changed

4 files changed

+92
-42
lines changed

.github/actions/deploy-docs-site/main.js

Lines changed: 76 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
};
97569763
var 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"

.pullapprove.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,23 @@ groups:
681681
'tools/{*,.*}',
682682
'**/*.bzl'
683683
])
684+
- author not in ["angular-robot"]
684685
reviewers:
685686
users:
686687
- devversion
687688
- josephperrott
688689

690+
# =========================================================
691+
# Renovate Changes
692+
# =========================================================
693+
renovate-changes:
694+
<<: *defaults
695+
conditions:
696+
- author in ["angular-robot"]
697+
reviewers:
698+
teams:
699+
- framework-team
700+
689701
# =========================================================
690702
# Public API
691703
# =========================================================

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
"@angular/animations": "^19.0.0-next",
163163
"@angular/build-tooling": "https://github.com/angular/dev-infra-private-build-tooling-builds.git#40c5080c52f4d14aa2b5083e42fe5cb0fea2f929",
164164
"@angular/core": "^19.0.0-next",
165-
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#682b3d77e51c0c4fcb535bd6b147eb42a8738d7b",
165+
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#68d080d76124a3255475ef08200eeeec468154e0",
166166
"@babel/plugin-proposal-async-generator-functions": "^7.20.7",
167167
"@bazel/bazelisk": "^1.7.5",
168168
"@bazel/buildifier": "^6.0.0",

yarn.lock

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@
248248

249249
"@angular/build-tooling@https://github.com/angular/dev-infra-private-build-tooling-builds.git#40c5080c52f4d14aa2b5083e42fe5cb0fea2f929":
250250
version "0.0.0-bd7b63896ab21fc258f8f9236165c37e62db27d8"
251-
uid "40c5080c52f4d14aa2b5083e42fe5cb0fea2f929"
252251
resolved "https://github.com/angular/dev-infra-private-build-tooling-builds.git#40c5080c52f4d14aa2b5083e42fe5cb0fea2f929"
253252
dependencies:
254253
"@angular/benchpress" "0.3.0"
@@ -371,10 +370,9 @@
371370
dependencies:
372371
tslib "^2.3.0"
373372

374-
"@angular/ng-dev@https://github.com/angular/dev-infra-private-ng-dev-builds.git#682b3d77e51c0c4fcb535bd6b147eb42a8738d7b":
375-
version "0.0.0-bd7b63896ab21fc258f8f9236165c37e62db27d8"
376-
uid "682b3d77e51c0c4fcb535bd6b147eb42a8738d7b"
377-
resolved "https://github.com/angular/dev-infra-private-ng-dev-builds.git#682b3d77e51c0c4fcb535bd6b147eb42a8738d7b"
373+
"@angular/ng-dev@https://github.com/angular/dev-infra-private-ng-dev-builds.git#68d080d76124a3255475ef08200eeeec468154e0":
374+
version "0.0.0-12e38ba595aa3bbe4230e9568517c7309fca93bc"
375+
resolved "https://github.com/angular/dev-infra-private-ng-dev-builds.git#68d080d76124a3255475ef08200eeeec468154e0"
378376
dependencies:
379377
"@octokit/rest" "21.0.2"
380378
"@types/semver" "^7.3.6"

0 commit comments

Comments
 (0)