We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1390358 commit 995b68dCopy full SHA for 995b68d
simple_repository_browser/short_release_info.py
@@ -182,7 +182,15 @@ def release_infos(
182
if yanked_files > 0 and not_yanked_files > 0:
183
labels["partial-yank"] = "Partially yanked"
184
elif yanked_files > 0 and not_yanked_files == 0:
185
- labels["yanked"] = ". ".join(yank_reasons or ["No yank reasons given"])
+ yank_reasons_len = len(yank_reasons)
186
+ if yank_reasons_len == 1:
187
+ labels["yanked"] = next(iter(yank_reasons))
188
+ elif yank_reasons_len > 1:
189
+ labels["yanked"] = (
190
+ "Yanked for multiple reasons, see individual files for details"
191
+ )
192
+ else:
193
+ labels["yanked"] = "No yank reasons given"
194
195
if quarantined_files_for_release:
196
quarantine_release_times = [
0 commit comments