in src/app.ts [13:38]
execute: async (context: IPullRequest) => {
await SDK.ready();
const extensionContext = SDK.getExtensionContext();
const client: GitRestClient = getClient(GitRestClient);
const pr = await client.getPullRequestById(
context.pullRequest.pullRequestId
);
const dialog = await SDK.getService<IHostPageLayoutService>(
CommonServiceIds.HostPageLayoutService
);
dialog.openPanel(
`${extensionContext.publisherId}.${
extensionContext.extensionId
}.cherryPicksDialog`,
{
title: `Cherry-pick pull request ${pr.pullRequestId}`,
size: PanelSize.Large,
configuration: {
pullRequest: pr
}
}
);
}