Skip to content
Ona Docs

GetDotfilesConfiguration

users.dotfiles.get(DotfileGetParams**kwargs) -> DotfileGetResponse
POST/gitpod.v1.UserService/GetDotfilesConfiguration

Gets the dotfiles for a user.

Use this method to:

  • Retrieve user dotfiles

Examples

  • Get dotfiles:

    Retrieves the dotfiles for the current user.

    {}
ParametersExpand Collapse
empty: Optional[bool]
ReturnsExpand Collapse
class DotfileGetResponse:
dotfiles_configuration: DotfilesConfiguration
repository: Optional[str]

The URL of a dotfiles repository.

formaturi

GetDotfilesConfiguration

import os
from gitpod import Gitpod

client = Gitpod(
    bearer_token=os.environ.get("GITPOD_API_KEY"),  # This is the default and can be omitted
)
dotfile = client.users.dotfiles.get()
print(dotfile.dotfiles_configuration)
{
  "dotfilesConfiguration": {
    "repository": "https://example.com"
  }
}
Returns Examples
{
  "dotfilesConfiguration": {
    "repository": "https://example.com"
  }
}