MCPcopy Create free account
hub / github.com/cli/cli / generateMissingBinaryIssueCreateCommand

Function generateMissingBinaryIssueCreateCommand

pkg/cmd/extension/manager.go:381–384  ·  view source on GitHub ↗
(repoOwner string, repoName string, currentPlatform string)

Source from the content-addressed store, hash-verified

379}
380
381func generateMissingBinaryIssueCreateCommand(repoOwner string, repoName string, currentPlatform string) string {
382 issueBody := generateMissingBinaryIssueBody(currentPlatform)
383 return fmt.Sprintf("gh issue create -R %[1]s/%[2]s --title \"Add support for the %[3]s architecture\" --body \"%[4]s\"", repoOwner, repoName, currentPlatform, issueBody)
384}
385
386func generateMissingBinaryIssueBody(currentPlatform string) string {
387 return fmt.Sprintf("This extension does not support the %[1]s architecture. I tried to install it on a %[1]s machine, and it failed due to the lack of an available binary. Would you be able to update the extension's build and release process to include the relevant binary? For more details, see <https://docs.github.com/en/github-cli/github-cli/creating-github-cli-extensions>.", currentPlatform)

Callers 1

installBinMethod · 0.85

Calls 1

Tested by

no test coverage detected