Skip to content

Commit

Permalink
fix: coverage statistics url
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniomuso committed Aug 29, 2023
1 parent 6233b7a commit 45b4fa1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const CoverageCard = (props: Props) => {

return {
webUrl: projectDetails.web_url,
defaultBranch: projectDetails.default_branch,
coverageDetails: !!coverageDetails
? coverageDetails.data.project.pipelines.nodes
: [],
Expand Down Expand Up @@ -92,7 +93,9 @@ const CoverageCard = (props: Props) => {
title: 'go to Analytics',
onClick: (e) => {
e.preventDefault();
window.open(`${value.webUrl}/-/graphs/main/charts`);
window.open(
`${value.webUrl}/-/graphs/${value?.defaultBranch}/charts`
);
},
}}
variant={props.variant}
Expand Down

0 comments on commit 45b4fa1

Please sign in to comment.