GitLab API

GitlabTool

Actions1000

Overview

This node operation allows a user to follow another user on GitLab by sending a POST request to the GitLab API endpoint `/api/v4/users/{id}/follow`. It is useful in scenarios where automation workflows need to programmatically follow users on GitLab, such as in social or collaborative project management automation.

Use Case Examples

  1. Automatically follow a user after a certain event in a CI/CD pipeline.
  2. Follow a user based on a trigger from another system to keep track of their activities.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, hidden unless Skip Authentication is false.
baseUrl Base URL of the GitLab instance to send the request to.
Method HTTP method to use for the request.
Path Parameters Parameters to be included in the request path, specifically the user ID to follow.

Output

JSON

  • id - The ID of the user being followed.
  • username - The username of the user being followed.
  • name - The full name of the user being followed.
  • state - The state of the user (e.g., active).
  • avatar_url - URL to the user's avatar image.
  • web_url - URL to the user's GitLab profile page.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists on the GitLab instance.
  • Check that the authentication token has sufficient permissions to follow users.
  • Verify the base URL is correct and accessible.
  • Common error messages include 401 Unauthorized (authentication issues), 404 Not Found (invalid user ID), and 403 Forbidden (insufficient permissions).

Links

Discussion