diff --git a/plugins/glab/README.md b/plugins/glab/README.md index 98e74676c..a38c82dd7 100644 --- a/plugins/glab/README.md +++ b/plugins/glab/README.md @@ -20,7 +20,6 @@ This plugin adds support for the [GitLab CLI (`glab`)](https://gitlab.com/gitlab | `glci` | `glab ci` | Manage CI pipelines | | `glprj` | `glab project` | Manage projects | | `glrelease` | `glab release` | Manage releases | -| `gli` | `glab incident` | Manage incidents | ## Helper functions diff --git a/plugins/glab/glab.plugin.zsh b/plugins/glab/glab.plugin.zsh index ee49332fd..ad04c7bd9 100644 --- a/plugins/glab/glab.plugin.zsh +++ b/plugins/glab/glab.plugin.zsh @@ -69,7 +69,7 @@ glissue-close() { # List open issues assigned to me glissue-list() { - glab issue list --assignee "@me" --state opened "$@" + glab issue list --assignee "@me" "$@" } # --- CI/CD Helper Functions --- @@ -99,7 +99,7 @@ glrepo-clone() { # List all projects I’m a member of glrepo-list() { - glab repo list --membership "$@" + glab repo list "$@" } # Open a repository in browser @@ -116,9 +116,16 @@ glrepo-starred() { # Create a release: glrelease-create "Title" "Tag" glrelease-create() { - glab release create -t "$1" "$2" + if [ -z "$1" ]; then + echo "Usage: glrelease-create [release name]" + return 1 + fi + local tag="$1" + local name="${2:-$1}" # Use tag as name if no name provided + glab release create "$tag" --name "$name" } + # --- Search Helper Function --- # Search merge requests and issues