Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/github/copilotRemoteAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -791,11 +791,14 @@ export class CopilotRemoteAgentManager extends Disposable {
const status = copilotEventToSessionStatus(mostRecentCopilotEvent(timeline));
const tooltip = await issueMarkdown(pullRequest, this.context, this.repositoriesManager);
const timestampNumber = new Date(pullRequest.createdAt).getTime();
const defaultBranch = await pullRequest.githubRepository.getDefaultBranch();
const description = pullRequest.base.ref === defaultBranch ? `PR #${pullRequest.number}` : `PR #${pullRequest.number} → ${pullRequest.base.ref}`;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have mostly stayed away from abreviating PR. I see a few have slipped past me over the years though. I'll make a pass through and switch them all over to "pull request".

return {
id: `${pullRequest.number}`,
label: pullRequest.title || `Session ${pullRequest.number}`,
iconPath: this.getIconForSession(status),
pullRequest: pullRequest,
description: description,
tooltip,
status,
timing: {
Expand Down Expand Up @@ -824,11 +827,14 @@ export class CopilotRemoteAgentManager extends Disposable {
const status = copilotPRStatusToSessionStatus(prAndStatus.status);
const pullRequest = prAndStatus.item;
const tooltip = await issueMarkdown(pullRequest, this.context, this.repositoriesManager);
const defaultBranch = await pullRequest.githubRepository.getDefaultBranch();
const description = pullRequest.base.ref === defaultBranch ? `PR #${pullRequest.number}` : `PR #${pullRequest.number} → ${pullRequest.base.ref}`;
return {
id: `${pullRequest.number}`,
label: pullRequest.title || `Session ${pullRequest.number}`,
iconPath: this.getIconForSession(status),
pullRequest: pullRequest,
description: description,
tooltip,
status,
timing: {
Expand Down