Get all workflows of a specific repository and a specific owner
RETURNS
Promise<Workflow[]>
Gets all infos to a specific workflow
PARAMETERS
workflow_id
: string | number
RETURNS
Promise<Workflow>
Triggers a workflow, identified by the given parameters
PARAMETERS
workflowName
: string - The name of the workflow to triggerbranch
: string - The name of the branch from which the code is to be taken
RETURNS
Promise<void>
List all repository variables identified by owner and repository
RETURNS
Promise<object[]
name
: stringvalue
: stringcreated_at
: string - Format: date-timeupdated_at
: string - Format: date-time>
Creates a new repository variable
PARAMETERS
variableName
: string - The name of the variable to be createdvalue
: string - The value of the created variable
RETURNS
Promise<number>
Returns a specific repository variable
PARAMETERS
variableName
: string - The name of the variable to be gathered
RETURNS
Promise<object
name
: stringvalue
: stringcreated_at
: string - Format: date-timeupdated_at
: string - Format: date-time>
Checks if a specific repository variable exists
PARAMETERS
variableName
: string - The name of the variable to be gathered
RETURNS
Promise<boolean>
Updates a specific repository variable
PARAMETERS
variableName
: string - The name of the variable to be gatheredvalue
: string - The value of the repository variable
RETURNS
Promise<number>
Creates or updates a specific repository variable
PARAMETERS
variableName
: string - The name of the variable to be gatheredvalue
: string - The value of the repository variable
RETURNS
Promise<number>
Delete a specific repository variable
PARAMETERS
variableName
: string - The name of the variable to be gathered
RETURNS
Promise<number>
List all repository secrets
RETURNS
Promise<object[]
name
: stringcreated_at
: string - Format: date-timeupdated_at
: string - Format: date-time>
Gets a repository secret, but no value!
PARAMETERS
secretName
: string - The name of the secret
RETURNS
Promise<object
name
: stringcreated_at
: string - Format: date-timeupdated_at
: string - Format: date-time>
Create or update a repository secret
PARAMETERS
secretName
: string - The name of the secretsecretValue
: string - The plain text value of the secret
RETURNS
Promise<number>
Deletes a repository secret
PARAMETERS
secretName
: string - The name of the secret
RETURNS
Promise<number>
Lists all workflow runs for a repository.
RETURNS
Promise<object[]
id
: numbername
: null | stringnode_id
: stringcheck_suite_id?
: numbercheck_suite_node_id?
: stringhead_branch
: null | stringhead_sha
: stringpath
: stringrun_number
: numberrun_attempt?
: numberreferenced_workflows
: null | object[]path
: stringsha
: stringref?
: stringevent
: stringstatus
: null | stringconclusion
: null | stringworkflow_id
: numberurl
: stringhtml_url
: stringpull_requests
: null | object[]id
: numbernumber
: numberurl
: stringhead
: objectref
: stringsha
: stringrepo
: objectid
: numberurl
: stringname
: string
base
: objectref
: stringsha
: stringrepo
: objectid
: numberurl
: stringname
: string
created_at
: string - Format: date-timeupdated_at
: string - Format: date-timeactor?
: objectname
: null | stringemail
: null | stringlogin
: stringid
: numbernode_id
: stringavatar_url
: string - Format: urigravatar_id
: null | stringurl
: string - Format: urihtml_url
: string - Format: urifollowers_url
: string - Format: urifollowing_url
: stringgists_url
: stringstarred_url
: stringsubscriptions_url
: string - Format: uriorganizations_url
: string - Format: urirepos_url
: string - Format: urievents_url
: stringreceived_events_url
: string - Format: uritype
: stringsite_admin
: booleanstarred_at?
: string
triggering_actor?
: objectname
: null | stringemail
: null | stringlogin
: stringid
: numbernode_id
: stringavatar_url
: string - Format: urigravatar_id
: null | stringurl
: string - Format: urihtml_url
: string - Format: urifollowers_url
: string - Format: urifollowing_url
: stringgists_url
: stringstarred_url
: stringsubscriptions_url
: string - Format: uriorganizations_url
: string - Format: urirepos_url
: string - Format: urievents_url
: stringreceived_events_url
: string - Format: uritype
: stringsite_admin
: booleanstarred_at?
: string
run_started_at?
: string - Format: date-timejobs_url
: stringlogs_url
: stringcheck_suite_url
: stringartifacts_url
: stringcancel_url
: stringrerun_url
: stringprevious_attempt_url
: null | stringworkflow_url
: stringhead_commit
: null | objectrepository
: objectid
: numbernode_id
: stringname
: stringfull_name
: stringowner
: objectname
: null | stringemail
: null | stringlogin
: stringid
: numbernode_id
: stringavatar_url
: string - Format: urigravatar_id
: null | stringurl
: string - Format: urihtml_url
: string - Format: urifollowers_url
: string - Format: urifollowing_url
: stringgists_url
: stringstarred_url
: stringsubscriptions_url
: string - Format: uriorganizations_url
: string - Format: urirepos_url
: string - Format: urievents_url
: stringreceived_events_url
: string - Format: uritype
: stringsite_admin
: booleanstarred_at?
: string
private
: booleanhtml_url
: string - Format: uridescription
: null | stringfork
: booleanurl
: string - Format: uriarchive_url
: stringassignees_url
: stringblobs_url
: stringbranches_url
: stringcollaborators_url
: stringcomments_url
: stringcommits_url
: stringcompare_url
: stringcontents_url
: stringcontributors_url
: string - Format: urideployments_url
: string - Format: uridownloads_url
: string - Format: urievents_url
: string - Format: uriforks_url
: string - Format: urigit_commits_url
: stringgit_refs_url
: stringgit_tags_url
: stringgit_url?
: stringissue_comment_url
: stringissue_events_url
: stringissues_url
: stringkeys_url
: stringlabels_url
: stringlanguages_url
: string - Format: urimerges_url
: string - Format: urimilestones_url
: stringnotifications_url
: stringpulls_url
: stringreleases_url
: stringssh_url?
: stringstargazers_url
: string - Format: uristatuses_url
: stringsubscribers_url
: string - Format: urisubscription_url
: string - Format: uritags_url
: string - Format: uriteams_url
: string - Format: uritrees_url
: stringclone_url?
: stringmirror_url
: null | stringhooks_url
: string - Format: urisvn_url?
: stringhomepage
: null | stringlanguage
: null | stringforks_count?
: numberstargazers_count?
: numberwatchers_count?
: numbersize?
: numberdefault_branch?
: stringopen_issues_count?
: numberis_template?
: booleantopics?
: string[]has_issues?
: booleanhas_projects?
: booleanhas_wiki?
: booleanhas_pages?
: booleanhas_downloads?
: booleanhas_discussions?
: booleanarchived?
: booleandisabled?
: booleanvisibility?
: stringpushed_at
: null | string - Format: date-timecreated_at
: null | string - Format: date-timeupdated_at
: null | string - Format: date-timepermissions?
: objectadmin?
: booleanmaintain?
: booleanpush?
: booleantriage?
: booleanpull?
: boolean
role_name?
: stringtemp_clone_token?
: stringdelete_branch_on_merge?
: booleansubscribers_count?
: numbernetwork_count?
: numbercode_of_conduct?
: objectkey
: stringname
: stringurl
: string - Format: uribody?
: stringhtml_url
: null | string - Format: uri
license
: null | objectforks?
: numberopen_issues?
: numberwatchers?
: numberallow_forking?
: booleanweb_commit_signoff_required?
: booleansecurity_and_analysis
: null | object
head_repository
: objectid
: numbernode_id
: stringname
: stringfull_name
: stringowner
: objectname
: null | stringemail
: null | stringlogin
: stringid
: numbernode_id
: stringavatar_url
: string - Format: urigravatar_id
: null | stringurl
: string - Format: urihtml_url
: string - Format: urifollowers_url
: string - Format: urifollowing_url
: stringgists_url
: stringstarred_url
: stringsubscriptions_url
: string - Format: uriorganizations_url
: string - Format: urirepos_url
: string - Format: urievents_url
: stringreceived_events_url
: string - Format: uritype
: stringsite_admin
: booleanstarred_at?
: string
private
: booleanhtml_url
: string - Format: uridescription
: null | stringfork
: booleanurl
: string - Format: uriarchive_url
: stringassignees_url
: stringblobs_url
: stringbranches_url
: stringcollaborators_url
: stringcomments_url
: stringcommits_url
: stringcompare_url
: stringcontents_url
: stringcontributors_url
: string - Format: urideployments_url
: string - Format: uridownloads_url
: string - Format: urievents_url
: string - Format: uriforks_url
: string - Format: urigit_commits_url
: stringgit_refs_url
: stringgit_tags_url
: stringgit_url?
: stringissue_comment_url
: stringissue_events_url
: stringissues_url
: stringkeys_url
: stringlabels_url
: stringlanguages_url
: string - Format: urimerges_url
: string - Format: urimilestones_url
: stringnotifications_url
: stringpulls_url
: stringreleases_url
: stringssh_url?
: stringstargazers_url
: string - Format: uristatuses_url
: stringsubscribers_url
: string - Format: urisubscription_url
: string - Format: uritags_url
: string - Format: uriteams_url
: string - Format: uritrees_url
: stringclone_url?
: stringmirror_url
: null | stringhooks_url
: string - Format: urisvn_url?
: stringhomepage
: null | stringlanguage
: null | stringforks_count?
: numberstargazers_count?
: numberwatchers_count?
: numbersize?
: numberdefault_branch?
: stringopen_issues_count?
: numberis_template?
: booleantopics?
: string[]has_issues?
: booleanhas_projects?
: booleanhas_wiki?
: booleanhas_pages?
: booleanhas_downloads?
: booleanhas_discussions?
: booleanarchived?
: booleandisabled?
: booleanvisibility?
: stringpushed_at
: null | string - Format: date-timecreated_at
: null | string - Format: date-timeupdated_at
: null | string - Format: date-timepermissions?
: objectadmin?
: booleanmaintain?
: booleanpush?
: booleantriage?
: booleanpull?
: boolean
role_name?
: stringtemp_clone_token?
: stringdelete_branch_on_merge?
: booleansubscribers_count?
: numbernetwork_count?
: numbercode_of_conduct?
: objectkey
: stringname
: stringurl
: string - Format: uribody?
: stringhtml_url
: null | string - Format: uri
license
: null | objectforks?
: numberopen_issues?
: numberwatchers?
: numberallow_forking?
: booleanweb_commit_signoff_required?
: booleansecurity_and_analysis
: null | object
head_repository_id?
: numberdisplay_title
: string>
Gets a specific workflow run
PARAMETERS
run_id
: number - The unique identifier of the workflow run.
RETURNS
Promise<object
id
: numbername
: null | stringnode_id
: stringcheck_suite_id?
: numbercheck_suite_node_id?
: stringhead_branch
: null | stringhead_sha
: stringpath
: stringrun_number
: numberrun_attempt?
: numberreferenced_workflows
: null | object[]path
: stringsha
: stringref?
: stringevent
: stringstatus
: null | stringconclusion
: null | stringworkflow_id
: numberurl
: stringhtml_url
: stringpull_requests
: null | object[]id
: numbernumber
: numberurl
: stringhead
: objectref
: stringsha
: stringrepo
: objectid
: numberurl
: stringname
: string
base
: objectref
: stringsha
: stringrepo
: objectid
: numberurl
: stringname
: string
created_at
: string - Format: date-timeupdated_at
: string - Format: date-timeactor?
: objectname
: null | stringemail
: null | stringlogin
: stringid
: numbernode_id
: stringavatar_url
: string - Format: urigravatar_id
: null | stringurl
: string - Format: urihtml_url
: string - Format: urifollowers_url
: string - Format: urifollowing_url
: stringgists_url
: stringstarred_url
: stringsubscriptions_url
: string - Format: uriorganizations_url
: string - Format: urirepos_url
: string - Format: urievents_url
: stringreceived_events_url
: string - Format: uritype
: stringsite_admin
: booleanstarred_at?
: string
triggering_actor?
: objectname
: null | stringemail
: null | stringlogin
: stringid
: numbernode_id
: stringavatar_url
: string - Format: urigravatar_id
: null | stringurl
: string - Format: urihtml_url
: string - Format: urifollowers_url
: string - Format: urifollowing_url
: stringgists_url
: stringstarred_url
: stringsubscriptions_url
: string - Format: uriorganizations_url
: string - Format: urirepos_url
: string - Format: urievents_url
: stringreceived_events_url
: string - Format: uritype
: stringsite_admin
: booleanstarred_at?
: string
run_started_at?
: string - Format: date-timejobs_url
: stringlogs_url
: stringcheck_suite_url
: stringartifacts_url
: stringcancel_url
: stringrerun_url
: stringprevious_attempt_url
: null | stringworkflow_url
: stringhead_commit
: null | objectrepository
: objectid
: numbernode_id
: stringname
: stringfull_name
: stringowner
: objectname
: null | stringemail
: null | stringlogin
: stringid
: numbernode_id
: stringavatar_url
: string - Format: urigravatar_id
: null | stringurl
: string - Format: urihtml_url
: string - Format: urifollowers_url
: string - Format: urifollowing_url
: stringgists_url
: stringstarred_url
: stringsubscriptions_url
: string - Format: uriorganizations_url
: string - Format: urirepos_url
: string - Format: urievents_url
: stringreceived_events_url
: string - Format: uritype
: stringsite_admin
: booleanstarred_at?
: string
private
: booleanhtml_url
: string - Format: uridescription
: null | stringfork
: booleanurl
: string - Format: uriarchive_url
: stringassignees_url
: stringblobs_url
: stringbranches_url
: stringcollaborators_url
: stringcomments_url
: stringcommits_url
: stringcompare_url
: stringcontents_url
: stringcontributors_url
: string - Format: urideployments_url
: string - Format: uridownloads_url
: string - Format: urievents_url
: string - Format: uriforks_url
: string - Format: urigit_commits_url
: stringgit_refs_url
: stringgit_tags_url
: stringgit_url?
: stringissue_comment_url
: stringissue_events_url
: stringissues_url
: stringkeys_url
: stringlabels_url
: stringlanguages_url
: string - Format: urimerges_url
: string - Format: urimilestones_url
: stringnotifications_url
: stringpulls_url
: stringreleases_url
: stringssh_url?
: stringstargazers_url
: string - Format: uristatuses_url
: stringsubscribers_url
: string - Format: urisubscription_url
: string - Format: uritags_url
: string - Format: uriteams_url
: string - Format: uritrees_url
: stringclone_url?
: stringmirror_url
: null | stringhooks_url
: string - Format: urisvn_url?
: stringhomepage
: null | stringlanguage
: null | stringforks_count?
: numberstargazers_count?
: numberwatchers_count?
: numbersize?
: numberdefault_branch?
: stringopen_issues_count?
: numberis_template?
: booleantopics?
: string[]has_issues?
: booleanhas_projects?
: booleanhas_wiki?
: booleanhas_pages?
: booleanhas_downloads?
: booleanhas_discussions?
: booleanarchived?
: booleandisabled?
: booleanvisibility?
: stringpushed_at
: null | string - Format: date-timecreated_at
: null | string - Format: date-timeupdated_at
: null | string - Format: date-timepermissions?
: objectadmin?
: booleanmaintain?
: booleanpush?
: booleantriage?
: booleanpull?
: boolean
role_name?
: stringtemp_clone_token?
: stringdelete_branch_on_merge?
: booleansubscribers_count?
: numbernetwork_count?
: numbercode_of_conduct?
: objectkey
: stringname
: stringurl
: string - Format: uribody?
: stringhtml_url
: null | string - Format: uri
license
: null | objectforks?
: numberopen_issues?
: numberwatchers?
: numberallow_forking?
: booleanweb_commit_signoff_required?
: booleansecurity_and_analysis
: null | object
head_repository
: objectid
: numbernode_id
: stringname
: stringfull_name
: stringowner
: objectname
: null | stringemail
: null | stringlogin
: stringid
: numbernode_id
: stringavatar_url
: string - Format: urigravatar_id
: null | stringurl
: string - Format: urihtml_url
: string - Format: urifollowers_url
: string - Format: urifollowing_url
: stringgists_url
: stringstarred_url
: stringsubscriptions_url
: string - Format: uriorganizations_url
: string - Format: urirepos_url
: string - Format: urievents_url
: stringreceived_events_url
: string - Format: uritype
: stringsite_admin
: booleanstarred_at?
: string
private
: booleanhtml_url
: string - Format: uridescription
: null | stringfork
: booleanurl
: string - Format: uriarchive_url
: stringassignees_url
: stringblobs_url
: stringbranches_url
: stringcollaborators_url
: stringcomments_url
: stringcommits_url
: stringcompare_url
: stringcontents_url
: stringcontributors_url
: string - Format: urideployments_url
: string - Format: uridownloads_url
: string - Format: urievents_url
: string - Format: uriforks_url
: string - Format: urigit_commits_url
: stringgit_refs_url
: stringgit_tags_url
: stringgit_url?
: stringissue_comment_url
: stringissue_events_url
: stringissues_url
: stringkeys_url
: stringlabels_url
: stringlanguages_url
: string - Format: urimerges_url
: string - Format: urimilestones_url
: stringnotifications_url
: stringpulls_url
: stringreleases_url
: stringssh_url?
: stringstargazers_url
: string - Format: uristatuses_url
: stringsubscribers_url
: string - Format: urisubscription_url
: string - Format: uritags_url
: string - Format: uriteams_url
: string - Format: uritrees_url
: stringclone_url?
: stringmirror_url
: null | stringhooks_url
: string - Format: urisvn_url?
: stringhomepage
: null | stringlanguage
: null | stringforks_count?
: numberstargazers_count?
: numberwatchers_count?
: numbersize?
: numberdefault_branch?
: stringopen_issues_count?
: numberis_template?
: booleantopics?
: string[]has_issues?
: booleanhas_projects?
: booleanhas_wiki?
: booleanhas_pages?
: booleanhas_downloads?
: booleanhas_discussions?
: booleanarchived?
: booleandisabled?
: booleanvisibility?
: stringpushed_at
: null | string - Format: date-timecreated_at
: null | string - Format: date-timeupdated_at
: null | string - Format: date-timepermissions?
: objectadmin?
: booleanmaintain?
: booleanpush?
: booleantriage?
: booleanpull?
: boolean
role_name?
: stringtemp_clone_token?
: stringdelete_branch_on_merge?
: booleansubscribers_count?
: numbernetwork_count?
: numbercode_of_conduct?
: objectkey
: stringname
: stringurl
: string - Format: uribody?
: stringhtml_url
: null | string - Format: uri
license
: null | objectforks?
: numberopen_issues?
: numberwatchers?
: numberallow_forking?
: booleanweb_commit_signoff_required?
: booleansecurity_and_analysis
: null | object
head_repository_id?
: numberdisplay_title
: string>
Gets a redirect URL to download an archive of log files for a workflow run. This link expires after 1 minute.
PARAMETERS
run_id
: number - The unique identifier of the workflow run
RETURNS
Promise<string>
Gets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage.
PARAMETERS
workflow_id
: number - The ID of the workflow
RETURNS
Promise<object
billable
: objectUBUNTU?
: objecttotal_ms?
: number
MACOS?
: objecttotal_ms?
: number
WINDOWS?
: objecttotal_ms?
: number>
Disables a workflow and sets the state of the workflow to disabled_manually. You can replace workflow_id with the workflow file name. For example, you could use main.yaml.
PARAMETERS
workflow_id
: number - The ID of the workflow
RETURNS
Promise<number>
Enables a workflow and sets the state of the workflow to active. You can replace workflow_id with the workflow file name. For example, you could use main.yaml.
PARAMETERS
workflow_id
: number - The ID of the workflow
RETURNS
Promise<number>