Skip to content

Commit 0966567

Browse files
committed
handle deleted authors
1 parent 2b55140 commit 0966567

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.agents/skills/closing-obsolete-issues/scripts/fetch_issue_details.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ echo "--- INVESTIGATION FOR ISSUE #$ISSUE_NUMBER ---"
1414
# Fetching all comments to ensure full context is captured.
1515
gh issue view "$ISSUE_NUMBER" --repo flutter/devtools --json number,title,author,createdAt,labels,body,comments -t '
1616
Title: {{.title}}
17-
Author: {{.author.login}}
17+
Author: {{if .author}}{{.author.login}}{{else}}ghost{{end}}
1818
Created: {{.createdAt}}
1919
Labels: {{range .labels}}{{.name}}, {{end}}
2020
@@ -23,7 +23,7 @@ Description:
2323
2424
--- ALL COMMENTS ---
2525
{{range .comments}}
26-
{{.author.login}} ({{.createdAt}}):
26+
{{if .author}}{{.author.login}}{{else}}ghost{{end}} ({{.createdAt}}):
2727
{{.body}}
2828
------------------------------------------------------------
2929
{{end}}

0 commit comments

Comments
 (0)