Something went wrong. Try again.
A collection of +180 reusable WebAssembly modules for building composable CI/CD pipelines with FluentCI fluentci.io/modules
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360-- 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 Preludeimport CI.Contract as Contractimport Data.Maybe (Maybe)import Effect (Effect)import CI.ModuleDependencies as Dependenciesimport CI.CLI as Nativeimport 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.SetupResultsetup 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.ExecutionResultrun 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.ExecutionResultversion 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.ExecutionResultauth_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.ExecutionResultrepo_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.ExecutionResultpr_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.ExecutionResultpr_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.ExecutionResultpr_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.ExecutionResultpr_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.ExecutionResultpr_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.ExecutionResultpr_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.ExecutionResultpr_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.ExecutionResultrelease_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.ExecutionResultrelease_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.ExecutionResultrelease_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.ExecutionResultworkflow_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.ExecutionResultrun_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.ExecutionResultrun_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.ExecutionResultrun_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.ExecutionResultrun_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.ExecutionResultrun_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.ExecutionResultapi args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "gh" "api" json