From bca5c5f9751d3a37b60e1dc811558bf0b75797fd Mon Sep 17 00:00:00 2001 From: Daniel Sotirhos Date: Fri, 19 May 2023 10:54:12 -0700 Subject: [PATCH] fixup! Fix: PR checklist should mention unchaining steps (#5190) --- .github/pull_request_template.md.template.py | 33 ++++++++------------ 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.github/pull_request_template.md.template.py b/.github/pull_request_template.md.template.py index b4674b0386..a94e992396 100644 --- a/.github/pull_request_template.md.template.py +++ b/.github/pull_request_template.md.template.py @@ -603,26 +603,19 @@ def main(): 'type': 'h2', 'content': 'Operator (chain shortening)' }, - { - 'type': 'cli', - 'content': 'Changed the target branch of the blocked PR to `develop`', - 'alt': 'or this PR is not labeled `base`' - }, - { - 'type': 'cli', - 'content': 'Removed the `chained` label from the blocked PR', - 'alt': 'or this PR is not labeled `base`' - }, - { - 'type': 'cli', - 'content': 'Removed the blocking relationship from the blocked PR', - 'alt': 'or this PR is not labeled `base`' - }, - { - 'type': 'cli', - 'content': 'Removed the `base` label from this PR', - 'alt': 'or this PR is not labeled `base`' - }, + *[ + { + 'type': 'cli', + 'content': content, + 'alt': 'or this PR is not labeled `base`' + } + for content in [ + 'Changed the target branch of the blocked PR to `develop`', + 'Removed the `chained` label from the blocked PR', + 'Removed the blocking relationship from the blocked PR', + 'Removed the `base` label from this PR' + ] + ] ]), { 'type': 'h2',