feat(pull-requests): quick actions follow each host's capabilities, not GitHub (#17774)

Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Opus 5.5 authored and GitHub committed 2026-10-10 12:07:01 -07:00
1 parent b0249ac871
commit 9b40d37463
24 files changed
+254 -83

No files matched your search

@@ -30,6 +30,18 @@ export const definition = defineSourceControlClient({
defaultCloneTransport: "https",
changeRequestUrl: ({ host, repository, number }) =>
`https://${host}/${repository}/pull/${number}`,
changeRequestActions: new Set([
"merge",
"ready",
"draft",
"close",
"reopen",
"update-branch",
"enable-auto-merge",
"disable-auto-merge",
"revert",
"approve-workflows",
] as const),
checkoutCommand: ({ number }) => `gh pr checkout ${number}`,
authorProfileUrl: (login, repositoryUrl) =>
login.endsWith("[bot]")