From e196e840694e292d874777d86a2b029a8f6aa0d2 Mon Sep 17 00:00:00 2001 From: Eric Boucher Date: Wed, 17 Jun 2020 12:50:56 -0700 Subject: [PATCH] fix: use website url for ext-projects when available (#467) --- .../__tests__/__snapshots__/Header.spec.js.snap | 2 +- .../__tests__/__snapshots__/collection.spec.js.snap | 4 ++-- .../__snapshots__/external-projects.spec.js.snap | 4 ++-- src/pages/__tests__/__snapshots__/index.spec.js.snap | 4 ++-- .../__snapshots__/oss-category.spec.js.snap | 4 ++-- .../__snapshots__/external-project-page.spec.js.snap | 12 ++++++------ src/templates/external-project-page.js | 3 ++- 7 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/components/__tests__/__snapshots__/Header.spec.js.snap b/src/components/__tests__/__snapshots__/Header.spec.js.snap index ad9b091616..9d38d55eb7 100644 --- a/src/components/__tests__/__snapshots__/Header.spec.js.snap +++ b/src/components/__tests__/__snapshots__/Header.spec.js.snap @@ -36,7 +36,7 @@ Array [ > Open Source diff --git a/src/pages/__tests__/__snapshots__/collection.spec.js.snap b/src/pages/__tests__/__snapshots__/collection.spec.js.snap index a4605be733..8bc6fc3f60 100644 --- a/src/pages/__tests__/__snapshots__/collection.spec.js.snap +++ b/src/pages/__tests__/__snapshots__/collection.spec.js.snap @@ -38,7 +38,7 @@ exports[`Data Collection Agents Page Renders correctly 1`] = ` > Open Source @@ -289,7 +289,7 @@ exports[`Data Collection Agents Page Renders correctly 1`] = ` className="version footerMeta" > Version - 1.0.3 + 1.0.10 diff --git a/src/pages/__tests__/__snapshots__/external-projects.spec.js.snap b/src/pages/__tests__/__snapshots__/external-projects.spec.js.snap index 658df3d68b..a19bd9e0b1 100644 --- a/src/pages/__tests__/__snapshots__/external-projects.spec.js.snap +++ b/src/pages/__tests__/__snapshots__/external-projects.spec.js.snap @@ -38,7 +38,7 @@ exports[`External Projects Page Renders correctly 1`] = ` > Open Source @@ -254,7 +254,7 @@ exports[`External Projects Page Renders correctly 1`] = ` className="version footerMeta" > Version - 1.0.3 + 1.0.10 diff --git a/src/pages/__tests__/__snapshots__/index.spec.js.snap b/src/pages/__tests__/__snapshots__/index.spec.js.snap index 9d761f272d..1644a284f1 100644 --- a/src/pages/__tests__/__snapshots__/index.spec.js.snap +++ b/src/pages/__tests__/__snapshots__/index.spec.js.snap @@ -38,7 +38,7 @@ exports[`HomePage Renders correctly 1`] = ` > Open Source @@ -394,7 +394,7 @@ exports[`HomePage Renders correctly 1`] = ` className="version footerMeta" > Version - 1.0.3 + 1.0.10 diff --git a/src/pages/__tests__/__snapshots__/oss-category.spec.js.snap b/src/pages/__tests__/__snapshots__/oss-category.spec.js.snap index 1e7a3a8653..4ee802721a 100644 --- a/src/pages/__tests__/__snapshots__/oss-category.spec.js.snap +++ b/src/pages/__tests__/__snapshots__/oss-category.spec.js.snap @@ -38,7 +38,7 @@ exports[`OSS Category Page Renders correctly 1`] = ` > Open Source @@ -510,7 +510,7 @@ exports[`OSS Category Page Renders correctly 1`] = ` className="version footerMeta" > Version - 1.0.3 + 1.0.10 diff --git a/src/templates/__tests__/__snapshots__/external-project-page.spec.js.snap b/src/templates/__tests__/__snapshots__/external-project-page.spec.js.snap index 2d8b4a96fc..f76790d89c 100644 --- a/src/templates/__tests__/__snapshots__/external-project-page.spec.js.snap +++ b/src/templates/__tests__/__snapshots__/external-project-page.spec.js.snap @@ -38,7 +38,7 @@ exports[`Adopt OpenJDK Renders correctly 1`] = ` > Open Source @@ -315,7 +315,7 @@ exports[`Adopt OpenJDK Renders correctly 1`] = ` className="version footerMeta" > Version - 1.0.3 + 1.0.10 @@ -361,7 +361,7 @@ exports[`Open Telemetry Page Renders correctly 1`] = ` > Open Source @@ -638,7 +638,7 @@ exports[`Open Telemetry Page Renders correctly 1`] = ` className="version footerMeta" > Version - 1.0.3 + 1.0.10 @@ -684,7 +684,7 @@ exports[`W3C Distributed Tracing Working Group Renders correctly 1`] = ` > Open Source @@ -1189,7 +1189,7 @@ exports[`W3C Distributed Tracing Working Group Renders correctly 1`] = ` className="version footerMeta" > Version - 1.0.3 + 1.0.10 diff --git a/src/templates/external-project-page.js b/src/templates/external-project-page.js index 1da13c9c72..5146284d2b 100644 --- a/src/templates/external-project-page.js +++ b/src/templates/external-project-page.js @@ -117,7 +117,8 @@ const ExternalProjectPage = ({ data }) => {