Integration - Removed long deprecated code
Signed-off-by: Andre Wanlin <awanlin@spotify.com> Fixed lock file Signed-off-by: Andre Wanlin <awanlin@spotify.com> Improve changesets Signed-off-by: Andre Wanlin <awanlin@spotify.com> Removed link Signed-off-by: Andre Wanlin <awanlin@spotify.com> Update .changeset/sharp-ravens-shop.md Co-authored-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com> Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com> Update .changeset/six-trees-carry.md Co-authored-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com> Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com> Update .changeset/tiny-zoos-smash.md Co-authored-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com> Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com> Corrected gerrit changes based on feedback Signed-off-by: Andre Wanlin <awanlin@spotify.com> Updated API report Signed-off-by: Andre Wanlin <awanlin@spotify.com> Fixed some tests Signed-off-by: Andre Wanlin <awanlin@spotify.com> Fixed test Signed-off-by: Andre Wanlin <awanlin@spotify.com> Fixed another test Signed-off-by: Andre Wanlin <awanlin@spotify.com> Removed parseGerritGitilesUrl Signed-off-by: Andre Wanlin <awanlin@spotify.com> Table clean up Signed-off-by: Andre Wanlin <awanlin@spotify.com> Remove from changeset Signed-off-by: Andre Wanlin <awanlin@spotify.com> Changes based on feedback Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
@@ -54,11 +54,11 @@ describe('scaffolder action utils', () => {
|
||||
/No matching integration configuration for host/,
|
||||
);
|
||||
});
|
||||
describe('bitbucket', () => {
|
||||
beforeEach(() => byHost.mockReturnValue({ type: 'bitbucket' }));
|
||||
describe('bitbucketCloud', () => {
|
||||
beforeEach(() => byHost.mockReturnValue({ type: 'bitbucketCloud' }));
|
||||
describe('cloud', () => {
|
||||
const [host, workspace, project, repo] = [
|
||||
'www.bitbucket.org',
|
||||
'bitbucket.org',
|
||||
'foo',
|
||||
'bar',
|
||||
'baz',
|
||||
@@ -97,6 +97,9 @@ describe('scaffolder action utils', () => {
|
||||
repo,
|
||||
}));
|
||||
});
|
||||
});
|
||||
describe('bitbucketServer', () => {
|
||||
beforeEach(() => byHost.mockReturnValue({ type: 'bitbucketServer' }));
|
||||
describe('other', () => {
|
||||
const [host, project, repo] = ['bitbucket.other', 'foo', 'bar'];
|
||||
it('requires project', () =>
|
||||
|
||||
@@ -84,10 +84,11 @@ export const parseRepoUrl = (
|
||||
]),
|
||||
);
|
||||
switch (type) {
|
||||
case 'bitbucket': {
|
||||
if (host === 'www.bitbucket.org') {
|
||||
checkRequiredParams(parsed, 'workspace');
|
||||
}
|
||||
case 'bitbucketCloud': {
|
||||
checkRequiredParams(parsed, 'workspace', 'project', 'repo');
|
||||
break;
|
||||
}
|
||||
case 'bitbucketServer': {
|
||||
checkRequiredParams(parsed, 'project', 'repo');
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user