GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the list of commits associated with a specific merge request in a GitLab project. It is useful for scenarios where you need to track changes, review commit history, or analyze the development progress of a merge request. For example, a developer or project manager can use this to fetch all commits made in a merge request to review code changes before merging.

Use Case Examples

  1. Fetch commits for a merge request to display in a custom dashboard.
  2. Automate notifications or reports based on commits in a merge request.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters required in the API path to specify the project and merge request.

Output

JSON

  • commit_id - The unique identifier of the commit.
  • author_name - Name of the commit author.
  • author_email - Email of the commit author.
  • message - Commit message describing the changes.
  • created_at - Timestamp when the commit was created.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID and merge request IID are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to access the project's merge request commits.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Discussion