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.
§Features
- Commit Discovery: Automatically fetches today’s commits for task generation
- User Activity: Retrieves push events and commit details via GitLab API v4
- Error Resilience: Gracefully handles network failures without crashing
- Multi-Instance Support: Works with GitLab.com, self-hosted, and enterprise instances
§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§
- Commit
Info - Simplified commit information for task creation.
- GitLab
- GitLab API client for retrieving user activity and commit information.
- GitLab
Config - Configuration for GitLab API integration.