Skip to content

xmatters/xm-labs-gitlab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitLab Steps

These steps allow you to get the commit details from a given project. Great for enriching notifications with relevant code commit information.



Files

How it works

These steps pull from various API endpoints in GitLab to get commit detils.

Get All Commits

Get Single Commit

Get Projects

Installation

GitLab Setup

If you are trying to access a public project, then none.

If your project is private, then you will need to authenticate with an API Token.

Create a Personal API Token by following these instructions.

xMatters Setup

  1. Download the GitLabSteps.zip file onto your local computer
  2. Navigate to the Developer tab of your xMatters instance
  3. Click Import, and select the zip file you just downloaded

Optionally:

  • Change the GitLab endpoint if your project is hosted outside of GitLab.
  • Add an authentication token constant and provide it when calling a GitLab step.

Usage

Get All Commits

Inputs

Name Required? Min Max Help Text Default Value Multiline
Project ID Yes 0 2000 The ID or URL-encoded path of the project owned by the authenticated user No

Outputs

Name Description
Commits List of Commit Objects

Get Single Commit

Inputs

Name Required? Min Max Help Text Default Value Multiline
Project ID Yes 0 2000 The ID or URL-encoded path of the project owned by the authenticated user No
SHA Yes 0 2000 The commit hash or name of a repository branch or tag No

Outputs

Name Description
URL URL of the project
Author_Name Full name of the author
Author_Email Email address of the author
Timestamp Timestamp of the commit
Message Commit message

Get Projects

Inputs

Name Required? Min Max Help Text Default Value Multiline
User ID Yes 0 2000 The ID or username of the user No

Outputs

Name Description
Projects List of Project Objects

Example

This is the flow provided.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors