Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include extension repo name in the case where we don't know the path #442

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/templates/extension-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,18 @@ const ExtensionDetailTemplate = ({
<DocumentationHeading>Recent Contributors</DocumentationHeading>

{!extensionRootUrl && (
<p>Commits to this extension's repository in the past six months (excluding merge commits).</p>)}
<p>Commits to the <a
href={metadata.sourceControl.url}><code>{metadata.sourceControl.owner}/{metadata.sourceControl.project}</code> repository</a>,
which hosts this extension, in
the past six months (excluding merge commits).</p>)}
{extensionRootUrl && (
<p>Commits to <a href={extensionRootUrl}>this extension's source code</a> in the past six months
(excluding merge commits).</p>)}

<ChartHolder>
<ContributionsChart contributors={metadata.sourceControl.contributors}
companies={metadata.sourceControl.companies} baseColour={"#4695EB"}
companyColour={"#666"} />
companyColour={"#555"} />
</ChartHolder>

{metadata?.sourceControl?.companies && (
Expand Down Expand Up @@ -424,17 +427,17 @@ const ExtensionDetailTemplate = ({
<ClosingRule />

<AuthorGuidance>
This page was generated from the{" "}
Spot a problem? Submit a change to the {name} extension's{" "}
<Filename>{extensionYaml}</Filename> and this content will be
updated by the next extension release. This page was generated from the{" "}
<a href="https://quarkus.io/version/main/guides/extension-metadata#quarkus-extension-yaml">
extension metadata
</a>{" "}
published to the{" "}
<a href="https://quarkus.io/guides/extension-registry-user">
Quarkus registry
</a>
. Spot a problem? Submit a change to the {name} extension's{" "}
<Filename>{extensionYaml}</Filename> and this content will be
updated by the next extension release.
.
</AuthorGuidance>
</Metadata>
</Columns>
Expand Down Expand Up @@ -512,6 +515,7 @@ export const pageQuery = graphql`
}
sourceControl {
url
owner
project
issues
issuesUrl
Expand Down
Loading