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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user