diff --git a/static/app/components/events/autofix/v3/autofixCards.tsx b/static/app/components/events/autofix/v3/autofixCards.tsx index a9fc9f309dfbcc..8e1d8a37701815 100644 --- a/static/app/components/events/autofix/v3/autofixCards.tsx +++ b/static/app/components/events/autofix/v3/autofixCards.tsx @@ -25,7 +25,7 @@ import { } from 'sentry/components/events/autofix/useExplorerAutofix'; import {LoadingIndicator} from 'sentry/components/loadingIndicator'; import {TimeSince} from 'sentry/components/timeSince'; -import {IconRefresh} from 'sentry/icons'; +import {IconCopy, IconRefresh} from 'sentry/icons'; import {IconBot} from 'sentry/icons/iconBot'; import {IconBug} from 'sentry/icons/iconBug'; import {IconCode} from 'sentry/icons/iconCode'; @@ -34,6 +34,7 @@ import {IconOpen} from 'sentry/icons/iconOpen'; import {IconPullRequest} from 'sentry/icons/iconPullRequest'; import {t, tct, tn} from 'sentry/locale'; import {defined} from 'sentry/utils'; +import {useCopyToClipboard} from 'sentry/utils/useCopyToClipboard'; import {FileDiffViewer} from 'sentry/views/seerExplorer/fileDiffViewer'; interface AutofixCardProps { @@ -259,6 +260,7 @@ export function PullRequestsCard({section}: AutofixCardProps) { const sectionArtifact = getAutofixArtifactFromSection(section); return isPullRequestsArtifact(sectionArtifact) ? sectionArtifact : null; }, [section]); + const {copy} = useCopyToClipboard(); return ( } title={t('Pull Requests')}> @@ -277,14 +279,22 @@ export function PullRequestsCard({section}: AutofixCardProps) { pullRequest.pr_number ) { return ( - - {t('View %s#%s', pullRequest.repo_name, pullRequest.pr_number)} - + + + {t('View %s#%s', pullRequest.repo_name, pullRequest.pr_number)} + +