@@ -11,7 +11,7 @@ import { CodingAgentContext, OverviewContext, PullRequest } from '../../src/gith
1111import PullRequestContext from '../common/context' ;
1212import { useStateProp } from '../common/hooks' ;
1313import { ContextDropdown } from './contextDropdown' ;
14- import { copilotErrorIcon , copilotInProgressIcon , copilotSuccessIcon , editIcon , issueClosedIcon , issueIcon , loadingIcon , mergeIcon , prClosedIcon , prDraftIcon , prOpenIcon } from './icon' ;
14+ import { copilotErrorIcon , copilotInProgressIcon , copilotSuccessIcon , copyIcon , editIcon , issueClosedIcon , issueIcon , loadingIcon , mergeIcon , prClosedIcon , prDraftIcon , prOpenIcon } from './icon' ;
1515import { AuthorLink , Avatar } from './user' ;
1616
1717export function Header ( {
@@ -126,11 +126,14 @@ function Title({ title, titleHTML, number, url, inEditMode, setEditMode, setCurr
126126}
127127
128128function ButtonGroup ( { isCurrentlyCheckedOut, isIssue, repositoryDefaultBranch, owner, repo, number, busy } ) {
129- const { refresh } = useContext ( PullRequestContext ) ;
129+ const { refresh, copyPrLink } = useContext ( PullRequestContext ) ;
130130
131131 return (
132132 < div className = "button-group" >
133133 < CheckoutButton { ...{ isCurrentlyCheckedOut, isIssue, repositoryDefaultBranch, owner, repo, number } } />
134+ < button title = "Copy pull request link" onClick = { copyPrLink } className = "secondary" >
135+ { copyIcon }
136+ </ button >
134137 < button title = "Refresh with the latest data from GitHub" onClick = { refresh } className = "secondary" >
135138 Refresh
136139 </ button >
0 commit comments