Skip to main content

GitLab (Deprecated)

This Integration is part of the DevSecOps Pack.#

Deprecated

Use GitLab v2 in GitLab Pack instead.

An integration with GitLab. This integration was integrated and tested with version v4.0 of GitLab API.

Configure GitLab Integration in Cortex#

ParameterDescriptionRequired
urlServer URL (e.g. https://gitlab.com/api/v4)True
api_keyAPI KeyTrue
insecureTrust any certificate (not secure)False
proxyUse system proxy settingsFalse

Commands#

You can execute these commands from the CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.

gitlab-get-projects#


Get a list of all visible projects across GitLab for the authenticated user. When accessed without authentication, only public projects with simple fields are returned.

Base Command#

gitlab-get-projects

Input#

Argument NameDescriptionRequired
repository_storageLimits the results to projects stored on repository_storage. Available for administrators only.Optional
last_activity_beforeLimits the results to projects with last_activity before a specified time.Optional
min_access_levelLimits by the minimal access level of the current user.Optional
simpleReturns only limited fields for each project. This is a no operation without authentication as only simple fields are returned.Optional
sortReturns projects sorted in ascending or descending order.Optional
membershipLimits by the projects that the current user is a member of.Optional
search_namespacesIncludes ancestor namespaces when matching search criteria.Optional
archivedLimits by archived status.Optional
searchReturns a list of projects that match the search criteria.Optional
id_beforeLimits the results to projects with IDs that are less than the specified ID.Optional
last_activity_afterLimits the results to projects with last_activity after a specified time.Optional
starredLimits by the projects starred by the current user.Optional
id_afterLimits the results to projects with IDs greater than the specified ID.Optional
ownedLimits by the projects explicitly owned by the current user.Optional
order_byReturns projects ordered by id, name, path, created_at, updated_at, or last_activity_at fields. Repository_size, storage_size, and wiki_size fields are only allowed for administrators. The default is created_at.Optional
statisticsIncludes the project statistics.Optional
visibilityLimits by visibility; public, internal, or private.Optional
with_custom_attributesIncludes the custom attributes in the response (administrators only).Optional
with_issues_enabledLimits by the enabled issues feature.Optional
with_merge_requests_enabledLimits by the enabled merge requests feature.Optional
with_programming_languageLimits by the projects that use the given programming language.Optional

Context Output#

PathTypeDescription
GitLab.Projects.web_urlUnknownProject Web URL
GitLab.Projects.nameUnknownProject Name
GitLab.Projects.pathUnknownProject Path
GitLab.Projects.created_atUnknownProject Created At
GitLab.Projects.visibilityUnknownProject Visiblity
GitLab.Projects.idUnknownProject ID

Command Example#

!gitlab-get-projects owned=true using="Moon-Integration"

Context Example#

{
"GitLab": {
"Projects": [
{
"_links": {
"events": "https://gitlab.com/api/v4/projects/21898188/events",
"issues": "https://gitlab.com/api/v4/projects/21898188/issues",
"labels": "https://gitlab.com/api/v4/projects/21898188/labels",
"members": "https://gitlab.com/api/v4/projects/21898188/members",
"merge_requests": "https://gitlab.com/api/v4/projects/21898188/merge_requests",
"repo_branches": "https://gitlab.com/api/v4/projects/21898188/repository/branches",
"self": "https://gitlab.com/api/v4/projects/21898188"
},
"allow_merge_on_skipped_pipeline": null,
"approvals_before_merge": 0,
"archived": false,
"auto_cancel_pending_pipelines": "enabled",
"auto_devops_deploy_strategy": "continuous",
"auto_devops_enabled": false,
"autoclose_referenced_issues": true,
"avatar_url": null,
"build_coverage_regex": null,
"build_timeout": 3600,
"builds_access_level": "enabled",
"can_create_merge_request_in": true,
"ci_config_path": "",
"ci_default_git_depth": 50,
"ci_forward_deployment_enabled": true,
"compliance_frameworks": [],
"container_expiration_policy": {
"cadence": "1d",
"enabled": true,
"keep_n": 10,
"name_regex": null,
"name_regex_keep": null,
"next_run_at": "2020-10-21T10:49:15.236Z",
"older_than": "90d"
},
"container_registry_enabled": true,
"created_at": "2020-10-20T10:49:15.219Z",
"creator_id": 5773551,
"default_branch": "master",
"description": null,
"emails_disabled": null,
"empty_repo": false,
"external_authorization_classification_label": "",
"forking_access_level": "enabled",
"forks_count": 0,
"http_url_to_repo": "https://gitlab.com/test-user/moon.git",
"id": 21898188,
"import_status": "finished",
"issues_access_level": "enabled",
"issues_enabled": true,
"jobs_enabled": true,
"last_activity_at": "2020-10-25T11:50:47.126Z",
"lfs_enabled": true,
"marked_for_deletion_at": null,
"marked_for_deletion_on": null,
"merge_method": "merge",
"merge_requests_access_level": "enabled",
"merge_requests_enabled": true,
"mirror": false,
"name": "moon",
"name_with_namespace": "test user / moon",
"namespace": {
"avatar_url": "/uploads/-/system/user/avatar/5773551/avatar.png",
"full_path": "test-user",
"id": 7637905,
"kind": "user",
"name": "test user",
"parent_id": null,
"path": "test-user",
"web_url": "https://gitlab.com/test-user"
},
"only_allow_merge_if_all_discussions_are_resolved": false,
"only_allow_merge_if_pipeline_succeeds": false,
"open_issues_count": 16,
"owner": {
"avatar_url": "https://assets.gitlab-static.net/uploads/-/system/user/avatar/5773551/avatar.png",
"id": 5773551,
"name": "test user",
"state": "active",
"username": "test-user",
"web_url": "https://gitlab.com/test-user"
},
"packages_enabled": true,
"pages_access_level": "enabled",
"path": "moon",
"path_with_namespace": "test-user/moon",
"permissions": {
"group_access": null,
"project_access": {
"access_level": 40,
"notification_level": 3
}
},
"printing_merge_request_link_enabled": true,
"public_jobs": true,
"readme_url": "https://gitlab.com/test-user/moon/-/blob/master/README.md",
"remove_source_branch_after_merge": true,
"repository_access_level": "enabled",
"request_access_enabled": true,
"resolve_outdated_diff_discussions": false,
"service_desk_address": "incoming+test-user-moon-21898188-issue-@incoming.gitlab.com",
"service_desk_enabled": true,
"shared_runners_enabled": true,
"shared_with_groups": [],
"snippets_access_level": "enabled",
"snippets_enabled": true,
"ssh_url_to_repo": "git@gitlab.com:test-user/moon.git",
"star_count": 0,
"suggestion_commit_message": null,
"tag_list": [],
"visibility": "public",
"web_url": "https://gitlab.com/test-user/moon",
"wiki_access_level": "enabled",
"wiki_enabled": true
},
{
"_links": {
"events": "https://gitlab.com/api/v4/projects/18044686/events",
"issues": "https://gitlab.com/api/v4/projects/18044686/issues",
"labels": "https://gitlab.com/api/v4/projects/18044686/labels",
"members": "https://gitlab.com/api/v4/projects/18044686/members",
"merge_requests": "https://gitlab.com/api/v4/projects/18044686/merge_requests",
"repo_branches": "https://gitlab.com/api/v4/projects/18044686/repository/branches",
"self": "https://gitlab.com/api/v4/projects/18044686"
},
"allow_merge_on_skipped_pipeline": null,
"approvals_before_merge": 0,
"archived": false,
"auto_cancel_pending_pipelines": "enabled",
"auto_devops_deploy_strategy": "continuous",
"auto_devops_enabled": false,
"autoclose_referenced_issues": true,
"avatar_url": null,
"build_coverage_regex": null,
"build_timeout": 3600,
"builds_access_level": "enabled",
"can_create_merge_request_in": true,
"ci_config_path": null,
"ci_default_git_depth": 0,
"ci_forward_deployment_enabled": true,
"compliance_frameworks": [],
"container_expiration_policy": {
"cadence": "7d",
"enabled": true,
"keep_n": null,
"name_regex": null,
"name_regex_keep": null,
"next_run_at": "2020-10-24T01:50:06.530Z",
"older_than": null
},
"container_registry_enabled": true,
"created_at": "2020-04-10T04:25:23.777Z",
"creator_id": 5773551,
"default_branch": "master",
"description": "Python wrapper for OTRS (REST) API",
"emails_disabled": null,
"empty_repo": false,
"external_authorization_classification_label": "",
"forked_from_project": {
"avatar_url": null,
"created_at": "2016-04-25T10:01:22.538Z",
"default_branch": "master",
"description": "Python wrapper for OTRS (REST) API",
"forks_count": 9,
"http_url_to_repo": "https://gitlab.com/rhab/PyOTRS.git",
"id": 1112166,
"last_activity_at": "2020-10-20T18:46:30.547Z",
"name": "PyOTRS",
"name_with_namespace": "Robert Habermann / PyOTRS",
"namespace": {
"avatar_url": "https://secure.gravatar.com/avatar/fd996be0107aa697f0ca5753aa7b5d1f?s=80&d=identicon",
"full_path": "rhab",
"id": 599974,
"kind": "user",
"name": "Robert Habermann",
"parent_id": null,
"path": "rhab",
"web_url": "https://gitlab.com/rhab"
},
"path": "PyOTRS",
"path_with_namespace": "rhab/PyOTRS",
"readme_url": "https://gitlab.com/rhab/PyOTRS/-/blob/master/README.rst",
"ssh_url_to_repo": "git@gitlab.com:rhab/PyOTRS.git",
"star_count": 12,
"tag_list": [],
"web_url": "https://gitlab.com/rhab/PyOTRS"
},
"forking_access_level": "enabled",
"forks_count": 0,
"http_url_to_repo": "https://gitlab.com/test-user/PyOTRS.git",
"id": 18044686,
"import_status": "finished",
"issues_access_level": "enabled",
"issues_enabled": true,
"jobs_enabled": true,
"last_activity_at": "2020-04-10T04:25:23.777Z",
"lfs_enabled": true,
"marked_for_deletion_at": null,
"marked_for_deletion_on": null,
"merge_method": "merge",
"merge_requests_access_level": "enabled",
"merge_requests_enabled": true,
"mirror": false,
"name": "PyOTRS",
"name_with_namespace": "test user / PyOTRS",
"namespace": {
"avatar_url": "/uploads/-/system/user/avatar/5773551/avatar.png",
"full_path": "test-user",
"id": 7637905,
"kind": "user",
"name": "test user",
"parent_id": null,
"path": "test-user",
"web_url": "https://gitlab.com/test-user"
},
"only_allow_merge_if_all_discussions_are_resolved": false,
"only_allow_merge_if_pipeline_succeeds": false,
"open_issues_count": 0,
"owner": {
"avatar_url": "https://assets.gitlab-static.net/uploads/-/system/user/avatar/5773551/avatar.png",
"id": 5773551,
"name": "test user",
"state": "active",
"username": "test-user",
"web_url": "https://gitlab.com/test-user"
},
"packages_enabled": true,
"pages_access_level": "enabled",
"path": "PyOTRS",
"path_with_namespace": "test-user/PyOTRS",
"permissions": {
"group_access": null,
"project_access": {
"access_level": 40,
"notification_level": 3
}
},
"printing_merge_request_link_enabled": true,
"public_jobs": true,
"readme_url": "https://gitlab.com/test-user/PyOTRS/-/blob/master/README.rst",
"remove_source_branch_after_merge": true,
"repository_access_level": "enabled",
"request_access_enabled": true,
"resolve_outdated_diff_discussions": false,
"service_desk_address": "incoming+test-user-pyotrs-18044686-issue-@incoming.gitlab.com",
"service_desk_enabled": true,
"shared_runners_enabled": true,
"shared_with_groups": [],
"snippets_access_level": "enabled",
"snippets_enabled": true,
"ssh_url_to_repo": "git@gitlab.com:test-user/PyOTRS.git",
"star_count": 0,
"suggestion_commit_message": null,
"tag_list": [],
"visibility": "public",
"web_url": "https://gitlab.com/test-user/PyOTRS",
"wiki_access_level": "enabled",
"wiki_enabled": true
}
]
}
}

Human Readable Output#

Results#

_linksallow_merge_on_skipped_pipelineapprovals_before_mergearchivedauto_cancel_pending_pipelinesauto_devops_deploy_strategyauto_devops_enabledautoclose_referenced_issuesavatar_urlbuild_coverage_regexbuild_timeoutbuilds_access_levelcan_create_merge_request_inci_config_pathci_default_git_depthci_forward_deployment_enabledcompliance_frameworkscontainer_expiration_policycontainer_registry_enabledcreated_atcreator_iddefault_branchdescriptionemails_disabledempty_repoexternal_authorization_classification_labelforking_access_levelforks_counthttp_url_to_repoidimport_statusissues_access_levelissues_enabledjobs_enabledlast_activity_atlfs_enabledmarked_for_deletion_atmarked_for_deletion_onmerge_methodmerge_requests_access_levelmerge_requests_enabledmirrornamename_with_namespacenamespaceonly_allow_merge_if_all_discussions_are_resolvedonly_allow_merge_if_pipeline_succeedsopen_issues_countownerpackages_enabledpages_access_levelpathpath_with_namespacepermissionsprinting_merge_request_link_enabledpublic_jobsreadme_urlremove_source_branch_after_mergerepository_access_levelrequest_access_enabledresolve_outdated_diff_discussionsservice_desk_addressservice_desk_enabledshared_runners_enabledshared_with_groupssnippets_access_levelsnippets_enabledssh_url_to_repostar_countsuggestion_commit_messagetag_listvisibilityweb_urlwiki_access_levelwiki_enabled
self: https://gitlab.com/api/v4/projects/21898188
issues: https://gitlab.com/api/v4/projects/21898188/issues
merge_requests: https://gitlab.com/api/v4/projects/21898188/merge_requests
repo_branches: https://gitlab.com/api/v4/projects/21898188/repository/branches
labels: https://gitlab.com/api/v4/projects/21898188/labels
events: https://gitlab.com/api/v4/projects/21898188/events
members: https://gitlab.com/api/v4/projects/21898188/members
0falseenabledcontinuousfalsetrue3600enabledtrue50truecadence: 1d
enabled: true
keep_n: 10
older_than: 90d
name_regex: null
name_regex_keep: null
next_run_at: 2020-10-21T10:49:15.236Z
true2020-10-20T10:49:15.219Z5773551masterfalseenabled0https://gitlab.com/test-user/moon.git21898188finishedenabledtruetrue2020-10-25T11:50:47.126Ztruemergeenabledtruefalsemoontest user / moonid: 7637905
name: test user
path: test-user
kind: user
full_path: test-user
parent_id: null
avatar_url: /uploads/-/system/user/avatar/5773551/avatar.png
web_url: https://gitlab.com/test-user
falsefalse16id: 5773551
name: test user
username: test-user
state: active
avatar_url: https://assets.gitlab-static.net/uploads/-/system/user/avatar/5773551/avatar.png
web_url: https://gitlab.com/test-user
trueenabledmoontest-user/moonproject_access: {"access_level": 40, "notification_level": 3}
group_access: null
truetruehttps://gitlab.com/test-user/moon/-/blob/master/README.mdtrueenabledtruefalseincoming+test-user-moon-21898188-issue-@incoming.gitlab.comtruetrueenabledtruegit@gitlab.com:test-user/moon.git0publichttps://gitlab.com/test-user/moonenabledtrue
self: https://gitlab.com/api/v4/projects/18044686
issues: https://gitlab.com/api/v4/projects/18044686/issues
merge_requests: https://gitlab.com/api/v4/projects/18044686/merge_requests
repo_branches: https://gitlab.com/api/v4/projects/18044686/repository/branches
labels: https://gitlab.com/api/v4/projects/18044686/labels
events: https://gitlab.com/api/v4/projects/18044686/events
members: https://gitlab.com/api/v4/projects/18044686/members
0falseenabledcontinuousfalsetrue3600enabledtrue0truecadence: 7d
enabled: true
keep_n: null
older_than: null
name_regex: null
name_regex_keep: null
next_run_at: 2020-10-24T01:50:06.530Z
true2020-04-10T04:25:23.777Z5773551masterPython wrapper for OTRS (REST) APIfalseenabled0https://gitlab.com/test-user/PyOTRS.git18044686finishedenabledtruetrue2020-04-10T04:25:23.777ZtruemergeenabledtruefalsePyOTRStest user / PyOTRSid: 7637905
name: test user
path: test-user
kind: user
full_path: test-user
parent_id: null
avatar_url: /uploads/-/system/user/avatar/5773551/avatar.png
web_url: https://gitlab.com/test-user
falsefalse0id: 5773551
name: test user
username: test-user
state: active
avatar_url: https://assets.gitlab-static.net/uploads/-/system/user/avatar/5773551/avatar.png
web_url: https://gitlab.com/test-user
trueenabledPyOTRStest-user/PyOTRSproject_access: {"access_level": 40, "notification_level": 3}
group_access: null
truetruehttps://gitlab.com/test-user/PyOTRS/-/blob/master/README.rsttrueenabledtruefalseincoming+test-user-pyotrs-18044686-issue-@incoming.gitlab.comtruetrueenabledtruegit@gitlab.com:test-user/PyOTRS.git0publichttps://gitlab.com/test-user/PyOTRSenabledtrue

gitlab-projects-get-access-requests#


Gets a list of access requests viewable by the authenticated user.

Base Command#

gitlab-projects-get-access-requests

Input#

Argument NameDescriptionRequired
idThe ID or URL encoded path of the project owned by the authenticated user.Required

Context Output#

PathTypeDescription
GitLab.AccessRequests.idUnknownAccess Request ID
GitLab.AccessRequests.usernameUnknownAccess Request User
GitLab.AccessRequests.requested_atUnknownAccess Request Create Time
GitLab.AccessRequests.stateUnknownAccess Request State

Command Example#

!gitlab-projects-get-access-requests id=21898188 using="Moon-Integration"

Context Example#

{
"GitLab": {
"AccessRequests": {
"avatar_url": "https://secure.gravatar.com/avatar/bcecfc2b23ff4a3962520685ccf046cc?s=80&d=identicon",
"id": 7475865,
"name": "test user",
"requested_at": "2020-10-25T12:50:05.865Z",
"state": "active",
"username": "testuser",
"web_url": "https://gitlab.com/testuser"
}
}
}

Human Readable Output#

Results#

avatar_urlidnamerequested_atstateusernameweb_url
https://secure.gravatar.com/avatar/bcecfc2b23ff4a3962520685ccf046cc?s=80&d=identicon7475865test user2020-10-25T12:50:05.865Zactivetestuserhttps://gitlab.com/testuser

gitlab-projects-request-access#


Requests the authenticated user access to a group or project.

Base Command#

gitlab-projects-request-access

Input#

Argument NameDescriptionRequired
idThe ID or URL encoded path of the project owned by the authenticated user.Required

Context Output#

PathTypeDescription
GitLab.AccessRequests.idUnknownAccess Request ID
GitLab.AccessRequests.usernameUnknownAccess Request User
GitLab.AccessRequests.requested_atUnknownAccess Request Create Time
GitLab.AccessRequests.stateUnknownAccess Request State

Command Example#

!gitlab-projects-request-access id=21898188 using=Asteroid

Context Example#

{
"GitLab": {
"AccessRequests": {
"avatar_url": "https://secure.gravatar.com/avatar/bcecfc2b23ff4a3962520685ccf046cc?s=80&d=identicon",
"id": 7475865,
"name": "test user",
"requested_at": "2020-10-25T12:50:05.865Z",
"state": "active",
"username": "testuser",
"web_url": "https://gitlab.com/testuser"
}
}
}

Human Readable Output#

Results#

avatar_urlidnamerequested_atstateusernameweb_url
https://secure.gravatar.com/avatar/bcecfc2b23ff4a3962520685ccf046cc?s=80&d=identicon7475865test user2020-10-25T12:50:05.865Zactivetestuserhttps://gitlab.com/testuser

gitlab-projects-approve-access#


Approves an access request for the given user.

Base Command#

gitlab-projects-approve-access

Input#

Argument NameDescriptionRequired
idThe ID or URL encoded path of the project owned by the authenticated user.Required
user_idThe user ID of the access requester.Required
access_levelA valid access level (defaults: 30, developer access level).Optional

Context Output#

PathTypeDescription
GitLab.AccessRequests.idUnknownAccess Request ID
GitLab.AccessRequests.usernameUnknownAccess Request User
GitLab.AccessRequests.requested_atUnknownAccess Request Create Time
GitLab.AccessRequests.stateUnknownAccess Request State

Command Example#

Human Readable Output#

gitlab-projects-deny-access#


Denies an access request for the given user.

Base Command#

gitlab-projects-deny-access

Input#

Argument NameDescriptionRequired
idThe ID or URL encoded path of the project owned by the authenticated user.Required
user_idThe user ID of the access requester.Required

Context Output#

PathTypeDescription
GitLab.AccessRequests.idUnknownAccess Request ID
GitLab.AccessRequests.stateUnknownAccess Request State

Command Example#

!gitlab-projects-deny-access id=21898188 user_id=7475865 using="Moon-Integration"

Context Example#

{
"GitLab": {
"AccessRequests": {
"id": "7475865",
"state": "denied"
}
}
}

Human Readable Output#

Results#

idstate
7475865denied

gitlab-projects-get-repository-branches#


Gets a list of repository branches from a project, sorted by name alphabetically.

Base Command#

gitlab-projects-get-repository-branches

Input#

Argument NameDescriptionRequired
idThe ID or URL encoded path of the project owned by the authenticated user.Required
searchReturns a list of branches containing the search string. You can use ^term and term$ to find branches that begin and end with term, respectively.Optional

Context Output#

PathTypeDescription
GitLab.Branches.nameUnknownBranch Name
GitLab.Branches.web_urlUnknownBranch Web URL
GitLab.Branches.commit.idUnknownBranch Head Commit ID

Command Example#

!gitlab-projects-get-repository-branches id=21898188 using="Moon-Integration"

Context Example#

{
"GitLab": {
"Branches": [
{
"can_push": true,
"commit": {
"author_email": "57979775+test-user@users.noreply.github.com",
"author_name": "test user",
"authored_date": "2020-09-09T05:39:00.000+00:00",
"committed_date": "2020-09-09T05:39:00.000+00:00",
"committer_email": "noreply@github.com",
"committer_name": "GitHub",
"created_at": "2020-09-09T05:39:00.000+00:00",
"id": "3ccb453019594b9a56ae8090663af76dcac4cc0c",
"message": "Create atom.py",
"parent_ids": null,
"short_id": "3ccb4530",
"title": "Create atom.py",
"web_url": "https://gitlab.com/test-user/moon/-/commit/3ccb453019594b9a56ae8090663af76dcac4cc0c"
},
"default": false,
"developers_can_merge": false,
"developers_can_push": false,
"merged": false,
"name": "codeql",
"protected": false,
"web_url": "https://gitlab.com/test-user/moon/-/tree/codeql"
},
{
"can_push": true,
"commit": {
"author_email": "amahmoud@paloaltonetworks.com",
"author_name": "test user",
"authored_date": "2020-09-09T14:53:17.000+00:00",
"committed_date": "2020-09-09T14:53:17.000+00:00",
"committer_email": "amahmoud@paloaltonetworks.com",
"committer_name": "test user",
"created_at": "2020-09-09T14:53:17.000+00:00",
"id": "39eb3dc0c7e86d0b943df1be922b173068010bf5",
"message": "Update ReadME",
"parent_ids": null,
"short_id": "39eb3dc0",
"title": "Update ReadME",
"web_url": "https://gitlab.com/test-user/moon/-/commit/39eb3dc0c7e86d0b943df1be922b173068010bf5"
},
"default": true,
"developers_can_merge": false,
"developers_can_push": false,
"merged": false,
"name": "master",
"protected": true,
"web_url": "https://gitlab.com/test-user/moon/-/tree/master"
},
{
"can_push": true,
"commit": {
"author_email": "57979775+test-user@users.noreply.github.com",
"author_name": "test user",
"authored_date": "2020-09-09T05:40:27.000+00:00",
"committed_date": "2020-09-09T05:40:27.000+00:00",
"committer_email": "noreply@github.com",
"committer_name": "GitHub",
"created_at": "2020-09-09T05:40:27.000+00:00",
"id": "24ddc466d4736222407585a5d947b48b30265fe4",
"message": "Create template.yaml",
"parent_ids": null,
"short_id": "24ddc466",
"title": "Create template.yaml",
"web_url": "https://gitlab.com/test-user/moon/-/commit/24ddc466d4736222407585a5d947b48b30265fe4"
},
"default": false,
"developers_can_merge": false,
"developers_can_push": false,
"merged": false,
"name": "prisma",
"protected": false,
"web_url": "https://gitlab.com/test-user/moon/-/tree/prisma"
},
{
"can_push": true,
"commit": {
"author_email": "57979775+test-user@users.noreply.github.com",
"author_name": "test user",
"authored_date": "2020-09-09T05:49:46.000+00:00",
"committed_date": "2020-09-09T05:49:46.000+00:00",
"committer_email": "noreply@github.com",
"committer_name": "GitHub",
"created_at": "2020-09-09T05:49:46.000+00:00",
"id": "fb3f67b779ead6bff43c8a5002de516a2e8ca99b",
"message": "Create template.yaml",
"parent_ids": null,
"short_id": "fb3f67b7",
"title": "Create template.yaml",
"web_url": "https://gitlab.com/test-user/moon/-/commit/fb3f67b779ead6bff43c8a5002de516a2e8ca99b"
},
"default": false,
"developers_can_merge": false,
"developers_can_push": false,
"merged": false,
"name": "prisma-cloud",
"protected": false,
"web_url": "https://gitlab.com/test-user/moon/-/tree/prisma-cloud"
},
{
"can_push": true,
"commit": {
"author_email": "amahmoud@paloaltonetworks.com",
"author_name": "test user",
"authored_date": "2020-09-09T14:56:09.000+00:00",
"committed_date": "2020-09-09T14:56:09.000+00:00",
"committer_email": "amahmoud@paloaltonetworks.com",
"committer_name": "test user",
"created_at": "2020-09-09T14:56:09.000+00:00",
"id": "405fc6ea44910177f48db9b2eb6839efb4211743",
"message": "Test PR",
"parent_ids": null,
"short_id": "405fc6ea",
"title": "Test PR",
"web_url": "https://gitlab.com/test-user/moon/-/commit/405fc6ea44910177f48db9b2eb6839efb4211743"
},
"default": false,
"developers_can_merge": false,
"developers_can_push": false,
"merged": false,
"name": "vulnerable",
"protected": false,
"web_url": "https://gitlab.com/test-user/moon/-/tree/vulnerable"
}
]
}
}

Human Readable Output#

Results#

can_pushcommitdefaultdevelopers_can_mergedevelopers_can_pushmergednameprotectedweb_url
trueid: 3ccb453019594b9a56ae8090663af76dcac4cc0c
short_id: 3ccb4530
created_at: 2020-09-09T05:39:00.000+00:00
parent_ids: null
title: Create atom.py
message: Create atom.py
author_name: test user
author_email: 57979775+test-user@users.noreply.github.com
authored_date: 2020-09-09T05:39:00.000+00:00
committer_name: GitHub
committer_email: noreply@github.com
committed_date: 2020-09-09T05:39:00.000+00:00
web_url: https://gitlab.com/test-user/moon/-/commit/3ccb453019594b9a56ae8090663af76dcac4cc0c
falsefalsefalsefalsecodeqlfalsehttps://gitlab.com/test-user/moon/-/tree/codeql
trueid: 39eb3dc0c7e86d0b943df1be922b173068010bf5
short_id: 39eb3dc0
created_at: 2020-09-09T14:53:17.000+00:00
parent_ids: null
title: Update ReadME
message: Update ReadME
author_name: test user
author_email: amahmoud@paloaltonetworks.com
authored_date: 2020-09-09T14:53:17.000+00:00
committer_name: test user
committer_email: amahmoud@paloaltonetworks.com
committed_date: 2020-09-09T14:53:17.000+00:00
web_url: https://gitlab.com/test-user/moon/-/commit/39eb3dc0c7e86d0b943df1be922b173068010bf5
truefalsefalsefalsemastertruehttps://gitlab.com/test-user/moon/-/tree/master
trueid: 24ddc466d4736222407585a5d947b48b30265fe4
short_id: 24ddc466
created_at: 2020-09-09T05:40:27.000+00:00
parent_ids: null
title: Create template.yaml
message: Create template.yaml
author_name: test user
author_email: 57979775+test-user@users.noreply.github.com
authored_date: 2020-09-09T05:40:27.000+00:00
committer_name: GitHub
committer_email: noreply@github.com
committed_date: 2020-09-09T05:40:27.000+00:00
web_url: https://gitlab.com/test-user/moon/-/commit/24ddc466d4736222407585a5d947b48b30265fe4
falsefalsefalsefalseprismafalsehttps://gitlab.com/test-user/moon/-/tree/prisma
trueid: fb3f67b779ead6bff43c8a5002de516a2e8ca99b
short_id: fb3f67b7
created_at: 2020-09-09T05:49:46.000+00:00
parent_ids: null
title: Create template.yaml
message: Create template.yaml
author_name: test user
author_email: 57979775+test-user@users.noreply.github.com
authored_date: 2020-09-09T05:49:46.000+00:00
committer_name: GitHub
committer_email: noreply@github.com
committed_date: 2020-09-09T05:49:46.000+00:00
web_url: https://gitlab.com/test-user/moon/-/commit/fb3f67b779ead6bff43c8a5002de516a2e8ca99b
falsefalsefalsefalseprisma-cloudfalsehttps://gitlab.com/test-user/moon/-/tree/prisma-cloud
trueid: 405fc6ea44910177f48db9b2eb6839efb4211743
short_id: 405fc6ea
created_at: 2020-09-09T14:56:09.000+00:00
parent_ids: null
title: Test PR
message: Test PR
author_name: test user
author_email: amahmoud@paloaltonetworks.com
authored_date: 2020-09-09T14:56:09.000+00:00
committer_name: test user
committer_email: amahmoud@paloaltonetworks.com
committed_date: 2020-09-09T14:56:09.000+00:00
web_url: https://gitlab.com/test-user/moon/-/commit/405fc6ea44910177f48db9b2eb6839efb4211743
falsefalsefalsefalsevulnerablefalsehttps://gitlab.com/test-user/moon/-/tree/vulnerable

gitlab-projects-create-repository-branch#


Create a new branch in the repository.

Base Command#

gitlab-projects-create-repository-branch

Input#

Argument NameDescriptionRequired
idThe ID or URL encoded path of the project owned by the authenticated user.Required
branchName of the branch.Required
refBranch name, or commit SHA to create branch from.Required

Context Output#

PathTypeDescription
GitLab.Branches.nameUnknownBranch Name
GitLab.Branches.web_urlUnknownBranch Web URL
GitLab.Branches.commit.idUnknownBranch Head Commit ID

Command Example#

!gitlab-projects-create-repository-branch branch=feature1 id=21898188 ref=master using="Moon-Integration"

Context Example#

{
"GitLab": {
"Branches": {
"can_push": true,
"commit": {
"author_email": "amahmoud@paloaltonetworks.com",
"author_name": "test user",
"authored_date": "2020-09-09T18:53:17.000+04:00",
"committed_date": "2020-09-09T18:53:17.000+04:00",
"committer_email": "amahmoud@paloaltonetworks.com",
"committer_name": "test user",
"created_at": "2020-09-09T18:53:17.000+04:00",
"id": "39eb3dc0c7e86d0b943df1be922b173068010bf5",
"message": "Update ReadME\n",
"parent_ids": [
"b736f064314a254c5c847f042938290167598454"
],
"short_id": "39eb3dc0",
"title": "Update ReadME",
"web_url": "https://gitlab.com/test-user/moon/-/commit/39eb3dc0c7e86d0b943df1be922b173068010bf5"
},
"default": false,
"developers_can_merge": false,
"developers_can_push": false,
"merged": false,
"name": "feature1",
"protected": false,
"web_url": "https://gitlab.com/test-user/moon/-/tree/feature1"
}
}
}

Human Readable Output#

Results#

can_pushcommitdefaultdevelopers_can_mergedevelopers_can_pushmergednameprotectedweb_url
trueid: 39eb3dc0c7e86d0b943df1be922b173068010bf5
short_id: 39eb3dc0
created_at: 2020-09-09T18:53:17.000+04:00
parent_ids: b736f064314a254c5c847f042938290167598454
title: Update ReadME
message: Update ReadME

author_name: test user
author_email: amahmoud@paloaltonetworks.com
authored_date: 2020-09-09T18:53:17.000+04:00
committer_name: test user
committer_email: amahmoud@paloaltonetworks.com
committed_date: 2020-09-09T18:53:17.000+04:00
web_url: https://gitlab.com/test-user/moon/-/commit/39eb3dc0c7e86d0b943df1be922b173068010bf5
falsefalsefalsefalsefeature1falsehttps://gitlab.com/test-user/moon/-/tree/feature1

gitlab-projects-delete-repository-branch#


Delete a branch from the repository.

Base Command#

gitlab-projects-delete-repository-branch

Input#

Argument NameDescriptionRequired
idThe ID or URL encoded path of the project owned by the authenticated user.Required
branchThe name of the branch.Required

Context Output#

There is no context output for this command.

Command Example#

!gitlab-projects-delete-repository-branch branch=feature1 id=21898188 using="Moon-Integration"

Context Example#

{
"GitLab": {
"Branches": {
"message": "Branch 'feature1' is deleted."
}
}
}

Human Readable Output#

Results#

message
Branch 'feature1' is deleted.

gitlab-projects-delete-repository-merged-branches#


Deletes all branches that are merged into the project’s default branch.

Base Command#

gitlab-projects-delete-repository-merged-branches

Input#

Argument NameDescriptionRequired
idThe ID or URL encoded path of the project owned by the authenticated user.Required

Context Output#

There is no context output for this command.

Command Example#

!gitlab-projects-delete-repository-merged-branches id=21898188 using="Moon-Integration"

Context Example#

{
"GitLab": {
"message": "202 Accepted"
}
}

Human Readable Output#

Results#

message
202 Accepted

gitlab-get-version#


Retrieves version information for the GitLab instance, and responds 200 OK for authenticated users.

Base Command#

gitlab-get-version

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
GitLab.versionStringGitLab Verion
GitLab.revisionStringGitLab Revision

Command Example#

!gitlab-get-version using="Moon-Integration"

Context Example#

{
"GitLab": {
"revision": "18e3d7de8d5",
"version": "13.6.0-pre"
}
}

Human Readable Output#

Results#

revisionversion
18e3d7de8d513.6.0-pre

gitlab-pipelines-schedules-list#


Gets the details of the pipeline schedules.

Base Command#

gitlab-pipelines-schedules-list

Input#

Argument NameDescriptionRequired
project_idProject ID from which to retrieve pipeline schedules.Required
pipeline_schedule_idID of specific pipeline schedule from which to retrieve its details.Optional

Context Output#

PathTypeDescription
GitLab.PipelineSchedule.idNumberPipeline schedule ID.
GitLab.PipelineSchedule.descriptionStringPipeline schedule description.
GitLab.PipelineSchedule.refStringPipeline schedule reference.
GitLab.PipelineSchedule.next_run_atDatePipeline schedule next run scheduled time.
GitLab.PipelineSchedule.activeBooleanWhether pipeline schedule is active.
GitLab.PipelineSchedule.created_atDateWhen pipeline schedule was created.
GitLab.PipelineSchedule.updated_atDateWhen pipeline schedule was last updated.
GitLab.PipelineSchedule.last_pipeline.idNumberID of the last pipeline that was run by the scheduled pipeline. Relevant only the pipeline schedule ID is given.
GitLab.PipelineSchedule.last_pipeline.shaStringSHA of the last pipeline that was run by the scheduled pipeline. Relevant only when the pipeline schedule ID is given.
GitLab.PipelineSchedule.last_pipeline.refStringReference of the last pipeline that was run by the scheduled pipeline. Relevant only when the pipeline schedule ID is given.
GitLab.PipelineSchedule.last_pipeline.statusStringStatus of the last pipeline that was run by the scheduled pipeline. Relevant only when the pipeline schedule ID is given.

Command Example#

!gitlab-pipelines-schedules-list project_id=123

Context Example#

{
"GitLab": {
"PipelineSchedule": [
{
"active": true,
"created_at": "2021-05-23T14:00:34.105Z",
"description": "Run the nightly build",
"id": 336,
"next_run_at": "2021-06-16T00:05:00.000Z",
"ref": "master",
"updated_at": "2021-06-15T00:05:06.617Z"
},
{
"active": false,
"created_at": "2021-05-12T11:57:47.436Z",
"description": "Upload",
"id": 331,
"next_run_at": "2021-05-24T02:05:00.000Z",
"ref": "upload_flow",
"updated_at": "2021-05-23T08:28:39.885Z"
}
]
}
}

Human Readable Output#

GitLab Pipeline Schedules#

activecreated_atdescriptionidnext_run_atrefupdated_at
true2021-05-23T14:00:34.105ZRun the nightly build3362021-06-16T00:05:00.000Zmaster2021-06-15T00:05:06.617Z
false2021-05-12T11:57:47.436ZUpload3312021-05-24T02:05:00.000Zupload_flow2021-05-23T08:28:39.885Z
true2021-05-12T09:42:42.788Zbucket_upload3302021-06-15T21:05:00.000Zmaster2021-06-15T09:05:05.711Z
true2021-05-10T13:58:35.217ZInstance testing trigger3292021-06-16T02:05:00.000Zmaster2021-06-15T02:05:03.368Z
true2021-05-09T09:52:47.379ZNightly build3282021-06-16T00:05:00.000Zmaster2021-06-15T00:05:06.234Z

gitlab-pipelines-list#


Gets the details of the pipelines.

Base Command#

gitlab-pipelines-list

Input#

Argument NameDescriptionRequired
project_idProject ID from which to retrieve pipelines.Required
pipeline_idID of specific pipeline from which to retrieve its details.Optional
refReference name of the pipelines, e.g., 'master'.Optional
statusRetrieves pipelines of which status matches the given status. Possible values are: waiting_for_resource, preparing, pending, running, success, failed, canceled, skipped, manual, and scheduled.Optional

Context Output#

PathTypeDescription
GitLab.Pipeline.idNumberPipeline ID.
GitLab.Pipeline.project_idNumberProject ID the pipeline belongs to.
GitLab.Pipeline.statusStringStatus of the pipeline.
GitLab.Pipeline.refStringReference of the pipeline.
GitLab.Pipeline.shaStringSHA of the pipeline.
GitLab.Pipeline.created_atDateTime when the pipeline was created.
GitLab.Pipeline.updated_atDateTime when the pipeline was last updated.
GitLab.Pipeline.started_atDateTime when the pipeline was started.
GitLab.Pipeline.finished_atDateTime when the pipeline was finished.
GitLab.Pipeline.durationNumberDuration of the pipeline.
GitLab.Pipeline.web_urlStringWeb URL of the pipeline.
GitLab.Pipeline.user.nameStringName of the user who triggered the pipeline.
GitLab.Pipeline.user.usernameStringUsername that triggered the pipeline.
GitLab.Pipeline.user.idStringID of the user who triggered the pipeline.
GitLab.Pipeline.user.stateStringState of the user who triggered the pipeline.
GitLab.Pipeline.user.avatar_urlStringAvatar URL of the user who trigerred the pipeline.
GitLab.Pipeline.user.web_urlStringWeb URL of the user who triggered the pipeline.

Command Example#

!gitlab-pipelines-list project_id=123 pipeline_id=1254426

Context Example#

{
"GitLab": {
"Pipeline": {
"created_at": "2021-06-15T00:05:09.041Z",
"duration": 5945,
"finished_at": "2021-06-15T01:44:17.788Z",
"id": 1254426,
"project_id": 123,
"ref": "master",
"sha": "asas4kj124kjasdas5hn125hakjs5h15jh2jas5kljas5",
"started_at": "2021-06-15T00:05:11.131Z",
"status": "failed",
"updated_at": "2021-06-15T01:44:17.793Z",
"web_url": "https://server_url/-/pipelines/1254426"
}
}
}

Human Readable Output#

GitLab Pipelines#

created_atdurationfinished_atidproject_idrefshastarted_atstatusupdated_atweb_url
2021-06-15T00:05:09.041Z59452021-06-15T01:44:17.788Z1254426123masterasas4kj124kjasdas5hn125hakjs5h15jh2jas5kljas52021-06-15T00:05:11.131Zfailed2021-06-15T01:44:17.793Zhttps://server_url/-/pipelines/1254426

gitlab-jobs-list#


Gets details of jobs.

Base Command#

gitlab-jobs-list

Input#

Argument NameDescriptionRequired
project_idProject ID from which to retrieve jobs details.Required
pipeline_idID of the pipeline from which to retrieve its jobs.Required

Context Output#

PathTypeDescription
GitLab.Job.created_atDateTime the job was created.
GitLab.Job.started_atDateTime the job was started.
GitLab.Job.finished_atDateTime the job was finished.
GitLab.Job.durationNumberDuration of the job.
GitLab.Job.idNumberID of the job.
GitLab.Job.nameStringName of the job.
GitLab.Job.pipeline.idNumberPipeline the job belongs to.
GitLab.Job.pipeline.project_idNumberProject ID the job belongs to.
GitLab.Job.pipeline.refStringReference of the pipeline the job belongs to.
GitLab.Job.pipeline.shaStringSHA of the pipeline the job belongs to.
GitLab.Job.pipeline.statusStringStatus of the pipeline the job belongs to.
GitLab.Job.refStringReference name of the job.
GitLab.Job.stageStringStage of the job.
GitLab.Job.web_urlStringWeb URL of the job.
GitLab.Job.statusStringThe status of the job.

Command Example#

!gitlab-jobs-list project_id=123 pipeline_id=1254426

Context Example#

{
"GitLab": {
"Job": [
{
"created_at": "2021-06-15T00:05:09.139Z",
"duration": 4104.433651,
"finished_at": "2021-06-15T01:44:16.559Z",
"id": 6054873,
"name": "server_master",
"pipeline": {
"created_at": "2021-06-15T00:05:09.041Z",
"id": 1254426,
"project_id": 123,
"ref": "master",
"sha": "asas4kj124kjasdas5hn125hakjs5h15jh2jas5kljas5",
"status": "failed",
"updated_at": "2021-06-15T01:44:17.793Z",
"web_url": "https://server_url/-/pipelines/1254426"
},
"ref": "master",
"stage": "run-instances",
"started_at": "2021-06-15T00:35:52.125Z",
"web_url": "https://server_url/-/jobs/6054873"
},
{
"created_at": "2021-06-15T00:05:09.078Z",
"duration": 1841.130269,
"finished_at": "2021-06-15T00:35:51.306Z",
"id": 6054872,
"name": "create-instances",
"pipeline": {
"created_at": "2021-06-15T00:05:09.041Z",
"id": 1254426,
"project_id": 123,
"ref": "master",
"sha": "asas4kj124kjasdas5hn125hakjs5h15jh2jas5kljas5",
"status": "failed",
"updated_at": "2021-06-15T01:44:17.793Z",
"web_url": "https://server_url/-/pipelines/1254426"
},
"ref": "master",
"stage": "create-instances",
"started_at": "2021-06-15T00:05:10.176Z",
"web_url": "https://server_url/-/jobs/6054872"
}
]
}
}

Human Readable Output#

GitLab Jobs#

created_atdurationfinished_atidnamepipelinerefstagestarted_atweb_url
2021-06-15T00:05:09.139Z4104.4336512021-06-15T01:44:16.559Z6054873server_masterid: 1254426
project_id: 123
sha: asas4kj124kjasdas5hn125hakjs5h15jh2jas5kljas5
ref: master
status: failed
created_at: 2021-06-15T00:05:09.041Z
updated_at: 2021-06-15T01:44:17.793Z
web_url: https://server_url/-/pipelines/1254426
masterrun-instances2021-06-15T00:35:52.125Zhttps://server_url/-/jobs/6054873
2021-06-15T00:05:09.078Z1841.1302692021-06-15T00:35:51.306Z6054872create-instancesid: 1254426
project_id: 123
sha: asas4kj124kjasdas5hn125hakjs5h15jh2jas5kljas5
ref: master
status: failed
created_at: 2021-06-15T00:05:09.041Z
updated_at: 2021-06-15T01:44:17.793Z
web_url: https://server_url/-/pipelines/1254426
mastercreate-instances2021-06-15T00:05:10.176Zhttps://server_url/-/jobs/6054872

gitlab-artifact-get#


Gets an artifact from a given artifact path, corresponding to a given job ID.

Base Command#

gitlab-artifact-get

Input#

Argument NameDescriptionRequired
project_idProject ID from which to retrieve artifact.Required
job_idID of specific job from which to retrieve its artifact.Required
artifact_path_suffixSuffix to the path of an artifact from which to retrieve its data.Required

Context Output#

PathTypeDescription
GitLab.Artifact.job_idStringJob ID from which the artifact was taken.
GitLab.Artifact.artifact_path_suffixStringSuffix of the given artifact path.
GitLab.Artifact.artifact_dataStringData of the artifact requested.

Command Example#

!gitlab-artifact-get project_id=123 job_id=6063195 artifact_path_suffix=artifacts/failed_tests.txt

Context Example#

{
"GitLab": {
"Artifact": {
"artifact_data": "Carbon Black Response Test",
"artifact_path_suffix": "artifacts/failed_tests.txt",
"job_id": "6063195"
}
}
}

Human Readable Output#

Results#

artifact_dataartifact_path_suffixjob_id
Carbon Black Response Testartifacts/failed_tests.txt6063195

gitlab-issue-edit#


Edit an issue

Base Command#

gitlab-issue-edit

Input#

Argument NameDescriptionRequired
add_labelsThe labels to add to the issue.Optional
remove_labelsThe labels to remove from the issue.Optional
descriptionThe description of the issue.Optional
project_idProject ID from which to retrieve the issue.Required
issue_idIssue ID.Required

Context Output#

PathTypeDescription
GitLab.Issue.idNumberThe issue ID.
GitLab.Issue.iidNumberThe issue IID.
GitLab.Issue.project_idNumberThe project ID of the issue.
GitLab.Issue.titleStringThe issue title.
GitLab.Issue.descriptionStringThe issue description.
GitLab.Issue.stateStringThe issue state.
GitLab.Issue.created_atDateThe time the issue was created.
GitLab.Issue.updated_atDateThe time the issue was updated.
GitLab.Issue.closed_atDateThe time the issue was closed.
GitLab.Issue.closed_byStringThe user who closed the issue.
GitLab.Issue.labelsStringComma seperated values of the issue's labels.
GitLab.Issue.merge_requests_countNumber
GitLab.Issue.has_tasksBooleanWhether the issue has tasks or not.
GitLab.Issue.task_statusStringThe status of the issue's tasks.

Command Example#

!gitlab-issue-edit project_id=123 issue_id=1 add_labels=label1,label2

Context Example#

{
"GitLab": {
"Issue": {
"_links": {
"award_emoji": "www.google.com",
"notes": "www.google.com",
"project": "www.google.com",
"self": "www.google.com"
},
"assignee": {
"avatar_url": "www.google.com",
"id": 9831,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
},
"assignees": [
{
"avatar_url": "www.google.com",
"id": 9831,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
}
],
"author": {
"avatar_url": "www.google.com",
"id": 7127,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
},
"blocking_issues_count": 0,
"closed_at": null,
"closed_by": null,
"confidential": false,
"created_at": "2021-07-15T16:25:57.419Z",
"description": "Issue Description",
"discussion_locked": null,
"downvotes": 0,
"due_date": null,
"epic": null,
"epic_iid": null,
"has_tasks": true,
"health_status": null,
"id": 40572,
"iid": 1,
"labels": [
"label1",
"label2"
],
"merge_requests_count": 0,
"milestone": null,
"moved_to_id": null,
"project_id": 7959,
"references": {
"full": "wow",
"relative": "#1",
"short": "#1"
},
"service_desk_reply_to": null,
"state": "opened",
"subscribed": true,
"task_completion_status": {
"completed_count": 9,
"count": 46
},
"task_status": "9 of 46 tasks completed",
"time_stats": {
"human_time_estimate": null,
"human_total_time_spent": null,
"time_estimate": 0,
"total_time_spent": 0
},
"title": "wow",
"updated_at": "2021-08-19T13:54:12.337Z",
"upvotes": 0,
"user_notes_count": 3,
"web_url": "www.google.com",
"weight": null
}
}
}

Human Readable Output#

Edit Issue 1#

_linksassigneeassigneesauthorblocking_issues_countclosed_atclosed_byconfidentialcreated_atdescriptiondiscussion_lockeddownvotesdue_dateepicepic_iidhas_taskshealth_statusidiidlabelsmerge_requests_countmilestonemoved_to_idproject_idreferencesservice_desk_reply_tostatesubscribedtask_completion_statustask_statustime_statstitleupdated_atupvotesuser_notes_countweb_urlweight
award_emoji: www.google.com
notes: www.google.com
project: www.google.com
self: www.google.com
avatar_url: www.google.com
id: 9831
name: wow
state: active
username: wow
web_url: www.google.com
{'avatar_url': 'www.google.com', 'id': 9831, 'name': 'wow', 'state': 'active', 'username': 'wow', 'web_url': 'www.google.com'}avatar_url: www.google.com
id: 7127
name: wow
state: active
username: wow
web_url: www.google.com
0false2021-07-15T16:25:57.419ZIssue Description0true405721label1,
label2
07959full: wow
relative: #1
short: #1
openedtruecompleted_count: 9
count: 46
9 of 46 tasks completedhuman_time_estimate: null
human_total_time_spent: null
time_estimate: 0
total_time_spent: 0
wow2021-08-19T13:54:12.337Z03www.google.com

gitlab-issue-create#


Create an issue

Base Command#

gitlab-issue-create

Input#

Argument NameDescriptionRequired
labelsComma separated values of labels to add to the issue.Optional
titleThe issue title.Required
descriptionThe issue description.Required
project_idProject ID of the created issue.Required

Context Output#

PathTypeDescription
GitLab.Issue.idNumberThe issue ID.
GitLab.Issue.iidNumberThe issue IID.
GitLab.Issue.project_idNumberThe project ID of the issue.
GitLab.Issue.titleStringThe issue title.
GitLab.Issue.descriptionStringThe issue description.
GitLab.Issue.stateStringThe issue state.
GitLab.Issue.created_atDateThe time the issue was created.
GitLab.Issue.updated_atDateThe time the issue was updated.
GitLab.Issue.closed_atDateThe time the issue was closed.
GitLab.Issue.closed_byStringThe user who closed the issue.
GitLab.Issue.labelsStringComma seperated values of the issue's labels.
GitLab.Issue.merge_requests_countNumber
GitLab.Issue.has_tasksBooleanWhether the issue has tasks or not.
GitLab.Issue.task_statusStringThe status of the issue's tasks.

Command Example#

gitlab-issue-create labels="a,b,c" title=wow description="bla bla" project_id=123

Context Example#

{
"GitLab": {
"Issue": {
"_links": {
"award_emoji": "www.google.com",
"notes": "www.google.com",
"project": "www.google.com",
"self": "www.google.com"
},
"assignee": {
"avatar_url": "www.google.com",
"id": 9831,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
},
"assignees": [
{
"avatar_url": "www.google.com",
"id": 9831,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
}
],
"author": {
"avatar_url": "www.google.com",
"id": 7127,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
},
"blocking_issues_count": 0,
"closed_at": null,
"closed_by": null,
"confidential": false,
"created_at": "2021-07-15T16:25:57.419Z",
"description": "Issue Description",
"discussion_locked": null,
"downvotes": 0,
"due_date": null,
"epic": null,
"epic_iid": null,
"has_tasks": true,
"health_status": null,
"id": 40572,
"iid": 1,
"labels": [
"label1",
"label2"
],
"merge_requests_count": 0,
"milestone": null,
"moved_to_id": null,
"project_id": 7959,
"references": {
"full": "wow",
"relative": "#1",
"short": "#1"
},
"service_desk_reply_to": null,
"state": "opened",
"subscribed": true,
"task_completion_status": {
"completed_count": 9,
"count": 46
},
"task_status": "9 of 46 tasks completed",
"time_stats": {
"human_time_estimate": null,
"human_total_time_spent": null,
"time_estimate": 0,
"total_time_spent": 0
},
"title": "wow",
"updated_at": "2021-08-19T13:54:12.337Z",
"upvotes": 0,
"user_notes_count": 3,
"web_url": "www.google.com",
"weight": null
}
}
}

Human Readable Output#

Create Issue#

_linksassigneeassigneesauthorblocking_issues_countclosed_atclosed_byconfidentialcreated_atdescriptiondiscussion_lockeddownvotesdue_dateepicepic_iidhas_taskshealth_statusidiidlabelsmerge_requests_countmilestonemoved_to_idproject_idreferencesservice_desk_reply_tostatesubscribedtask_completion_statustask_statustime_statstitleupdated_atupvotesuser_notes_countweb_urlweight
award_emoji: www.google.com
notes: www.google.com
project: www.google.com
self: www.google.com
avatar_url: www.google.com
id: 9831
name: wow
state: active
username: wow
web_url: www.google.com
{'avatar_url': 'www.google.com', 'id': 9831, 'name': 'wow', 'state': 'active', 'username': 'wow', 'web_url': 'www.google.com'}avatar_url: www.google.com
id: 7127
name: wow
state: active
username: wow
web_url: www.google.com
0false2021-07-15T16:25:57.419ZIssue Description0true405721label1,
label2
07959full: wow
relative: #1
short: #1
openedtruecompleted_count: 9
count: 46
9 of 46 tasks completedhuman_time_estimate: null
human_total_time_spent: null
time_estimate: 0
total_time_spent: 0
wow2021-08-19T13:54:12.337Z03www.google.com

gitlab-issues-list#


List all issues

Base Command#

gitlab-issues-list

Input#

Argument NameDescriptionRequired
labelsComma seperated values of labels to search issues by.Optional
scopeOn what scope to perform the search on. Possible values are: title, description, title,description. Default is title,description.Optional
searchThe search clause.Optional
stateThe state of the issue. Possible values are: opened, closed, all. Default is all.Optional
project_idProject ID from which to retrieve the Merge Requests.Required
assignee_usernamefilter by assignee username.Optional

Context Output#

PathTypeDescription
GitLab.Issue.idNumberThe issue ID.
GitLab.Issue.iidNumberThe issue IID.
GitLab.Issue.project_idNumberThe project ID of the issue.
GitLab.Issue.titleStringThe issue title.
GitLab.Issue.descriptionStringThe issue description.
GitLab.Issue.stateStringThe issue state.
GitLab.Issue.created_atDateThe time the issue was created.
GitLab.Issue.updated_atDateThe time the issue was updated.
GitLab.Issue.closed_atDateThe time the issue was closed.
GitLab.Issue.closed_byStringThe user who closed the issue.
GitLab.Issue.labelsStringComma seperated values of the issue's labels.
GitLab.Issue.merge_requests_countNumber
GitLab.Issue.has_tasksBooleanWhether the issue has tasks or not.
GitLab.Issue.task_statusStringThe status of the issue's tasks.

Command Example#

!gitlab-issues-list project_id=123 state=opened search="Summary"

Context Example#

{
"GitLab": {
"Issue": {
"_links": {
"award_emoji": "www.google.com",
"notes": "www.google.com",
"project": "www.google.com",
"self": "www.google.com"
},
"assignee": {
"avatar_url": "www.google.com",
"id": 9831,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
},
"assignees": [
{
"avatar_url": "www.google.com",
"id": 9831,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
}
],
"author": {
"avatar_url": "www.google.com",
"id": 7127,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
},
"blocking_issues_count": 0,
"closed_at": null,
"closed_by": null,
"confidential": false,
"created_at": "2021-07-15T16:25:57.419Z",
"description": "## Summary",
"discussion_locked": null,
"downvotes": 0,
"due_date": null,
"epic": null,
"epic_iid": null,
"has_tasks": true,
"health_status": null,
"id": 40572,
"iid": 1,
"labels": [],
"merge_requests_count": 0,
"milestone": null,
"moved_to_id": null,
"project_id": 7959,
"references": {
"full": "wow",
"relative": "#1",
"short": "#1"
},
"service_desk_reply_to": null,
"state": "opened",
"task_completion_status": {
"completed_count": 9,
"count": 46
},
"task_status": "9 of 46 tasks completed",
"time_stats": {
"human_time_estimate": null,
"human_total_time_spent": null,
"time_estimate": 0,
"total_time_spent": 0
},
"title": "wow",
"updated_at": "2021-08-19T13:52:28.302Z",
"upvotes": 0,
"user_notes_count": 3,
"web_url": "www.google.com",
"weight": null
}
}
}

Human Readable Output#

Issues Lists#

_linksassigneeassigneesauthorblocking_issues_countclosed_atclosed_byconfidentialcreated_atdescriptiondiscussion_lockeddownvotesdue_dateepicepic_iidhas_taskshealth_statusidiidlabelsmerge_requests_countmilestonemoved_to_idproject_idreferencesservice_desk_reply_tostatesubscribedtask_completion_statustask_statustime_statstitleupdated_atupvotesuser_notes_countweb_urlweight
award_emoji: www.google.com
notes: www.google.com
project: www.google.com
self: www.google.com
avatar_url: www.google.com
id: 9831
name: wow
state: active
username: wow
web_url: www.google.com
{'avatar_url': 'www.google.com', 'id': 9831, 'name': 'wow', 'state': 'active', 'username': 'wow', 'web_url': 'www.google.com'}avatar_url: www.google.com
id: 7127
name: wow
state: active
username: wow
web_url: www.google.com
0false2021-07-15T16:25:57.419ZIssue Description0true40572107959full: wow
relative: #1
short: #1
openedtruecompleted_count: 9
count: 46
9 of 46 tasks completedhuman_time_estimate: null
human_total_time_spent: null
time_estimate: 0
total_time_spent: 0
wow2021-08-19T13:54:12.337Z03www.google.com

gitlab-merge-requests-list#


List all merge requests

Base Command#

gitlab-merge-requests-list

Input#

Argument NameDescriptionRequired
target_branchThe target branch of the Merge Request. Default is master.Optional
stateThe state of the Merge Request. Possible values are: opened, closed, locked, merged. Default is opened.Optional
project_idProject ID from which to retrieve the Merge Requests.Required

Context Output#

PathTypeDescription
GitLab.MergeRequest.idNumberThe merge request ID.
GitLab.MergeRequest.iidNumberThe merge request IID.
GitLab.MergeRequest.project_idNumberThe project ID of the merge request.
GitLab.MergeRequest.titleStringThe merge request title.
GitLab.MergeRequest.descriptionStringThe merge request description
GitLab.MergeRequest.stateStringThe merge request state.
GitLab.MergeRequest.created_atDateThe time the merge request was created.
GitLab.MergeRequest.updated_atDateThe time the merge request was updated.
GitLab.MergeRequest.merged_atDateThe time the merge request was merged.
GitLab.MergeRequest.closed_byStringThe user who closed the merge request.
GitLab.MergeRequest.closed_atDateThe time the merge request was closed.
GitLab.MergeRequest.target_branchStringThe merge request target branch.
GitLab.MergeRequest.source_branchStringThe merge request source branch.
GitLab.MergeRequest.assigneeStringThe merge request assignee.
GitLab.MergeRequest.shaStringThe merge request commit SHA.
GitLab.MergeRequest.merge_commit_shaStringThe merge request merge commit SHA.
GitLab.MergeRequest.squash_commit_shaStringThe merge request squash commit SHA.

Command Example#

!gitlab-merge-requests-list target_branch=development project_id=123 state=merged

Context Example#

{
"GitLab": {
"MergeRequest": [
{
"approvals_before_merge": null,
"assignee": null,
"assignees": [],
"author": {
"avatar_url": "www.google.com",
"id": 10582,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
},
"blocking_discussions_resolved": true,
"closed_at": null,
"closed_by": null,
"created_at": "2021-08-16T12:16:06.143Z",
"description": null,
"discussion_locked": null,
"downvotes": 0,
"force_remove_source_branch": null,
"has_conflicts": false,
"id": 53852,
"iid": 18,
"labels": [],
"merge_commit_sha": "SHA",
"merge_status": "can_be_merged",
"merge_when_pipeline_succeeds": false,
"merged_at": "2021-08-16T19:07:14.962Z",
"merged_by": {
"avatar_url": "www.google.com",
"id": 9164,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
},
"milestone": null,
"project_id": 7959,
"reference": "!18",
"references": {
"full": "wow",
"relative": "!18",
"short": "!18"
},
"reviewers": [],
"sha": "SHA",
"should_remove_source_branch": null,
"source_branch": "1.0.1.23955-feature-branch",
"source_project_id": 7959,
"squash": false,
"squash_commit_sha": null,
"state": "merged",
"target_branch": "development",
"target_project_id": 7959,
"task_completion_status": {
"completed_count": 0,
"count": 0
},
"time_stats": {
"human_time_estimate": null,
"human_total_time_spent": null,
"time_estimate": 0,
"total_time_spent": 0
},
"title": "wow",
"updated_at": "2021-08-16T19:07:14.765Z",
"upvotes": 0,
"user_notes_count": 0,
"web_url": "www.google.com",
"work_in_progress": false
}
]
}
}

Human Readable Output#

Merge Request Lists to branch master in state opened#

approvals_before_mergeassigneeassigneesauthorblocking_discussions_resolvedclosed_atclosed_bycreated_atdescriptiondiscussion_lockeddownvotesforce_remove_source_branchhas_conflictsidiidlabelsmerge_commit_shamerge_statusmerge_when_pipeline_succeedsmerged_atmerged_bymilestoneproject_idreferencereferencesreviewersshashould_remove_source_branchsource_branchsource_project_idsquashsquash_commit_shastatetarget_branchtarget_project_idtask_completion_statustime_statstitleupdated_atupvotesuser_notes_countweb_urlwork_in_progress
avatar_url: www.google.com
id: 10582
name: wow
state: active
username: wow
web_url: www.google.com
true2021-08-16T12:16:06.143Z0false5385218SHAcan_be_mergedfalse2021-08-16T19:07:14.962Zavatar_url: www.google.com
id: 9164
name: wow
state: active
username: wow
web_url: www.google.com
7959!18full: wow
relative: !18
short: !18
SHA1.0.1.23955-feature-branch7959falsemergeddevelopment7959completed_count: 0
count: 0
human_time_estimate: null
human_total_time_spent: null
time_estimate: 0
total_time_spent: 0
wow2021-08-16T19:07:14.765Z00www.google.comfalse

gitlab-merge-request-get#


Get a Merge Request

Base Command#

gitlab-merge-request-get

Input#

Argument NameDescriptionRequired
project_idProject ID from which to retrieve the Merge Requests.Required
merge_request_iidMerge Request IID.Required

Context Output#

PathTypeDescription
GitLab.MergeRequest.idNumberThe merge request ID.
GitLab.MergeRequest.iidNumberThe merge request IID.
GitLab.MergeRequest.project_idNumberThe project ID of the merge request.
GitLab.MergeRequest.titleStringThe merge request title.
GitLab.MergeRequest.descriptionStringThe merge request description
GitLab.MergeRequest.stateStringThe merge request state.
GitLab.MergeRequest.created_atDateThe time the merge request was created.
GitLab.MergeRequest.updated_atDateThe time the merge request was updated.
GitLab.MergeRequest.merged_atDateThe time the merge request was merged.
GitLab.MergeRequest.closed_byStringThe user who closed the merge request.
GitLab.MergeRequest.closed_atDateThe time the merge request was closed.
GitLab.MergeRequest.target_branchStringThe merge request target branch.
GitLab.MergeRequest.source_branchStringThe merge request source branch.
GitLab.MergeRequest.assigneeStringThe merge request assignee.
GitLab.MergeRequest.shaStringThe merge request commit SHA.
GitLab.MergeRequest.merge_commit_shaStringThe merge request merge commit SHA.
GitLab.MergeRequest.squash_commit_shaStringThe merge request squash commit SHA.

Command Example#

!gitlab-merge-request-get project_id=123 merge_request_iid=18

Context Example#

{
"GitLab": {
"MergeRequest": {
"approvals_before_merge": null,
"assignee": null,
"assignees": [],
"author": {
"avatar_url": "www.google.com",
"id": 10582,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
},
"blocking_discussions_resolved": true,
"closed_at": null,
"closed_by": null,
"created_at": "2021-08-16T12:16:06.143Z",
"description": null,
"discussion_locked": null,
"downvotes": 0,
"force_remove_source_branch": null,
"has_conflicts": false,
"id": 53852,
"iid": 18,
"labels": [],
"merge_commit_sha": "SHA",
"merge_status": "can_be_merged",
"merge_when_pipeline_succeeds": false,
"merged_at": "2021-08-16T19:07:14.962Z",
"merged_by": {
"avatar_url": "www.google.com",
"id": 9164,
"name": "wow",
"state": "active",
"username": "wow",
"web_url": "www.google.com"
},
"milestone": null,
"project_id": 7959,
"reference": "!18",
"references": {
"full": "wow",
"relative": "!18",
"short": "!18"
},
"reviewers": [],
"sha": "SHA",
"should_remove_source_branch": null,
"source_branch": "1.0.1.23955-feature-branch",
"source_project_id": 7959,
"squash": false,
"squash_commit_sha": null,
"state": "merged",
"target_branch": "development",
"target_project_id": 7959,
"task_completion_status": {
"completed_count": 0,
"count": 0
},
"time_stats": {
"human_time_estimate": null,
"human_total_time_spent": null,
"time_estimate": 0,
"total_time_spent": 0
},
"title": "wow",
"updated_at": "2021-08-16T19:07:14.765Z",
"upvotes": 0,
"user_notes_count": 0,
"web_url": "www.google.com",
"work_in_progress": false
}
}
}

Human Readable Output#

Merge Request 18#

approvals_before_mergeassigneeassigneesauthorblocking_discussions_resolvedclosed_atclosed_bycreated_atdescriptiondiscussion_lockeddownvotesforce_remove_source_branchhas_conflictsidiidlabelsmerge_commit_shamerge_statusmerge_when_pipeline_succeedsmerged_atmerged_bymilestoneproject_idreferencereferencesreviewersshashould_remove_source_branchsource_branchsource_project_idsquashsquash_commit_shastatetarget_branchtarget_project_idtask_completion_statustime_statstitleupdated_atupvotesuser_notes_countweb_urlwork_in_progress
avatar_url: www.google.com
id: 10582
name: wow
state: active
username: wow
web_url: www.google.com
true2021-08-16T12:16:06.143Z0false5385218SHAcan_be_mergedfalse2021-08-16T19:07:14.962Zavatar_url: www.google.com
id: 9164
name: wow
state: active
username: wow
web_url: www.google.com
7959!18full: wow
relative: !18
short: !18
SHA1.0.1.23955-feature-branch7959falsemergeddevelopment7959completed_count: 0
count: 0
human_time_estimate: null
human_total_time_spent: null
time_estimate: 0
total_time_spent: 0
wow2021-08-16T19:07:14.765Z00www.google.comfalse

gitlab-group-projects-list#


Get the list of projects of a given group.

Base Command#

gitlab-group-projects-list

Input#

Argument NameDescriptionRequired
group_idGroup ID from which to retrieve the projects.Required

Context Output#

PathTypeDescription
GitLab.Project.idNumberThe project ID.
GitLab.Project.nameStringThe project name.
GitLab.Project.path_with_namespaceStringThe project path with namespace.

Command Example#

!gitlab-group-projects-list group_id=1

Context Example#

{
"GitLab": {
"Project": {
"id": 7988,
"description": "",
"name": "wow",
"name_with_namespace": "a / b / c / wow",
"path": "wow",
"path_with_namespace": "x/a/b/c/wow",
"created_at": "2021-07-15T17:53:45.964Z",
"default_branch": "development",
"tag_list": [],
"ssh_url_to_repo": "wow",
"http_url_to_repo": "www.google.com",
"web_url": "www.google.com",
"readme_url": "www.google.com",
"avatar_url": null,
"forks_count": 0,
"star_count": 0,
"last_activity_at": "2021-08-12T03:05:08.722Z",
"namespace": {
"id": 10665,
"name": "wow",
"path": "wow",
"kind": "group",
"full_path": "a/b/c",
"parent_id": 10664,
"avatar_url": null,
"web_url": "www.google.com"
},
"container_registry_image_prefix": "www.google.com",
"_links": {
"self": "www.google.com",
"issues": "www.google.com",
"merge_requests": "www.google.com",
"repo_branches": "www.google.com",
"labels": "www.google.com",
"events": "www.google.com",
"members": "www.google.com"
},
"packages_enabled": false,
"empty_repo": false,
"archived": false,
"visibility": "public",
"resolve_outdated_diff_discussions": false,
"container_registry_enabled": false,
"container_expiration_policy": {
"cadence": "1d",
"enabled": false,
"keep_n": 10,
"older_than": "90d",
"name_regex": ".*",
"name_regex_keep": null,
"next_run_at": "2021-07-16T17:53:46.012Z"
},
"issues_enabled": true,
"merge_requests_enabled": true,
"wiki_enabled": false,
"jobs_enabled": true,
"snippets_enabled": false,
"service_desk_enabled": false,
"service_desk_address": null,
"can_create_merge_request_in": false,
"issues_access_level": "enabled",
"repository_access_level": "enabled",
"merge_requests_access_level": "enabled",
"forking_access_level": "enabled",
"wiki_access_level": "disabled",
"builds_access_level": "enabled",
"snippets_access_level": "disabled",
"pages_access_level": "enabled",
"operations_access_level": "enabled",
"analytics_access_level": "enabled",
"emails_disabled": false,
"shared_runners_enabled": true,
"lfs_enabled": false,
"creator_id": 7127,
"import_status": "finished",
"open_issues_count": 1,
"ci_default_git_depth": 50,
"ci_forward_deployment_enabled": true,
"public_jobs": true,
"build_timeout": 3600,
"auto_cancel_pending_pipelines": "enabled",
"build_coverage_regex": null,
"ci_config_path": "wow",
"shared_with_groups": [],
"only_allow_merge_if_pipeline_succeeds": false,
"allow_merge_on_skipped_pipeline": false,
"restrict_user_defined_variables": true,
"request_access_enabled": true,
"only_allow_merge_if_all_discussions_are_resolved": true,
"remove_source_branch_after_merge": true,
"printing_merge_request_link_enabled": true,
"merge_method": "merge",
"suggestion_commit_message": "",
"auto_devops_enabled": false,
"auto_devops_deploy_strategy": "continuous",
"autoclose_referenced_issues": true,
"approvals_before_merge": 0,
"mirror": false,
"external_authorization_classification_label": null,
"marked_for_deletion_at": null,
"marked_for_deletion_on": null,
"requirements_enabled": true,
"security_and_compliance_enabled": null,
"compliance_frameworks": [],
"issues_template": "",
"merge_requests_template": ""
}
}
}

Human Readable Output#

List Group Projects#

_linksallow_merge_on_skipped_pipelineanalytics_access_levelapprovals_before_mergearchivedauto_cancel_pending_pipelinesauto_devops_deploy_strategyauto_devops_enabledautoclose_referenced_issuesavatar_urlbuild_coverage_regexbuild_timeoutbuilds_access_levelcan_create_merge_request_inci_config_pathci_default_git_depthci_forward_deployment_enabledcompliance_frameworkscontainer_expiration_policycontainer_registry_enabledcontainer_registry_image_prefixcreated_atcreator_iddefault_branchdescriptionemails_disabledempty_repoexternal_authorization_classification_labelforking_access_levelforks_counthttp_url_to_repoidimport_statusissues_access_levelissues_enabledissues_templatejobs_enabledlast_activity_atlfs_enabledmarked_for_deletion_atmarked_for_deletion_onmerge_methodmerge_requests_access_levelmerge_requests_enabledmerge_requests_templatemirrornamename_with_namespacenamespaceonly_allow_merge_if_all_discussions_are_resolvedonly_allow_merge_if_pipeline_succeedsopen_issues_countoperations_access_levelpackages_enabledpages_access_levelpathpath_with_namespaceprinting_merge_request_link_enabledpublic_jobsreadme_urlremove_source_branch_after_mergerepository_access_levelrequest_access_enabledrequirements_enabledresolve_outdated_diff_discussionsrestrict_user_defined_variablessecurity_and_compliance_enabledservice_desk_addressservice_desk_enabledshared_runners_enabledshared_with_groupssnippets_access_levelsnippets_enabledssh_url_to_repostar_countsuggestion_commit_messagetag_listvisibilityweb_urlwiki_access_levelwiki_enabled
self: www.google.com
issues: www.google.com
merge_requests: www.google.com
repo_branches: www.google.com
labels: www.google.com
events: www.google.com
members: www.google.com
falseenabled0falseenabledcontinuousfalsetrue3600enabledfalsewow50truecadence: 1d
enabled: false
keep_n: 10
older_than: 90d
name_regex: .*
name_regex_keep: null
next_run_at: 2021-07-16T17:53:46.012Z
falsewww.google.com2021-07-15T17:53:45.964Z7127developmentfalsefalseenabled0www.google.com7988finishedenabledtruetrue2021-08-12T03:05:08.722Zfalsemergeenabledtruefalsewowa / b / c / wowid: 10665
name: wow
path: wow
kind: group
full_path: a/b/c
parent_id: 10664
avatar_url: null
web_url: www.google.com
truefalse1enabledfalseenabledwowx/a/b/c/wowtruetruewww.google.comtrueenabledtruetruefalsetruefalsetruedisabledfalsewow0publicwww.google.comdisabledfalse

gitlab-raw-file-get#


Get raw file

Base Command#

gitlab-raw-file-get

Input#

Argument NameDescriptionRequired
project_idProject ID to get the file from.Required
file_pathThe file path.Required
refThe branch to retrieve the file from.Required

Context Output#

PathTypeDescription
GitLab.File.refStringThe branch the file's content was taken from.
GitLab.File.pathStringThe file path.
GitLab.File.contentStringThe file content.

Command Example#

!gitlab-raw-file-get project_id=123 ref=master file=wow.py

Human Readable Output#

Raw file wow.py on branch master#

contentpathref
wowwow.pymaster