Skip to content

Commit

Permalink
feat: list skipped commits in pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
cfm committed Nov 15, 2024
1 parent 8a4462d commit ae00ff7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/backport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down

0 comments on commit ae00ff7

Please sign in to comment.