MCPcopy Create free account
hub / github.com/github/gh-aw / runOrgAPI

Function runOrgAPI

pkg/cli/org_issue_pr_helpers.go:85–88  ·  view source on GitHub ↗
(ctx context.Context, remoteHost, spinnerMessage string, args ...string)

Source from the content-addressed store, hash-verified

83type orgPullRequest struct{}
84
85func runOrgAPI(ctx context.Context, remoteHost, spinnerMessage string, args ...string) ([]byte, error) {
86 ghArgs := append([]string{"api", "--hostname", remoteHost}, args...)
87 return workflow.RunGHContext(ctx, spinnerMessage, ghArgs...)
88}
89
90func runOrgAPICombined(ctx context.Context, remoteHost, spinnerMessage string, args ...string) ([]byte, error) {
91 ghArgs := append([]string{"api", "--hostname", remoteHost}, args...)

Callers 4

listOpenOrgItemsFunction · 0.85
createOrgIssueFunction · 0.85

Calls 1

RunGHContextFunction · 0.92

Tested by

no test coverage detected