Skip to content

Commit c81123b

Browse files
committed
Renamed wrapper scripts to be used as git subcommands
1 parent 3de3dc0 commit c81123b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

File renamed without changes.

glab-pipe.sh renamed to git-glab-pipe.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

33
# TODO:
44
# check args for cfg file
5-
# set as git cmd
65
if [ "x$1" = "x--git-remote" ]; then
76
git_repo="$1 $2"
87
shift 2
98
fi
109
# last pipeline:
11-
pipeid=$(gitlab_wrapper.sh $git_repo project-pipeline list | head -n 1 | cut -d: -f2)
12-
gitlab_wrapper.sh $git_repo -o yaml -f id,status,web_url project-pipeline get --id $pipeid
10+
pipeid=$(git gitlab $git_repo project-pipeline list | head -n 1 | cut -d: -f2)
11+
git gitlab $git_repo -o yaml -f id,status,web_url project-pipeline get --id $pipeid
1312

14-
gitlab_wrapper.sh $git_repo -o yaml -f id,name,status,web_url project-pipeline-job list --pipeline-id $pipeid
13+
git gitlab $git_repo -o yaml -f id,name,status,web_url project-pipeline-job list --pipeline-id $pipeid
1514

1615
#projurl=$(echo $url | sed "s#:\($proj\)#/\\1#")
1716
#projurl=$(echo $projurl | sed 's#git@#https://#')

0 commit comments

Comments
 (0)