| Crates.io | mot-plugin-gitlab |
| lib.rs | mot-plugin-gitlab |
| version | 0.2.5 |
| created_at | 2025-04-30 19:41:00.682112+00 |
| updated_at | 2025-04-30 20:06:45.597293+00 |
| description | GitLab Activity Plugin for MOT |
| homepage | |
| repository | https://github.com/Tuurlijk/mot-plugin-gitlab |
| max_upload_size | |
| id | 1655382 |
| size | 2,050,528 |
Integrates your GitLab commit activity directly into MOT, allowing you to view and potentially import commit data as time entries.
This plugin is designed to be installed using the provided script within its distribution package.
read_api scope.
https://[your_gitlab_host]/-/profile/personal_access_tokens (replace [your_gitlab_host] with your GitLab instance's hostname, e.g., gitlab.com).Download and Extract: Obtain the plugin release package (e.g., mot-plugin-gitlab-vX.Y.Z.tar.gz or .zip) and extract it. You should find these core files:
mot-plugin-gitlab (the executable)manifest.toml (plugin metadata)config.toml (configuration template)install.sh (installation script)Readme.md (this file)Navigate: Open your terminal and cd into the extracted directory:
cd /path/to/extracted/mot-plugin-gitlab
Run Installer: Execute the installation script:
bash ./install.sh
mot-plugin-gitlab, manifest.toml, config.toml) to the correct Mot plugin directory (~/.config/mot/plugins/mot-plugin-gitlab/).config.toml already exists in the destination, it will not be overwritten.Configure: Proceed to the Configuration section below. This step is essential.
Restart MOT: Close and reopen MOT to load the new plugin.
After installation, you must configure the plugin by editing its configuration file.
Location: The configuration file is located at:
~/.config/mot/plugins/mot-plugin-gitlab/config.toml%APPDATA%\mot\plugins\mot-plugin-gitlab\config.toml (Manual installation might be needed for Windows currently)Editing: Open the config.toml file in a text editor. You need to provide details for each GitLab instance you wish to monitor within [[clients]] blocks.
# Example config.toml for mot-plugin-gitlab
# Global setting for the plugin (part of manifest/standard plugin config)
enabled = true
# Define one or more GitLab instances to connect to
[[clients]]
id = "gitlab-com" # Unique identifier for this client block
name = "GitLab.com Personal" # User-friendly name shown in MOT (optional)
gitlab_host = "gitlab.com"
gitlab_token = "YOUR_GITLAB.COM_ACCESS_TOKEN" # Replace with your actual token
author_email = "your-email@example.com" # Replace with the email used in your commits
[[clients]]
id = "gitlab-work"
name = "Work Self-Hosted GitLab"
gitlab_host = "gitlab.company.com" # Replace with your company's GitLab host
gitlab_token = "YOUR_WORK_ACCESS_TOKEN"
author_email = "your-work-email@company.com"
# Add more [[clients]] blocks if needed
Details:
enabled: Set to true to enable the plugin within MOT (requires restart).id: A unique string to identify this configuration block (e.g., "gitlab-com", "work-gitlab").name: A user-friendly name displayed in MOT (optional).gitlab_host: The hostname of your GitLab instance (e.g., gitlab.com or gitlab.yourcompany.com).gitlab_token: Your GitLab Personal Access Token with read_api scope.author_email: The email address associated with your Git commits on this instance. The plugin will only fetch commits matching this email.Save the changes to the file.
Once installed, configured, and enabled:
p in the main view).Space to toggle if needed, then restart MOT).Esc or p).i key in standard MOT).Refer to the main MOT documentation for general navigation and interaction within the application.
To remove the plugin:
# Linux / macOS
rm -rf ~/.config/mot/plugins/mot-plugin-gitlab
# Windows (adjust path as needed)
# rmdir /s /q %APPDATA%\mot\plugins\mot-plugin-gitlab
This project is likely licensed under the MIT License - check the LICENSE file in the repository for confirmation.
Contributions are welcome! Please refer to the main MOT contribution guidelines if applicable, or open an issue/pull request on this plugin's repository.