-- | -- The actions API as documented at -- . module GitHub.Endpoints.Actions.WorkflowJobs ( jobR, downloadJobLogsR, jobsForWorkflowRunAttemptR, jobsForWorkflowRunR, module GitHub.Data ) where import GitHub.Data import Network.URI (URI) import Prelude () -- | Get a job for a workflow run. -- See jobR :: Name Owner -> Name Repo -> Id Job -> Request 'RA Job jobR owner repo job = Query ["repos", toPathPart owner, toPathPart repo, "actions", "jobs", toPathPart job] [] -- | Download job logs for a workflow run. -- See downloadJobLogsR :: Name Owner -> Name Repo -> Id Job -> GenRequest 'MtRedirect 'RO URI downloadJobLogsR owner repo job = Query ["repos", toPathPart owner, toPathPart repo, "actions", "jobs", toPathPart job, "logs"] [] -- | List jobs for a workflow run attempt. -- See jobsForWorkflowRunAttemptR :: Name Owner -> Name Repo -> Id WorkflowRun -> Id RunAttempt -> FetchCount -> GenRequest 'MtJSON 'RA (WithTotalCount Job) jobsForWorkflowRunAttemptR owner repo run attempt = PagedQuery ["repos", toPathPart owner, toPathPart repo, "actions", "runs", toPathPart run, "attempts", toPathPart attempt, "jobs"] [] -- | List jobs for a workflow run. -- See jobsForWorkflowRunR :: Name Owner -> Name Repo -> Id WorkflowRun -> FetchCount -> GenRequest 'MtJSON 'RA (WithTotalCount Job) jobsForWorkflowRunR owner repo run = PagedQuery ["repos", toPathPart owner, toPathPart repo, "actions", "runs", toPathPart run, "jobs"] []