Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roman Alifanov
etersoft-build-utils
Commits
53cc58c2
Commit
53cc58c2
authored
Dec 24, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitask: add -m support for approve command
parent
bb54204e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
gitask
bin/gitask
+34
-2
No files found.
bin/gitask
View file @
53cc58c2
...
...
@@ -38,6 +38,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo
" show NNNN - show subtask list for task NNNN"
echo
" quota - show quota on the remote servers"
echo
" cancel NNNN - cancel task NNNN"
echo
" approve NNNN SUBTASK [-m <message>] - approve subtask"
echo
" acl [branch] show package - show acl for the package"
echo
" acl [branch] package add|del <maintainer> - add/del acl for the package"
echo
" rebuild --help - rebuild package"
...
...
@@ -169,6 +170,7 @@ if [ "$1" = "log" ] ; then
fi
if
[
"
$1
"
=
"quota"
]
;
then
shift
docmd ssh
$GIRARHOST
quota
"
$@
"
docmd ssh
$GEARHOST
quota
"
$@
"
exit
...
...
@@ -203,7 +205,7 @@ if [ "$1" = "ls" ] ; then
fi
if
[
"
$1
"
=
"-w"
]
;
then
WN
=
"
$2
"
[
-
n
"
$WN
"
]
&&
WN
=
10
[
-
z
"
$WN
"
]
&&
WN
=
10
watch
-c
-n
$WN
$0
ls
exit
fi
...
...
@@ -332,7 +334,6 @@ fi
if
[
"
$1
"
=
"show"
]
;
then
shift
COMMIT
=
''
TASK
=
"
$(
get_task_number
"
$1
"
)
"
if
[
-z
"
$TASK
"
]
;
then
TASK
=
"
$(
get_last
)
"
||
fatal
"Can't get last task"
...
...
@@ -381,6 +382,7 @@ fi
if
[
"
$1
"
=
"cancel"
]
;
then
shift
TASK
=
"
$(
get_task_number
$1
)
"
[
-n
"
$TASK
"
]
||
fatal
"No task number"
if
[
"
$GEARHOST
"
=
"git.eter"
]
||
[
"
$GEARHOST
"
=
"git.office"
]
;
then
docmd ssh
$GEARHOST
task cancel
"
$TASK
"
else
...
...
@@ -389,6 +391,36 @@ if [ "$1" = "cancel" ] ; then
exit
fi
if
[
"
$1
"
=
"approve"
]
;
then
shift
TASK
=
''
SUBTASK
=
''
MESSAGETEXT
=
''
while
[
-n
"
$1
"
]
;
do
if
[
"
$1
"
=
"-m"
]
;
then
MESSAGETEXT
=
"
$2
"
shift
elif
echo
"
$1
"
|
grep
-qv
"^-"
;
then
if
[
-z
"
$TASK
"
]
;
then
TASK
=
"
$(
get_task_number
$1
)
"
else
SUBTASK
=
"
$1
"
fi
else
fatal
"Unknown param
$1
"
fi
shift
done
[
-n
"
$TASK
"
]
||
TASK
=
"
$(
get_last
)
"
||
fatal
"Can't get last task"
[
-n
"
$SUBTASK
"
]
||
fatal
"Subtask number required"
showcmd ssh
$GEARHOST
task approve
"
$TASK
"
"
$SUBTASK
"
echo
"
$MESSAGETEXT
"
| ssh
$GEARHOST
task approve
"
$TASK
"
"
$SUBTASK
"
exit
fi
if
[
"
$1
"
=
"share"
]
&&
[
-n
"
$2
"
]
;
then
shift
TASK
=
"
$(
get_task_number
$1
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment