Toolverse
All skills

glab

by NikiforovAll

Expert guidance for using the GitLab CLI (glab) to manage GitLab issues, merge requests, CI/CD pipelines, repositories, and other GitLab operations from the command line. Use this skill when the user needs to interact with GitLab resources or perform GitLab workflows.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
DevOps
Views
32

About this skill

Expert guidance for using the GitLab CLI (glab) to manage GitLab issues, merge requests, CI/CD pipelines, repositories, and other GitLab operations from the command line. Use this skill when the user needs to interact with GitLab resources or perform GitLab workflows.

How to use

  1. Sprawdź, czy glab jest zainstalowany, wpisując w terminal glab --version. Jeśli narzędzie nie jest dostępne, zainstaluj je zgodnie z instrukcjami dla twojego systemu operacyjnego.

  2. Uwierzytelnij się w GitLabie za pomocą glab auth login. Jeśli używasz self-hosted GitLaba, dodaj flagę --hostname gitlab.example.org. Możesz też ustawić zmienne środowiskowe GITLAB_TOKEN i GITLAB_HOST, aby uniknąć logowania za każdym razem.

  3. Aby utworzyć merge request, najpierw wypchnij swoją gałąź: git push -u origin nazwa-gałęzi. Następnie użyj glab mr create --title "Opis zmian" --description "Szczegóły", aby stworzyć pull request. Opcjonalnie dodaj recenzentów i etykiety: glab mr create --title "Tytuł" --reviewer=alice,bob --label=bug,urgent.

  4. Do recenzji merge requestów użyj glab mr list --reviewer=@me, aby zobaczyć pull requesty czekające na twoją opinię. Checkout lokalnie za pomocą glab mr checkout numer-mr, przetestuj zmiany, a następnie zatwierdź: glab mr approve numer-mr.

  5. Zarządzaj issues poleceniami takie jak glab issue create --title "Opis problemu" --label=bug. Skill zawiera też wskazówki do pracy z CI/CD pipelinami i innymi operacjami GitLaba – wszystkie dostępne bezpośrednio z wiersza poleceń.

Related skills