We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6d3bc1 commit d91840aCopy full SHA for d91840a
patchback/config.py
@@ -38,6 +38,17 @@ class PatchbackConfig:
38
Set to None to disable adding a label on failure.
39
"""
40
41
+ @failed_label_prefix.validator
42
+ def _v_failed_label_prefix(self, _, value: str | None) -> None:
43
+ """
44
+ Ensure backport_label_prefix and failed_label_prefix are different
45
+ to avoid infinite loops
46
47
+ if value == self.backport_label_prefix:
48
+ raise ValueError(
49
+ 'failed_label_prefix and backport_label_prefix must be unique values'
50
+ )
51
+
52
53
async def get_patchback_config(
54
*,
0 commit comments