The Git Plugin API provides a comprehensive set of features for integrating Git with your automation processes. This document outlines the available endpoints and their functionalities.

Endpoints

  • /en/docs/autobuild/plugins/git-plugin/api/repositories - Lists all the repositories configured in the system.
  • /en/docs/autobuild/plugins/git-plugin/api/commits - Retrieves a list of commits for a given repository.
  • /en/docs/autobuild/plugins/git-plugin/api/tags - Fetches tags from a repository.
  • /en/docs/autobuild/plugins/git-plugin/api/branches - Lists all branches for a repository.

Usage Example

To retrieve the list of repositories, you would make a GET request to /en/docs/autobuild/plugins/git-plugin/api/repositories.

Response

{
  "repositories": [
    {
      "name": "example-repo",
      "url": "https://github.com/example/example-repo.git"
    }
  ]
}

For more detailed information about each endpoint, please refer to the Git Plugin API Reference.

Git Repository