1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-12-08 03:14:47 +01:00

Change 'git-obs pr dump' to show empty timeline entries instead just printing warnings to stderr

This commit is contained in:
2025-08-15 13:18:27 +02:00
parent fe9c535596
commit e786a634dd

View File

@@ -140,8 +140,14 @@ class PullRequestDumpCommand(osc.commandline_git.GitObsCommand):
xml_history_list = []
for entry in timeline:
if entry.is_empty():
import sys
print(f"Warning ignoring empty IssueTimelineEntry", file=sys.stderr)
xml_history_list.append(
{
"who": "",
"when": "",
"description": "ERROR: Gitea returned ``None`` instead of a timeline entry",
"comment": "",
}
)
continue
text, body = entry.format()