Class RepositorySubmodulesApi

java.lang.Object
org.gitlab4j.api.AbstractApi
org.gitlab4j.api.RepositorySubmodulesApi
All Implemented Interfaces:
Constants

public class RepositorySubmodulesApi extends AbstractApi

This class provides an entry point to all the GitLab API repository submodules calls. For more information on the repository APIs see:

See Also:
  • Constructor Details

    • RepositorySubmodulesApi

      public RepositorySubmodulesApi(GitLabApi gitLabApi)
  • Method Details

    • updateExistingSubmoduleReference

      public Commit updateExistingSubmoduleReference(Object projectIdOrPath, String submodule, String branch, String commitSha, String commitMessage) throws GitLabApiException
      Update existing submodule reference in repository.
      GitLab Endpoint: PUT /projects/:id/repository/submodules/:submodule
      Parameters:
      projectIdOrPath - the project in the form of an Long(ID), String(path), or Project instance
      submodule - full path to the submodule
      branch - name of the branch to commit into
      commitSha - full commit SHA to update the submodule to
      commitMessage - commit message (optional). If no message is provided, a default is set
      Returns:
      the created commit
      Throws:
      GitLabApiException - if any exception occurs