Skip to content

Commit

Permalink
chore(devops): fix alignment for dd-service catalog message [CLK-3468…
Browse files Browse the repository at this point in the history
…25] (#222)

* chore: fix alignment for dd-service catalog message

* chore: fix schema version value
  • Loading branch information
jeisson-clickup authored Oct 23, 2023
1 parent 01cd117 commit 4deb4b9
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 75 deletions.
16 changes: 8 additions & 8 deletions src/datadog-service-catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NodeProject } from 'projen/lib/javascript';

export module datadogServiceCatalog {
export enum DefaultServiceCatalogValues {
SERVICE_VERSION = '2.1',
SERVICE_VERSION = 'v2.1',
DATADOG_HOSTNAME = 'app.datadoghq.com',
DATADOG_KEY = '${{ secrets.DD_PROJEN_RELEASE_API_KEY }}',
DATADOG_APP_KEY = '${{ secrets.DD_PROJEN_RELEASE_APP_KEY }}',
Expand Down Expand Up @@ -164,21 +164,21 @@ export module datadogServiceCatalog {

const contacts = `${options.contacts?.map(
(contact) => `
- type: ${contact.type}
contact: ${contact.contact}
name: ${contact.name}`,
- type: ${contact.type}
contact: ${contact.contact}
name: ${contact.name}`,
)}`;

const links = `${options.links?.map(
(link) => `
- type: ${link.type}
url: ${link.url}
name: ${link.name}`,
- type: ${link.type}
url: ${link.url}
name: ${link.name}`,
)}`;

const tags = `${Object.keys(serviceTags).map(
(key) => `
- ${key}:${serviceTags[key]}`,
- ${key}:${serviceTags[key]}`,
)}`;

const step: JobStep = {
Expand Down
72 changes: 36 additions & 36 deletions test/__snapshots__/clickup-cdk.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 31 additions & 31 deletions test/__snapshots__/datadog-service-catalog.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4deb4b9

Please sign in to comment.