PowerShell.GitLab.Utility
is a PowerShell module designed to streamline and automate interactions with GitLab via PowerShell. As a Minimal Viable Product (MVP), this module aims to provide a foundational set of functionalities to manage GitLab resources, such as projects, repositories, issues, and merge requests, directly from your PowerShell command line.
The MVP version includes the following core features:
- Issues
- Merge Requests
- Pipeline
- Project: Board, Issues
- Create: MR, Issues, Project Board, Snippet
- Delete: Pipeline, Project Board, Snipppet
To install the PowerShell.GitLab.Utility module, run the following command in your PowerShell terminal:
Install-Module -Name PowerShell.GitLab.Utility
Ensure that your execution policy allows for the installation of modules. You might need to adjust it by executing:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Import-Module PowerShell.GitLab.Utility
Retrieve GitLab Snippet
Get-PSGitLabSnippet -OrganizationName 'gitlab.com' -PrivateToken 'GITLAB-TOKEN' -ProjectId 'gid://gitlab/Project/SNIPPETID'
Retrieve GitLab Pipeline Information
Get-PSGitLabPipeline -OrganizationName 'gitlab.com' -PrivateToken 'GITLAB-TOKEN' -ProjectFullPath "workwave/psgitlab"
Before using the module, configure it with your GitLab personal access token and instance URL. This can be done by setting up a configuration file or directly providing the token and URL in your commands.
Please refer to the module's documentation for detailed instructions on configuration and advanced usage.
As an Minimal Viable Product, PowerShell.GitLab.Utility is open for contributions and feedback. Whether adding new features, fixing bugs, or improving documentation, your contributions are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.
Please note: This module is not officially affiliated with GitLab Inc. It is a community-driven project aimed at providing a convenient way for PowerShell users to interact with GitLab.