Skip to main content

Module gitlab

Module gitlab 

Source
Expand description

GitLab API client for fetching user activity and commit data.

Provides integration with GitLab instances (both self-hosted and GitLab.com) to automatically discover and import development activities as tasks.

§Usage

let config = GitLabConfig {
    access_token: "glpat-xxxxxxxxxxxxxxxxxxxx".to_string(),
    api_url: "https://gitlab.com".to_string(),
};

let client = GitLab::new(&config);
let commits = client.get_today_commits().await?;

Structs§

CommitInfo
Simplified commit information for task creation.
GitLab
GitLab client; stateless - the token rides on every request.
GitLabConfig
GitLab connection settings. The token IS stored in the config file - keep its scopes minimal (read_user, read_repository).