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.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334-- Generated by Gleam CI helpers.module CI.Component (setup, run, version, auth_status, repo_view, mr_create, mr_view, mr_list, mr_checkout, mr_note, mr_merge, release_create, release_upload, release_download, ci_run, ci_status, ci_get, ci_retry, ci_cancel, ci_lint, 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 glab 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 glab 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 glab 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 "glab" "run" json
-- | Report the installed glab 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 "glab" "version" json
-- | Check inherited GitLab 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 GitLab 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 "glab" "auth_status" json
-- | Inspect GitLab repository metadata without opening a browser.-- | @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 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, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultrepo_view args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "repo_view" json
-- | Create a noninteractive merge request with explicit 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 Merge request title.-- | @param description Literal merge request description.-- | @param sourceBranch Source branch.-- | @param targetBranch Target branch.-- | @param draft Create a draft merge request.-- | @param yes Skip confirmation after explicit title and description. Default: true.-- | @param labels Comma-separated label names. Empty entries are rejected; CSV quotes preserve literal commas.-- | @param reviewers Comma-separated reviewer handles. 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.mr_create :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, title :: String, description :: String, sourceBranch :: Maybe String, targetBranch :: Maybe String, draft :: Maybe Boolean, yes :: Maybe Boolean, labels :: Maybe String, reviewers :: Maybe String, assignees :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultmr_create args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "mr_create" json
-- | Read a merge request and its 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 Merge request IID, branch or URL selector.-- | @param output Result format. Default: "json". Allowed values: json, text.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.mr_view :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, number :: String, output :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultmr_view args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "mr_view" json
-- | List merge requests in a machine-readable format.-- | @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 sourceBranch Source branch filter.-- | @param targetBranch Target branch filter.-- | @param output Result format. Default: "json". Allowed values: json, text.-- | @param perPage Results per page. Default: 30.-- | @param page Page number. Default: 1.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.mr_list :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, sourceBranch :: Maybe String, targetBranch :: Maybe String, output :: Maybe String, perPage :: Maybe Int, page :: Maybe Int, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultmr_list args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "mr_list" json
-- | Check out a merge request locally.-- | @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 Merge request IID, branch or URL selector.-- | @param branch Local branch name.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.mr_checkout :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, number :: String, branch :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultmr_checkout args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "mr_checkout" json
-- | Publish a pipeline comment on a merge 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 Merge request IID, branch or URL selector.-- | @param message Literal merge request comment.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.mr_note :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, number :: String, message :: String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultmr_note args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "mr_note" json
-- | Merge a selected merge request; source branch deletion remains 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 number Merge request IID, branch or URL selector.-- | @param yes Skip confirmation for this explicitly requested merge. Default: true.-- | @param squash Squash commits before merging.-- | @param removeSourceBranch Explicitly delete the source branch after merge.-- | @param sha Expected source commit SHA.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.mr_merge :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, number :: String, yes :: Maybe Boolean, squash :: Maybe Boolean, removeSourceBranch :: Maybe Boolean, sha :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultmr_merge args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "mr_merge" json
-- | Create a GitLab release and attach optional assets; existing releases are protected by default.-- | @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 asset paths.-- | @param name Release title.-- | @param notes Literal release notes.-- | @param notesFile Existing release-notes file.-- | @param ref Commit or branch used when creating a missing tag.-- | @param noUpdate Refuse to update an existing release. 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, name :: Maybe String, notes :: Maybe String, notesFile :: Maybe String, ref :: Maybe String, noUpdate :: 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 "glab" "release_create" json
-- | Upload files to an existing GitLab release.-- | @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 release asset paths.-- | @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, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultrelease_upload args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "release_upload" json
-- | Download selected GitLab 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 assetNames Comma-separated asset filename patterns. Empty entries are rejected; CSV quotes preserve literal commas.-- | @param directory Destination directory.-- | @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, assetNames :: Maybe String, directory :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultrelease_download args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "release_download" json
-- | Create a GitLab pipeline with named variables or 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 branch Branch or ref to run.-- | @param mr Run the merge request pipeline.-- | @param variables Comma-separated KEY:VALUE pipeline variables. Empty entries are rejected; CSV quotes preserve literal commas.-- | @param inputs Comma-separated KEY:VALUE or KEY:type(value) pipeline inputs. 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.ci_run :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, branch :: Maybe String, mr :: Maybe Boolean, variables :: Maybe String, inputs :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultci_run args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "ci_run" json
-- | Inspect or watch a GitLab pipeline 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 branch Branch selector.-- | @param live Watch pipeline status until completion.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.ci_status :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, branch :: Maybe String, live :: Maybe Boolean, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultci_status args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "ci_status" json
-- | Read detailed pipeline information.-- | @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 pipelineId Pipeline ID.-- | @param branch Branch selector.-- | @param output Result format. Default: "json". Allowed values: json, text.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.ci_get :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, pipelineId :: Maybe Int, branch :: Maybe String, output :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultci_get args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "ci_get" json
-- | Retry one explicitly selected GitLab CI job, optionally within a selected 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 job Required job ID or job name; prevents interactive job selection.-- | @param pipelineId Pipeline to search for the selected job.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.ci_retry :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, job :: String, pipelineId :: Maybe Int, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultci_retry args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "ci_retry" json
-- | Cancel one explicitly selected pipeline using glab ci cancel 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 pipelineId Pipeline ID to cancel.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.ci_cancel :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, pipelineId :: Int, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultci_cancel args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "ci_cancel" json
-- | Validate GitLab CI configuration using the native server lint API.-- | @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 file Existing GitLab CI configuration file.-- | @param dryRun Simulate pipeline creation.-- | @param ref Branch or tag used for simulation.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.ci_lint :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, repo :: Maybe String, file :: Maybe String, dryRun :: Maybe Boolean, ref :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultci_lint args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "glab" "ci_lint" json
-- | Call the authenticated GitLab API with scalar fields or a body 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 GitLab API endpoint path.-- | @param method HTTP request method.-- | @param hostname GitLab hostname.-- | @param fields Comma-separated request KEY=VALUE fields. Empty entries are rejected; CSV quotes preserve literal commas.-- | @param inputFile Existing request-body file.-- | @param paginate Fetch every result page.-- | @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 "glab" "api" json