Skip to content

Commit 06298eb

Browse files
authored
Apply batched suggestions from code review
Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent d1bfa03 commit 06298eb

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

scripts/pr_file_map.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,19 @@ def main() -> None:
114114
print(f"- Generated (UTC): `{datetime.now(UTC).isoformat()}`")
115115
print(f"- Number of PRs: `{pr_count}`")
116116
print(f"- Number of files: `{file_count}`")
117-
print(f"- Existing files: `{existing_count}`")
118-
print(f"- Missing files: `{missing_count}`\n")
119117
if pr_count == 0:
120118
print("No open pull requests found.")
121119
return
122120

123-
print("## Existing files\n")
121+
print(f"## `{existing_count}` existing files\n")
124122
if existing:
125123
for path in sorted(existing):
126124
pr_list = " ".join(f"#{n}" for n in existing[path])
127125
print(f"- `{path}`: {pr_list}")
128126
else:
129127
print("_None._")
130128

131-
print("\n## Files not present in the working directory\n")
129+
print("\n## `{missing_count}` files not present in the working directory\n")
132130
if missing:
133131
for path in sorted(missing):
134132
pr_list = " ".join(f"#{n}" for n in missing[path])

0 commit comments

Comments
 (0)