client.git_repos.list_refs

A method of the Git Repos endpoint.

list_refs(id: int) ListResponse

Get all branches and tags of a bookmarked git repository

API URL: GET /git_repos/{id}/refs

import civis
client = civis.APIClient()
response = client.git_repos.list_refs(...)

Warning

The method name <client>.git_repos.list_refs is deprecated and will be removed at civis-python v3.0.0 (scheduled for February 2027). Please switch to <client>.git_repos.get_refs for the same method.

Parameters:
idint

The ID for this git repository.

Returns:
civis.Response
  • branchesList[str]

    List of branch names of this git repository.

  • tagsList[str]

    List of tag names of this git repository.