mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Update Plugin functions for newer glab versions
Changes: - Removed unsupported flag '--state opened' from glissue-list' - Updated glreleases-create to use --name instead of -t - Updated glrepo-list to remove unsupported --membership flag
This commit is contained in:
parent
316882dcc1
commit
0c733b810a
2 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 <tag> [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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue