Skip to content

Commit

Permalink
fix(onboarding): force branch creation to prevent diff-check (#21200)
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulGautamSingh authored Mar 28, 2023
1 parent 39493b7 commit 874cfe8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/workers/repository/onboarding/branch/create.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message: 'Add renovate.json',
platformCommit: false,
});
Expand All @@ -49,6 +50,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
Expand All @@ -72,6 +74,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
Expand Down Expand Up @@ -99,6 +102,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
Expand All @@ -123,6 +127,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
Expand Down Expand Up @@ -150,6 +155,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
Expand All @@ -175,6 +181,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
Expand All @@ -198,6 +205,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
Expand All @@ -222,6 +230,7 @@ describe('workers/repository/onboarding/branch/create', () => {
contents: '{"foo":"bar"}',
},
],
force: true,
message,
platformCommit: false,
});
Expand All @@ -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,
});
});
Expand Down
1 change: 1 addition & 0 deletions lib/workers/repository/onboarding/branch/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ export async function createOnboardingBranch(
],
message: commitMessage.toString(),
platformCommit: !!config.platformCommit,
force: true,
});
}

0 comments on commit 874cfe8

Please sign in to comment.