diff --git a/packages/components/src/components/cards/partials/rows/IssueOrPullRequestRow.tsx b/packages/components/src/components/cards/partials/rows/IssueOrPullRequestRow.tsx index fcebe018..faba39cb 100644 --- a/packages/components/src/components/cards/partials/rows/IssueOrPullRequestRow.tsx +++ b/packages/components/src/components/cards/partials/rows/IssueOrPullRequestRow.tsx @@ -68,12 +68,15 @@ export const IssueOrPullRequestRow = React.memo( title: _title, url, userLinkURL, - username, + username: _username, } = props const title = trimNewLinesAndSpaces(_title) if (!title) return null + const isBot = Boolean(_username && _username.indexOf('[bot]') >= 0) + const username = isBot ? _username.replace('[bot]', '') : _username + const byText = username ? `@${username}` : '' return ( @@ -92,7 +95,7 @@ export const IssueOrPullRequestRow = React.memo( {Boolean(username) && ( = 0)} + isBot={isBot} linkURL={userLinkURL} small style={cardStyles.avatar}