GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to unarchive a specific project by its ID or URL-encoded path. It is useful in scenarios where archived projects need to be reactivated for further development or management within GitLab. For example, a user can automate the process of unarchiving projects that were previously archived to resume work on them.

Use Case Examples

  1. Unarchive a project by providing its ID to resume development.
  2. Automate project management workflows by unarchiving projects based on certain triggers.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for unarchiving.
Path Parameters Parameters included in the request path, specifically the project ID or URL-encoded path to identify the project to unarchive.

Output

JSON

  • id - The unique identifier of the unarchived project.
  • name - The name of the unarchived project.
  • archived - Boolean indicating if the project is archived (should be false after unarchiving).
  • path - The URL-encoded path of the project.
  • description - Description of the project.
  • created_at - Timestamp when the project was created.
  • last_activity_at - Timestamp of the last activity in the project.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct and exists in the GitLab instance.
  • Verify that the API key credential has sufficient permissions to unarchive projects.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the project does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion