From a5aedb1f1dc03fde358aede67748d7ca6c9ea770 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Sep 2025 10:19:04 +0000 Subject: [PATCH 1/3] Initial plan From 9db918d27285f1636b9b7b804d0743b2622da47f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Sep 2025 10:26:06 +0000 Subject: [PATCH 2/3] Add copy link button back to PR overview header Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> --- webviews/components/header.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webviews/components/header.tsx b/webviews/components/header.tsx index 8a83c1a83b..c66417f6dc 100644 --- a/webviews/components/header.tsx +++ b/webviews/components/header.tsx @@ -11,7 +11,7 @@ import { CodingAgentContext, OverviewContext, PullRequest } from '../../src/gith import PullRequestContext from '../common/context'; import { useStateProp } from '../common/hooks'; import { ContextDropdown } from './contextDropdown'; -import { copilotErrorIcon, copilotInProgressIcon, copilotSuccessIcon, editIcon, issueClosedIcon, issueIcon, loadingIcon, mergeIcon, prClosedIcon, prDraftIcon, prOpenIcon } from './icon'; +import { copilotErrorIcon, copilotInProgressIcon, copilotSuccessIcon, copyIcon, editIcon, issueClosedIcon, issueIcon, loadingIcon, mergeIcon, prClosedIcon, prDraftIcon, prOpenIcon } from './icon'; import { AuthorLink, Avatar } from './user'; export function Header({ @@ -126,11 +126,14 @@ function Title({ title, titleHTML, number, url, inEditMode, setEditMode, setCurr } function ButtonGroup({ isCurrentlyCheckedOut, isIssue, repositoryDefaultBranch, owner, repo, number, busy }) { - const { refresh } = useContext(PullRequestContext); + const { refresh, copyPrLink } = useContext(PullRequestContext); return (
+ From 252c48bc26a35791802cf3d64d927b468f93b11d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Sep 2025 10:30:47 +0000 Subject: [PATCH 3/3] Refine copy button to only show for PRs and use generic title Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> --- webviews/components/header.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webviews/components/header.tsx b/webviews/components/header.tsx index c66417f6dc..f6a58982de 100644 --- a/webviews/components/header.tsx +++ b/webviews/components/header.tsx @@ -131,9 +131,11 @@ function ButtonGroup({ isCurrentlyCheckedOut, isIssue, repositoryDefaultBranch, return (
- + {!isIssue ? ( + + ) : null}