Skip to content

Commit

Permalink
Wording updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronMoat committed Jan 10, 2024
1 parent 98202a1 commit b2a6b6e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
16 changes: 8 additions & 8 deletions src/cli/__snapshots__/format.int.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Updating skuba...
Patch skipped: Add empty exports to Jest files for compliance with TypeScript isolated modules
Patch skipped: Update renovate config for private Renovate auth - owner does not map to any of SEEK's renovate auth config
Patch skipped: Update Renovate config to support private SEEK packages - owner does not map to a SEEK preset
Patch skipped: Swap node distroless Docker image to -debian11 variant - no Dockerfile found
Patch skipped: Upgrade Node.js Distroless Docker image to -debian11 variant - no Dockerfile found
Patch skipped: Add keepAliveTimeout to server listener - no listener file found
Expand Down Expand Up @@ -77,9 +77,9 @@ Updating skuba...
Patch skipped: Add empty exports to Jest files for compliance with TypeScript isolated modules
Patch skipped: Update renovate config for private Renovate auth - owner does not map to any of SEEK's renovate auth config
Patch skipped: Update Renovate config to support private SEEK packages - owner does not map to a SEEK preset
Patch skipped: Swap node distroless Docker image to -debian11 variant - no Dockerfile found
Patch skipped: Upgrade Node.js Distroless Docker image to -debian11 variant - no Dockerfile found
Patch skipped: Add keepAliveTimeout to server listener - no listener file found
Expand Down Expand Up @@ -137,9 +137,9 @@ Updating skuba...
Patch skipped: Add empty exports to Jest files for compliance with TypeScript isolated modules
Patch skipped: Update renovate config for private Renovate auth - owner does not map to any of SEEK's renovate auth config
Patch skipped: Update Renovate config to support private SEEK packages - owner does not map to a SEEK preset
Patch skipped: Swap node distroless Docker image to -debian11 variant - no Dockerfile found
Patch skipped: Upgrade Node.js Distroless Docker image to -debian11 variant - no Dockerfile found
Patch skipped: Add keepAliveTimeout to server listener - no listener file found
Expand Down Expand Up @@ -170,9 +170,9 @@ Updating skuba...
Patch skipped: Add empty exports to Jest files for compliance with TypeScript isolated modules
Patch skipped: Update renovate config for private Renovate auth - owner does not map to any of SEEK's renovate auth config
Patch skipped: Update Renovate config to support private SEEK packages - owner does not map to a SEEK preset
Patch skipped: Swap node distroless Docker image to -debian11 variant - no Dockerfile found
Patch skipped: Upgrade Node.js Distroless Docker image to -debian11 variant - no Dockerfile found
Patch skipped: Add keepAliveTimeout to server listener - no listener file found
Expand Down
24 changes: 12 additions & 12 deletions src/cli/configure/patchRenovateConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describe('patchRenovateConfig', () => {

await expect(tryPatchRenovateConfig('format')).resolves.toEqual({
result: 'skip',
reason: 'no renovate config found',
reason: 'no config found',
});

expect(volToJson()).toStrictEqual(files);
Expand Down Expand Up @@ -183,7 +183,7 @@ describe('patchRenovateConfig', () => {

await expect(tryPatchRenovateConfig('format')).resolves.toEqual({
result: 'skip',
reason: 'could not find git root',
reason: 'no Git root found',
});

expect(volToJson()).toStrictEqual(files);
Expand All @@ -200,7 +200,7 @@ describe('patchRenovateConfig', () => {

await expect(tryPatchRenovateConfig('format')).resolves.toEqual({
result: 'skip',
reason: "owner does not map to any of SEEK's renovate auth config",
reason: 'owner does not map to a SEEK preset',
});

expect(volToJson()).toStrictEqual(files);
Expand All @@ -220,7 +220,7 @@ describe('patchRenovateConfig', () => {

await expect(tryPatchRenovateConfig('format')).resolves.toEqual({
result: 'skip',
reason: "owner does not map to any of SEEK's renovate auth config",
reason: 'owner does not map to a SEEK preset',
});

expect(volToJson()).toStrictEqual(files);
Expand Down Expand Up @@ -262,7 +262,7 @@ describe('patchRenovateConfig', () => {

await expect(tryPatchRenovateConfig('format')).resolves.toEqual({
result: 'skip',
reason: 'renovate config already has private auth',
reason: 'config already has a SEEK preset',
});

expect(volToJson()).toStrictEqual(files);
Expand All @@ -282,7 +282,7 @@ describe('patchRenovateConfig', () => {

await expect(tryPatchRenovateConfig('format')).resolves.toEqual({
result: 'skip',
reason: 'renovate config already has private auth',
reason: 'config already has a SEEK preset',
});

expect(volToJson()).toStrictEqual(files);
Expand Down Expand Up @@ -356,7 +356,7 @@ describe('patchRenovateConfig', () => {

await expect(tryPatchRenovateConfig('lint')).resolves.toEqual({
result: 'skip',
reason: 'no renovate config found',
reason: 'no config found',
});

expect(volToJson()).toStrictEqual(files);
Expand All @@ -373,7 +373,7 @@ describe('patchRenovateConfig', () => {

await expect(tryPatchRenovateConfig('lint')).resolves.toEqual({
result: 'skip',
reason: 'could not find git root',
reason: 'no Git root found',
});

expect(volToJson()).toStrictEqual(files);
Expand All @@ -390,7 +390,7 @@ describe('patchRenovateConfig', () => {

await expect(tryPatchRenovateConfig('lint')).resolves.toEqual({
result: 'skip',
reason: "owner does not map to any of SEEK's renovate auth config",
reason: 'owner does not map to a SEEK preset',
});

expect(volToJson()).toStrictEqual(files);
Expand All @@ -410,7 +410,7 @@ describe('patchRenovateConfig', () => {

await expect(tryPatchRenovateConfig('lint')).resolves.toEqual({
result: 'skip',
reason: "owner does not map to any of SEEK's renovate auth config",
reason: 'owner does not map to a SEEK preset',
});

expect(volToJson()).toStrictEqual(files);
Expand Down Expand Up @@ -452,7 +452,7 @@ describe('patchRenovateConfig', () => {

await expect(tryPatchRenovateConfig('lint')).resolves.toEqual({
result: 'skip',
reason: 'renovate config already has private auth',
reason: 'config already has a SEEK preset',
});

expect(volToJson()).toStrictEqual(files);
Expand All @@ -472,7 +472,7 @@ describe('patchRenovateConfig', () => {

await expect(tryPatchRenovateConfig('lint')).resolves.toEqual({
result: 'skip',
reason: 'renovate config already has private auth',
reason: 'config already has a SEEK preset',
});

expect(volToJson()).toStrictEqual(files);
Expand Down
8 changes: 4 additions & 4 deletions src/cli/configure/patchRenovateConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const patchRenovateConfig = async (
if (!presetToAdd) {
return {
result: 'skip',
reason: "owner does not map to any of SEEK's renovate auth config",
reason: 'owner does not map to a SEEK preset',
};
}

Expand All @@ -118,7 +118,7 @@ const patchRenovateConfig = async (

const config = maybeConfigs.find((maybeConfig) => Boolean(maybeConfig.input));
if (!config?.input) {
return { result: 'skip', reason: 'no renovate config found' };
return { result: 'skip', reason: 'no config found' };
}

if (
Expand All @@ -131,7 +131,7 @@ const patchRenovateConfig = async (
) {
return {
result: 'skip',
reason: 'renovate config already has private auth',
reason: 'config already has a SEEK preset',
};
}

Expand Down Expand Up @@ -165,7 +165,7 @@ export const tryPatchRenovateConfig = (async (
// with Renovate config that should be relative to the repository root.
const gitRoot = await Git.findRoot({ dir });
if (!gitRoot) {
return { result: 'skip', reason: 'could not find git root' };
return { result: 'skip', reason: 'no Git root found' };
}

return await patchRenovateConfig(mode, gitRoot);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/configure/upgrade/patches/7.3.1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const patches: Patches = [
},
{
apply: tryPatchRenovateConfig,
description: 'Update renovate config for private Renovate auth',
description: 'Update Renovate config to support private SEEK packages',
},
{
apply: tryPatchDockerfile,
description: 'Swap node distroless Docker image to -debian11 variant',
description: 'Upgrade Node.js Distroless Docker image to -debian11 variant',
},
{
apply: tryPatchServerListener,
Expand Down

0 comments on commit b2a6b6e

Please sign in to comment.