Skip to content

Commit 557eff0

Browse files
authored
Merge pull request #658 from OctopusDeploy/sast/si/introduce-renovate-pr-comments
Introduce "Green-means-go" Renovate PR Messages
2 parents 37691e2 + 588b0cc commit 557eff0

File tree

1 file changed

+63
-40
lines changed

1 file changed

+63
-40
lines changed

renovate-config.js

Lines changed: 63 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,67 @@
1+
// Several parts of this config such as the excludeList, preCannedPrNotes and some packageRules have been duplicated from the Octopus Server renovate.config as they also apply to Tentacle
2+
// https://github.com/OctopusDeploy/OctopusDeploy/blob/main/renovate-config.js
3+
14
const excludeList = [
2-
"dotnet-sdk", // The dotnet SDK update is a non-trivial piece of work
3-
"FluentAssertions", // FluentAssertions 8 and above introduced potential fees for developers
4-
"Halibut", // Various versions of Halibut are used for tests. We'll manually control this version
5-
];
5+
'dotnet-sdk', // The dotnet SDK update is a non-trivial piece of work
6+
'FluentAssertions', // FluentAssertions 8 and above introduced potential fees for developers
7+
'Halibut', // Various versions of Halibut are used for tests. We'll manually control this version
8+
]
9+
10+
const preCannedPrNotes = {
11+
greenMeansGo: [
12+
'Green means go. Any issues in this PR should be caught as part of our tests and/or builds.',
13+
],
14+
}
615

716
module.exports = {
17+
timezone: 'Australia/Brisbane',
18+
requireConfig: 'optional',
19+
onboarding: false,
20+
21+
ignoreDeps: excludeList,
22+
enabledManagers: ['nuget'],
23+
24+
// Full list of built-in presets: https://docs.renovatebot.com/presets-default/
25+
extends: [
26+
'config:base',
27+
'group:monorepos',
28+
'group:recommended',
29+
':rebaseStalePrs',
30+
':automergeRequireAllStatusChecks',
31+
],
32+
33+
// Renovate will create a new issue in the repository.
34+
// This issue has a "dashboard" where you can get an overview of the status of all updates.
35+
// https://docs.renovatebot.com/key-concepts/dashboard/
36+
dependencyDashboard: true,
37+
dependencyDashboardTitle: 'Halibut Dependency Dashboard',
38+
39+
platform: 'github',
40+
repositories: ['OctopusDeploy/Halibut'],
41+
reviewers: ['OctopusDeploy/team-server-at-scale'],
42+
labels: ['dependencies', 'Halibut'],
43+
branchPrefix: 'renovate-dotnet/',
44+
45+
// Limit the amount of PRs created
46+
prConcurrentLimit: 2,
47+
prHourlyLimit: 1,
48+
49+
// If set to false, Renovate will upgrade dependencies to their latest release only. Renovate will not separate major or minor branches.
50+
// https://docs.renovatebot.com/configuration-options/#separatemajorminor
51+
separateMajorMinor: false,
52+
53+
packageRules: [
54+
// Keep the rest of the packages in alphabetical order (of package name). However, non-greenMeansGo packages should be placed before greenMeansGo packages
55+
// Non-greenMeansGo packages
56+
// <None at the moment. Replace this comment when some are introduced>
857

9-
timezone: "Australia/Brisbane",
10-
requireConfig: "optional",
11-
onboarding: false,
12-
13-
ignoreDeps: excludeList,
14-
enabledManagers: ["nuget"],
15-
16-
// Full list of built-in presets: https://docs.renovatebot.com/presets-default/
17-
extends: [
18-
"config:base",
19-
"group:monorepos",
20-
"group:recommended",
21-
":rebaseStalePrs",
22-
":automergeRequireAllStatusChecks",
23-
],
24-
25-
// Renovate will create a new issue in the repository.
26-
// This issue has a "dashboard" where you can get an overview of the status of all updates.
27-
// https://docs.renovatebot.com/key-concepts/dashboard/
28-
dependencyDashboard: true,
29-
dependencyDashboardTitle: "Halibut Dependency Dashboard",
30-
31-
platform: "github",
32-
repositories: ["OctopusDeploy/Halibut"],
33-
reviewers: ["OctopusDeploy/team-server-at-scale"],
34-
labels: ["dependencies", "Halibut"],
35-
branchPrefix: "renovate-dotnet/",
36-
37-
// Limit the amount of PRs created
38-
prConcurrentLimit: 2,
39-
prHourlyLimit: 1,
40-
41-
// If set to false, Renovate will upgrade dependencies to their latest release only. Renovate will not separate major or minor branches.
42-
// https://docs.renovatebot.com/configuration-options/#separatemajorminor
43-
separateMajorMinor: false,
44-
};
58+
// greenMeansGo packages
59+
{
60+
matchPackageNames: ['Nsubstitute'],
61+
prBodyNotes: [
62+
...preCannedPrNotes.greenMeansGo,
63+
'Used extensively throughout tests. Any breaking changes are likely to be surfaced in the test suite.',
64+
],
65+
},
66+
],
67+
}

0 commit comments

Comments
 (0)