-- Generated by Gleam CI helpers. module CI.Component (setup, run, version, auth_status, repo_view, pr_create, pr_view, pr_list, pr_checkout, pr_checks, pr_comment, pr_merge, release_create, release_upload, release_download, workflow_run, run_list, run_view, run_watch, run_rerun, run_cancel, api) where import Prelude import CI.Contract as Contract import Data.Maybe (Maybe) import Effect (Effect) import CI.ModuleDependencies as Dependencies import CI.CLI as Native import CI.ToolSetup as ContainerSetup -- | Ensure gh is installed and verified, reusing an available matching version, and publish its environment. -- | @param version Tool release or supported channel to install; omitted values use the documented default. -- | @param installDir Absolute per-user installation prefix; omit for native package installations. -- | @param packageName Native package or port selector overriding the default repository package name. -- | @param sudo Use noninteractive sudo for native package or system installation; defaults to false. setup :: { version :: Maybe String, installDir :: Maybe String, packageName :: Maybe String, sudo :: Maybe Boolean } -> Effect Contract.SetupResult setup args = do ContainerSetup.setupWith (Contract.input (Contract.encodeInput args)) -- | Run any native gh command with literal argv. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param arguments Required comma-separated gh command and literal argument tokens; never JSON. run :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, arguments :: String } -> Effect Contract.ExecutionResult run args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "run" json -- | Report the installed gh CLI version. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. version :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String } -> Effect Contract.ExecutionResult version args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "version" json -- | Check existing GitHub authentication without interactive login. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param hostname GitHub hostname to inspect. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. auth_status :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, hostname :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult auth_status args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "auth_status" json -- | Inspect repository metadata. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Repository OWNER/REPO or URL; omit to use the current checkout. -- | @param jsonFields Comma-separated result field names, such as name,url,defaultBranchRef. Empty entries are rejected; CSV quotes preserve literal commas. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. repo_view :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, jsonFields :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult repo_view args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "repo_view" json -- | Create a pull request with explicit noninteractive title and description. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param title Pull request title. -- | @param body Literal pull request description; no editor is opened. -- | @param base Base branch. -- | @param head Head branch or OWNER:BRANCH. -- | @param draft Create a draft pull request. -- | @param labels Comma-separated label names. Empty entries are rejected; CSV quotes preserve literal commas. -- | @param reviewers Comma-separated reviewer handles or team names. Empty entries are rejected; CSV quotes preserve literal commas. -- | @param assignees Comma-separated assignee handles. Empty entries are rejected; CSV quotes preserve literal commas. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. pr_create :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, title :: String, body :: String, base :: Maybe String, head :: Maybe String, draft :: Maybe Boolean, labels :: Maybe String, reviewers :: Maybe String, assignees :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult pr_create args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "pr_create" json -- | Read a pull request and its review state. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param number Pull request number, URL or branch selector. -- | @param jsonFields Comma-separated result fields. Empty entries are rejected; CSV quotes preserve literal commas. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. pr_view :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, number :: String, jsonFields :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult pr_view args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "pr_view" json -- | List pull requests for automated review or release workflows. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param state Pull request state filter. Default: "open". Allowed values: open, closed, merged, all. -- | @param base Base branch filter. -- | @param head Head branch filter. -- | @param limit Maximum results. Default: 30. -- | @param jsonFields Comma-separated result fields. Empty entries are rejected; CSV quotes preserve literal commas. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. pr_list :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, state :: Maybe String, base :: Maybe String, head :: Maybe String, limit :: Maybe Int, jsonFields :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult pr_list args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "pr_list" json -- | Check out a pull request into the working tree. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param number Pull request number, URL or branch selector. -- | @param branch Local branch name. -- | @param detach Use a detached checkout. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. pr_checkout :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, number :: String, branch :: Maybe String, detach :: Maybe Boolean, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult pr_checkout args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "pr_checkout" json -- | Inspect or wait for pull request checks; native failing and pending statuses propagate. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param number Pull request number, URL or branch selector. -- | @param watch Wait for checks to complete. -- | @param failFast Stop watching after the first failed check. -- | @param required Show required checks only. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. pr_checks :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, number :: String, watch :: Maybe Boolean, failFast :: Maybe Boolean, required :: Maybe Boolean, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult pr_checks args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "pr_checks" json -- | Publish a pipeline comment to a pull request. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param number Pull request number, URL or branch selector. -- | @param body Literal review or pipeline comment. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. pr_comment :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, number :: String, body :: String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult pr_comment args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "pr_comment" json -- | Merge a reviewed pull request using an explicitly selected strategy; branch deletion is opt-in. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param method Required merge strategy: squash, merge, or rebase; no interactive selection. Allowed values: squash, merge, rebase. -- | @param number Pull request number, URL or branch selector. -- | @param auto Enable automatic merge after checks pass. -- | @param deleteBranch Delete the branch after merge. -- | @param matchHeadCommit Require the expected head commit before merging. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. pr_merge :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, method :: String, number :: String, auto :: Maybe Boolean, deleteBranch :: Maybe Boolean, matchHeadCommit :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult pr_merge args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "pr_merge" json -- | Create a GitHub release and optionally attach release assets. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param tag Release tag. -- | @param files Optional existing release asset paths; filenames must be literal, without shell globs. -- | @param title Release title. -- | @param notes Literal release notes. -- | @param notesFile Existing release-notes file. -- | @param target Commit or branch used for a missing tag. -- | @param draft Create a draft release. -- | @param prerelease Mark as a prerelease. -- | @param generateNotes Generate release notes on GitHub. -- | @param verifyTag Require the tag to already exist. Default: true. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. release_create :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, tag :: String, files :: Maybe String, title :: Maybe String, notes :: Maybe String, notesFile :: Maybe String, target :: Maybe String, draft :: Maybe Boolean, prerelease :: Maybe Boolean, generateNotes :: Maybe Boolean, verifyTag :: Maybe Boolean, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult release_create args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "release_create" json -- | Upload assets to an existing release; replacement is opt-in. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param tag Existing release tag. -- | @param files Required comma-separated existing asset paths. -- | @param clobber Explicitly replace existing assets with matching names. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. release_upload :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, tag :: String, files :: String, clobber :: Maybe Boolean, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult release_upload args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "release_upload" json -- | Download selected release assets. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param tag Release tag; omitted selects the native latest release. -- | @param patterns Comma-separated asset filename patterns. Empty entries are rejected; CSV quotes preserve literal commas. -- | @param directory Destination download directory. -- | @param clobber Explicitly overwrite existing files. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. release_download :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, tag :: Maybe String, patterns :: Maybe String, directory :: Maybe String, clobber :: Maybe Boolean, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult release_download args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "release_download" json -- | Dispatch a GitHub Actions workflow with named scalar inputs. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param workflow Workflow ID, name or filename. -- | @param ref Branch or tag to dispatch. -- | @param inputs Comma-separated workflow input KEY=VALUE entries; values stay strings. Empty entries are rejected; CSV quotes preserve literal commas. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. workflow_run :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, workflow :: String, ref :: Maybe String, inputs :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult workflow_run args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "workflow_run" json -- | List workflow runs for pipeline orchestration. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param workflow Workflow selector. -- | @param branch Branch filter. -- | @param status Native run status filter. -- | @param limit Maximum results. Default: 20. -- | @param jsonFields Comma-separated result fields. Empty entries are rejected; CSV quotes preserve literal commas. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. run_list :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, workflow :: Maybe String, branch :: Maybe String, status :: Maybe String, limit :: Maybe Int, jsonFields :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult run_list args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "run_list" json -- | Inspect a workflow run and propagate its failure status. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param runId Workflow run ID. -- | @param exitStatus Fail when the run failed. Default: true. -- | @param log Print job logs. -- | @param jsonFields Comma-separated result fields. Empty entries are rejected; CSV quotes preserve literal commas. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. run_view :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, runId :: String, exitStatus :: Maybe Boolean, log :: Maybe Boolean, jsonFields :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult run_view args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "run_view" json -- | Wait for a workflow run and propagate failure to the pipeline. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param runId Workflow run ID. -- | @param exitStatus Fail when the watched run failed. Default: true. -- | @param interval Polling interval in seconds. Default: 3. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. run_watch :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, runId :: String, exitStatus :: Maybe Boolean, interval :: Maybe Int, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult run_watch args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "run_watch" json -- | Rerun a selected workflow run or its failed jobs. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param runId Workflow run ID. -- | @param failed Rerun only failed jobs. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. run_rerun :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, runId :: String, failed :: Maybe Boolean, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult run_rerun args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "run_rerun" json -- | Cancel a selected workflow run. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param repo Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout. -- | @param runId Workflow run ID. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. run_cancel :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, runId :: String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult run_cancel args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "run_cancel" json -- | Call the authenticated GitHub API using scalar fields or a request file. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas. -- | @param endpoint GitHub REST endpoint or graphql. -- | @param method HTTP method such as GET or POST. -- | @param hostname GitHub hostname. -- | @param fields Comma-separated request KEY=VALUE fields. Empty entries are rejected; CSV quotes preserve literal commas. -- | @param inputFile Existing request-body file; no JSON object is required as a CLI argument. -- | @param paginate Fetch all response pages. -- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas. api :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, endpoint :: String, method :: Maybe String, hostname :: Maybe String, fields :: Maybe String, inputFile :: Maybe String, paginate :: Maybe Boolean, extraArgs :: Maybe String } -> Effect Contract.ExecutionResult api args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "api" json