Skip to content

Commit 0c3efba

Browse files
fix(autofix): Allow retrying failed PR creation
When PR creation fails, show a clickable "Retry PR" button instead of a disabled "Failed to create PR" button. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 900af8d commit 0c3efba

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

static/app/components/events/autofix/v3/autofixCards.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,13 @@ export function PullRequestsCard({autofix, section}: AutofixCardProps) {
369369
}
370370

371371
return (
372-
<Button key={pullRequest.repo_name} priority="primary" disabled>
373-
{t('Failed to create PR in %s', pullRequest.repo_name)}
372+
<Button
373+
key={pullRequest.repo_name}
374+
priority="primary"
375+
onClick={() => runId && createPR(runId, pullRequest.repo_name)}
376+
disabled={isPolling || !runId}
377+
>
378+
{t('Retry PR in %s', pullRequest.repo_name)}
374379
</Button>
375380
);
376381
})}

0 commit comments

Comments
 (0)