fix(onboarding): force branch creation to prevent diff-check (#21200)

This commit is contained in:
RahulGautamSingh 2023-03-28 21:34:08 +05:30 committed by GitHub
parent 39493b715b
commit 874cfe80e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -27,6 +27,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message: 'Add renovate.json',
platformCommit: false,
});
@ -49,6 +50,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
@ -72,6 +74,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
@ -99,6 +102,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
@ -123,6 +127,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
@ -150,6 +155,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
@ -175,6 +181,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
@ -198,6 +205,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
@ -222,6 +230,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
@ -241,6 +250,7 @@ describe('workers/repository/onboarding/branch/create', () => {
branchName: 'renovate/configure',
files: [{ type: 'addition', path, contents: '{"foo":"bar"}' }],
message,
force: true,
platformCommit: false,
});
});

View file

@ -46,5 +46,6 @@ export async function createOnboardingBranch(
],
message: commitMessage.toString(),
platformCommit: !!config.platformCommit,
force: true,
});
}