We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fb45c6 commit ff2c851Copy full SHA for ff2c851
src/pkgdev/scripts/pkgdev_commit.py
@@ -765,11 +765,9 @@ def determine_msg_args(options, changes):
765
args.extend(["-t", options.template])
766
else:
767
if options.message_template:
768
- message = options.message_template.read().splitlines()
+ message: list[str] = options.message_template.read().splitlines()
769
try:
770
- # TODO: replace with str.removeprefix when py3.8 support dropped
771
- if message[0].startswith("*: "):
772
- message[0] = message[0][3:]
+ message[0] = message[0].removeprefix("*: ")
773
except IndexError:
774
commit.error(f"empty message template: {options.message_template.name!r}")
775
0 commit comments