Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

GitLab Spoke

Manage the DevOps lifecycle in GitLab from your ServiceNow instance. Create flows in ServiceNow to manage branches, groups, issues, merge requests, projects, and source code in GitLab.

Request apps on the Store

Visit the ServiceNow Store to view all the available apps, and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the ServiceNow Store version history release notes.

Integration Hub subscription

This spoke requires an Integration Hub subscription. For more information, see Legal schedules - IntegrationHub overview.

Spoke version

GitLab spoke v2.5.0 is the latest version.

Compatible versions

This spoke was built for GitLab API version v4, but may be compatible with later versions.

Spoke requirements

  • GitLab account
  • An application in GitLab configured to integrate with ServiceNow
  • Application ID and Secret of the GitLab application

See the https://docs.gitlab.com/ee/integration/oauth_provider.html documentation for instructions on creating and configuring applications.

Spoke actions

The GitLab spoke provides actions to automate GitLab tasks when events occur in ServiceNow. Available actions include:

CategoryActionDescription
Branch ManagementCompare Branches Tags or CommitsCompares branches, tags, or commits.
Create BranchCreates a branch in the required project.
Delete BranchDeletes the required branch from a project.
Delete Merged BranchesDeletes the required merged branch from a project.
Look up BranchRetrieves the details of the required branch.
Look up Branches StreamRetrieves a list of branches and the branch details in a project.
Protect BranchProtects a branch in a project with access levels.
Unprotect BranchUnprotects a branch in a project with access levels.
Group ManagementAdd User To A GroupAdds user to a GitLab group.
Remove User From A GroupRemoves user from a GitLab group.
Issue ManagementCreate IssueCreates an issue in the required project.
Create Issue NoteCreates an issue note for the required issue.
Delete Issue NoteDeletes an issue note for the required issue.
Look up Issue Notes StreamRetrieves all issue notes in an issue.
Look up Issues StreamRetrieves a list of issues and issue details.
Update IssueUpdates details of the required issue.
Update Issue NoteUpdates an issue note in a project.
Merge Request ManagementAccept Merge RequestApproves a merge request in GitLab.
Create Merge RequestCreates a merge request in GitLab.
Create Merge Request NoteCreates a note for the required merge request.
Delete Merge Request NoteDeletes a note for the required merge request.
Look up all Merge Requests StreamRetrieves the list of merge requests in a project.
Look up Merge Request NotesRetrieves the list of merge request notes in a project.
Update Merge RequestUpdates details of the required merge request.
Update Merge Request NoteUpdates details of the required merge request note.
Package ManagementDelete Package FileDeletes a package file from the project package registry.
Delete Project PackageDeletes a package from the project package registry.
Delete Registry RepositoryRemoves a registry repository from a project.
Delete Registry Repository TagsRemoves registry repository tags in a batch from a project.
Look up Details of a RegistryRetrieves details of a registry repository for a specified project.
Look up Package Files StreamRetrieves list of package files of a single package.
Look up Packages within Group StreamRetrieves a list of project packages and package details at the group level.
Look up Packages within Project StreamRetrieves a list of project packages and package details.
Look up Project PackageRetrieves the details of the specified package for a specified project.
Look up Registry RepositoriesRetrieves a list of registry repositories for a specified project.
Pipeline ManagementLook up Project Pipeline by IDRetrieves the details of a specified pipeline for a specified project.
Look up Project Pipeline Jobs StreamRetrieves the list of jobs in a project pipeline.
Look up Project Pipeline Test ReportRetrieves the test report of the specified pipeline for the specified project.
Look up Project Pipelines StreamRetrieves the list of pipelines in a project.
Project Hook ManagementCreate Project HookCreates a hook to a project.
Delete Project HookRemoves a hook from a project.
Look up Project HookRetrieves details of a specified hook in a project.
Look up Project HooksRetrieves details of all the hooks in a project.
Update Project HookUpdates details of a hook for a specified project.
Project ManagementAdd User To A ProjectAdds user to a project in GitLab.
Archive ProjectArchives a project in GitLab.
Create MilestoneCreates milestone in a GitLab project.
Create ProjectCreates a project in GitLab.
Delete MilestoneDeletes milestone in a GitLab project.
Delete ProjectDeletes a project in GitLab.
Look up Milestones StreamRetrieves the details of the milestones GitLab.
Look up ProjectRetrieves details of the specified project.
Look up Project Jobs StreamRetrieves the project jobs details.
Look up Projects StreamRetrieves the details of the projects.
Remove User from a ProjectRemoves user from a project in GitLab.
Share Project With GroupShares a project with a group in GitLab.
Unarchive ProjectUnarchives a project in GitLab.
Unshare Project With GroupUnshares a project with a group in GitLab.
Update MilestoneUpdates details of a milestone in a project.
Update ProjectUpdates details of a project.
Source Code ManagementGet CommitRetrieves a details of a commit in GitLab.
Add New File To RepositoryAdds a file to a repository in GitLab.
Token ManagementLook up Personal Access TokensRetrieves a list of personal access tokens.
Revoke Personal Access TokenRevokes a personal access token.

Available AI agents

Install Now Assist for Integration Hub and start using the available AI agents. For more information, see ServiceNow Otto for Integration Hub.

This spoke provides standalone AI agents that mimic human-like intelligence to perform tasks in your ServiceNow instance.

  • In the ServiceNow agentic system, you can create an agentic workflow that comprises of a set of large language model (LLM) instructions along with one or more standalone AI agents to execute an objective. See for information about adding AI agents to create agentic workflows as per your requirement and provide the required trigger.

    You can also search for other available AI agents and add them to your agentic workflow. See Find AI agents for more information.

  • You can create a clone of the required spoke AI agent and customize it as per your requirement. See for more information about creating a clone.

  • See for information about AI agents.

Available AI agents include:

AI AgentDescription
GitLab pipeline management AI agentManages pipeline tasks (that is, looks up project pipelines by ID, retrieves pipeline test reports, streams project pipeline jobs and streams project pipeline data) in GitLab.
GitLab branch management AI agentManages branch management (that is, compare branches, tags, or commits, creates and deletes branches, manages branch protection, and looks up branch details or streams) in GitLab.
GitLab merge request management AI agentManages merge requests (creates, updates, accepts, and deletes merge request notes, and retrieves information about merge request notes) in GitLab.
GitLab package management AI agentManages package management (that is, deletes project packages, manages registry repositories, and performs detailed lookups for packages and files) in GitLab.
GitLab token management AI agentManages token management (that is, looks up and revokes personal access tokens) in GitLab.
GitLab issue management AI agentManages issue management tasks (that is, creates, updates, and manages issues and the related notes) in GitLab.
GitLab project management AI agentManages project management tasks (that is, creates, updates, and deletes projects and milestones, manages user and group access, and retrieves project and milestone streams) in GitLab.
GitLab source code management AI agentManages source code tasks (that is, looks up commit difference, adds new file to repository, and looks up commit by project ID) in GitLab.
GitLab group management AI agentManages user-group tasks (that is, adds and removes users from groups) in GitLab.

There might be AI agents installed with the Now Assist application that are not used in agentic workflows. To learn how to see all agents that are available to you, see Find AI agents.

Note: Ensure that the user running an AI agent has the required roles and permissions to access data or perform operations on data in the table that is associated with the AI agent.

Spoke flows

The GitLab spoke provides sample flows to demonstrate automating the GitLab tasks. To customize a sample flow, copy it to a new application scope.

FlowDescription
Archive projects older than 6 monthsArchives the projects which are inactive for the last six months.

Spoke subflows

The GitLab spoke provides sample flows to demonstrate automating the GitLab tasks. To customize a sample subflow, copy it to a new application scope. Available sample subflows include:

SubflowsDescription
Process GitLab Deployment Webhook Events​Processes deployment webhooks in GitLab.
Process GitLab Job Webhook Events​Processes job webhook events in GitLab.
Process GitLab Merge Request Webhook EventsProcesses merge request webhook events in GitLab.
Process GitLab Pipeline Webhook Events​Processes pipeline webhook events in GitLab.
Process GitLab Push Webhook Events​Processes push webhook events in GitLab.

Spoke webhooks

Bi-directional webhooks can be setup to be notified about the required events. Routing policy defines conditions that must be met to notify the ServiceNow app. These conditions are based on the events in GitLab for which you wish to be notified about. When the conditions are met, routing policy triggers the associated subflow, which in turn automates the GitLab tasks.

The bi-directional webhooks requires separate setup and can be used independently without using the spoke actions. By default, the GitLab Webhooks application is available in the GitLab spoke and has the following modules:

WebhookDescription
GitLab Webhook RegistriesDisplays the list of available webhook registries.
GitLab Webhook Routing PoliciesDisplays the list of available webhook routing policies.

Spoke module

The GitLab spoke provides Gitlab Token Management application that includes the Gitlab Token Managements module. You should record here to authenticate requests from your ServiceNow instance.

Connection and credential alias requirements

Integration Hub uses aliases to manage connection and credential information, and OAuth credentials. Using an alias eliminates the need to configure multiple credentials and connection information profiles when using multiple environments. If the connection or credential information changes, you don't need to update any actions that use the connection.

For information about setting up the spoke, see Set up the GitLab spoke.