Skip to content

An experimental powershell provider that allows you to explore gitlab as a filesystem.

License

Notifications You must be signed in to change notification settings

andyalm/mount-gitlab

Repository files navigation

Mount Gitlab

An experimental powershell provider that allows you to explore gitlab as a filesystem. It integrates with/depends on pwsh-gitlab for the gitlab interaction.

Installation

  1. Install the required powershell modules:
# Ensure you have installed the dependent module GitlabCli
Install-Module -Name GitlabCli

# Then install MountGitlab
Install-Module -Name MountGitlab
  1. Configure your gitlab connection by following the GitlabCli instructions here.

  2. Finally, import the module and mount gitlab to a PSDrive with something like this (consider adding this to your profile):

Import-Module MountGitlab

Usage

# navigate into the drive letter of your gitlab PSDrive
cd gitlab:

# list all gitlab groups in the project
dir

# list all of the projects and subgroups within a group
cd mygroup
dir

# list top level files and directories within the default branch of the project
cd myproject
dir files

# list the branches in the project
dir branches

# list the pipelines in the project
dir pipelines

# navigate into the main branch
cd branches/mybranch

# list the pipelines associated with the current branch
dir pipelines

# list the top level files and directories within the current branch
dir files

# list the jobs within a pipeline
dir pipelines/12345

# print out the job trace for a specific job
gc pipelines/12345/build

About

An experimental powershell provider that allows you to explore gitlab as a filesystem.

Resources

License

Stars

Watchers

Forks

Packages

No packages published