Skip to content

Commit dc92519

Browse files
committed
Make sure to work with the correct command prefix
The previously used variable seemed to always be initialized with the "/packit" value, which would result in incorrect behaviour in Fedora CI as the expected value in this case would be "/packit-ci" instead. Correct value should now be in use.
1 parent efb691b commit dc92519

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packit_service/worker/jobs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,9 +1139,13 @@ def is_help_comment(self, comment: str) -> bool:
11391139
Returns:
11401140
`True`, if is help comment, `False` otherwise.
11411141
"""
1142+
packit_comment_command_prefix = (
1143+
"/packit-ci" if comment.startswith("/packit-ci") else "/packit"
1144+
)
1145+
11421146
command = get_packit_commands_from_comment(
11431147
comment,
1144-
self.service_config.comment_command_prefix,
1148+
packit_comment_command_prefix,
11451149
)
11461150

11471151
return bool(command and command[0] == PACKIT_HELP_COMMAND)

0 commit comments

Comments
 (0)