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
1
Merge Requests
1
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
korinf
etersoft-build-utils
Commits
acecbc64
Commit
acecbc64
authored
May 01, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitask: accept package name in 'approve' subcommand
Same logic as in 'delsub': if SUBTASK is not a number, resolve it to a subtask number via get_subtask. Updates help text accordingly.
parent
7fdcc7b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
gitask
bin/gitask
+8
-2
No files found.
bin/gitask
View file @
acecbc64
...
...
@@ -38,7 +38,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo
" show NNNN [-v] - show subtask list for task NNNN (-v for full metadata)"
echo
" quota - show quota on the remote servers"
echo
" cancel NNNN - cancel task NNNN"
echo
" approve NNNN [
SUBTASK] [-m <message>] - approve subtask (all subtasks if SUBTASK is
omitted)"
echo
" approve NNNN [
package|subtask] [-m <message>] - approve subtask by number or by package name (all subtasks if
omitted)"
echo
" acl [branch] package - show acl for the package"
echo
" acl [branch] package add|del <user> - add/del acl for the package"
echo
" wait [NNNN] [-q|--quiet] - wait for task build to complete"
...
...
@@ -926,7 +926,13 @@ if [ "$1" = "approve" ] ; then
[
-n
"
$TASK
"
]
||
TASK
=
"
$(
get_last
)
"
||
fatal
"Can't get last task"
if
[
-n
"
$SUBTASK
"
]
;
then
SUBTASKLIST
=
"
$SUBTASK
"
if
isnumber
"
$SUBTASK
"
;
then
SUBTASKLIST
=
"
$SUBTASK
"
else
SUBTASKLIST
=
"
$(
get_subtask
"
$TASK
"
"
$SUBTASK
"
)
"
[
-n
"
$SUBTASKLIST
"
]
||
fatal
"can't find subtask for
$SUBTASK
"
info
"
$SUBTASK
->
$SUBTASKLIST
"
fi
else
SUBTASKLIST
=
"
$(
get_all_subtasks
"
$TASK
"
)
"
[
-n
"
$SUBTASKLIST
"
]
||
fatal
"No subtasks found in task
$TASK
"
...
...
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