Skip to content

Commit

Permalink
Format via yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
hellodword committed Feb 15, 2024
1 parent a1930bf commit 7d2ffe6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/contracts/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export interface GitHubMetadata {

export interface PublishResult {
publishedTags: string[];
digest: string;
version: string;
digest: string;
version: string;
}
export interface DevContainerCollectionMetadata {
sourceInformation: GitHubMetadata;
Expand Down
3 changes: 2 additions & 1 deletion src/generateDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ async function _generateDocumentation(basePath: string, readmeTemplate: string,
if (parsedJson?.customizations?.vscode?.extensions) {
const extensionsList = parsedJson.customizations.vscode.extensions;
if (extensionsList && extensionsList.length > 0) {
extensions = '\n## Customizations\n\n### VS Code Extensions\n\n' + extensionsList.map((ext: string) => `- \`${ext}\``).join('\n') +'\n';
extensions =
'\n## Customizations\n\n### VS Code Extensions\n\n' + extensionsList.map((ext: string) => `- \`${ext}\``).join('\n') + '\n';
}
}

Expand Down
5 changes: 2 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ async function run(): Promise<void> {
if (shouldPublishFeatures || validateOnly) {
core.info('Validating Feature metadata...');
if (!(await prePublish('feature', featuresBasePath))) {

if (disableSchemaValidationAsError) {
core.warning('Failed to validate Feature metadata. NOTE: This warning will be a fatal error in future releases.')
core.warning('Failed to validate Feature metadata. NOTE: This warning will be a fatal error in future releases.');
} else {
core.setFailed('(!) Failed to validate Feature metadata.');
return;
Expand Down Expand Up @@ -144,7 +143,7 @@ async function prePublish(collectionType: 'feature' | 'template', basePath: stri
const pathToArtifact = path.join(basePath, folder);

if (collectionType === 'feature') {
if (!await validateFeatureSchema(pathToArtifact)) {
if (!(await validateFeatureSchema(pathToArtifact))) {
hasFailed = true;
}
}
Expand Down

0 comments on commit 7d2ffe6

Please sign in to comment.