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
741991ef
Commit
741991ef
authored
Mar 12, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitask ls: match girar-show output format
parent
c036699e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
gitask
bin/gitask
+21
-7
No files found.
bin/gitask
View file @
741991ef
...
...
@@ -194,15 +194,29 @@ for i, t in enumerate(tasks):
break
flags = []
if t.get("test_only"): flags.append("[test-only]")
bt = t.get("build_time", t.get("created", ""))
try:
dt = datetime.fromisoformat(bt)
bt = dt.strftime("%b %d %H:%M:%S %Y")
except (ValueError, TypeError):
pass
parts = [str(t["id"]), t["state"], t["repo"], bt, t["owner"]]
# try.iter info
ti = t.get("try", 0)
it = t.get("iter", 0)
tryiter = "#{}".format(ti) if it <= 1 else "#{}.{}".format(ti, it)
# package names from subtasks
pkgs = []
for num in sorted(t.get("subtasks", {}).keys(), key=lambda x: int(x)):
st = t["subtasks"][num]
pkg = st.get("pkgname", "")
tag = st.get("tag_name", "")
stype = st.get("type", "repo")
if stype == "delete":
pkgs.append("(delete {})".format(pkg))
elif pkg and tag:
pkgs.append("{}.git={}".format(pkg, tag))
elif pkg:
pkgs.append(pkg)
parts = [str(t["id"]), t["state"], tryiter]
if flags:
parts.extend(flags)
parts.append(t["repo"])
if pkgs:
parts.extend(pkgs)
line = " ".join(parts)
if use_color and t["state"] in colors:
line = colors[t["state"]] + line + reset
...
...
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