Skip to content

Commit b2422d8

Browse files
NiasSt90HonkingGooseviceicerarkins
authored
feat: Support for Platform "Gerrit" (#18961)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Co-authored-by: Michael Kriese <michael.kriese@visualon.de> Co-authored-by: Rhys Arkins <rhys@arkins.net>
1 parent 5f16355 commit b2422d8

File tree

20 files changed

+3160
-1
lines changed

20 files changed

+3160
-1
lines changed
6.29 KB
Loading

lib/config/options/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ const options: RenovateOptions[] = [
10421042
description: 'Set to `true` to automatically approve PRs.',
10431043
type: 'boolean',
10441044
default: false,
1045-
supportedPlatforms: ['azure', 'gitlab'],
1045+
supportedPlatforms: ['azure', 'gerrit', 'gitlab'],
10461046
},
10471047
// depType
10481048
{

lib/config/presets/local/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const resolvers = {
2121
bitbucket: local,
2222
'bitbucket-server': local,
2323
codecommit: null,
24+
gerrit: local,
2425
gitea,
2526
github,
2627
gitlab,

lib/constants/platforms.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export type PlatformId =
33
| 'codecommit'
44
| 'bitbucket'
55
| 'bitbucket-server'
6+
| 'gerrit'
67
| 'gitea'
78
| 'github'
89
| 'gitlab'

lib/modules/platform/api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as azure from './azure';
33
import * as bitbucket from './bitbucket';
44
import * as bitbucketServer from './bitbucket-server';
55
import * as codecommit from './codecommit';
6+
import * as gerrit from './gerrit';
67
import * as gitea from './gitea';
78
import * as github from './github';
89
import * as gitlab from './gitlab';
@@ -16,6 +17,7 @@ api.set(azure.id, azure);
1617
api.set(bitbucket.id, bitbucket);
1718
api.set(bitbucketServer.id, bitbucketServer);
1819
api.set(codecommit.id, codecommit);
20+
api.set(gerrit.id, gerrit);
1921
api.set(gitea.id, gitea);
2022
api.set(github.id, github);
2123
api.set(gitlab.id, gitlab);

0 commit comments

Comments
 (0)