GetDotfilesConfiguration
client.users.dotfiles.get(DotfileGetParams { empty } body, RequestOptionsoptions?): DotfileGetResponse { dotfilesConfiguration }
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.
{}
GetDotfilesConfiguration
import Gitpod from '@gitpod/sdk';
const client = new Gitpod({
bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted
});
const dotfile = await client.users.dotfiles.get();
console.log(dotfile.dotfilesConfiguration);{
"dotfilesConfiguration": {
"repository": "https://example.com"
}
}Returns Examples
{
"dotfilesConfiguration": {
"repository": "https://example.com"
}
}