From ae00ff78ebb5baf64a433b87a4e07208ea06e000 Mon Sep 17 00:00:00 2001 From: Cory Francis Myers Date: Thu, 17 Oct 2024 17:38:14 -0700 Subject: [PATCH] feat: list skipped commits in pull request thread: https://github.com/freedomofpress/securedrop/pull/7260#discussion_r1805231906 --- utils/backport.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/backport.py b/utils/backport.py index 41e5887288..a6ea759f78 100755 --- a/utils/backport.py +++ b/utils/backport.py @@ -43,6 +43,9 @@ if input("OK to push and create PR? [y/N]").lower() != "y": sys.exit() subprocess.check_call(["git", "push", "-u", remote, branch]) + +skip_list = ", ".join(args.skip) +skip_message = f", excluding {skip_list}" if len(args.skip) > 0 else "" body = f"""\ ## Status @@ -56,7 +59,7 @@ * [ ] CI is passing * [ ] base is `{base}` -* [ ] Only contains changes from #{args.pr}. +* [ ] Only contains changes from #{args.pr} #{skip_message} """ print(body)