Skip to content

Commit

Permalink
fix(md): only show git link if the commit message is not a link (#9278)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
ranihorev and mergify[bot] authored Jun 3, 2021
1 parent 8b1e1f8 commit 8524b0e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export const GitLink = ({ gitMetadata: { commit, commitInfo, pullRequest }, asLi
placement="top"
Component={() => (
<div className="git-commit-tooltip">
{commit && (
<a href={link} target="_blank" className="">
{commit && !asLink && (
<a href={link} target="_blank" className="horizontal sp-margin-m-bottom">
Open commit {commit}
</a>
)}
{commitInfo?.message && <Markdown className="sp-margin-m-top" message={commitInfo?.message} />}
{commitInfo?.message && <Markdown message={commitInfo?.message} />}
</div>
)}
>
Expand Down

0 comments on commit 8524b0e

Please sign in to comment.