Merge pull request #14285 from cctechwiz/bug/hardcoded-github-issues-hostname-14169
Using issue URL in place of static GitHub hostname
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-github-issues': patch
|
||||
---
|
||||
|
||||
Stripping specific issues URL already present to target base issues URL.
|
||||
@@ -14,14 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
import { Box, Paper, Typography, CardActionArea } from '@material-ui/core';
|
||||
import { Link } from '@backstage/core-components';
|
||||
import { Box, CardActionArea, Paper, Typography } from '@material-ui/core';
|
||||
import Divider from '@material-ui/core/Divider';
|
||||
import { DateTime } from 'luxon';
|
||||
import React from 'react';
|
||||
import { Assignees } from './Assignees';
|
||||
import { CommentsCount } from './CommentsCount';
|
||||
import Divider from '@material-ui/core/Divider';
|
||||
|
||||
type IssueCardProps = {
|
||||
title: string;
|
||||
@@ -59,7 +58,7 @@ export const IssueCard = (props: IssueCardProps) => {
|
||||
<CardActionArea href={url} target="_blank">
|
||||
<Box padding={1}>
|
||||
<Box display="flex" justifyContent="space-between">
|
||||
<Link to={`https://github.com/${repositoryName}/issues`}>
|
||||
<Link to={`${url.substring(0, url.lastIndexOf('/'))}`}>
|
||||
{repositoryName}
|
||||
</Link>
|
||||
<Assignees name={assigneeName} avatar={assigneeAvatar} />
|
||||
|
||||
Reference in New Issue
Block a user