Automatic style fix

This commit is contained in:
robot-clickhouse 2024-06-07 18:49:22 +00:00 committed by Max Kainov
parent ca756b4d51
commit 18e12c48a4

View File

@ -490,7 +490,10 @@ class Backport:
def process_pr(self, pr: PullRequest) -> None:
pr_labels = [label.name for label in pr.labels]
if self.must_create_backport_labels in pr_labels or self._repo_name != self._fetch_from:
if (
any(label in pr_labels for label in self.must_create_backport_labels)
or self._repo_name != self._fetch_from
):
branches = [
ReleaseBranch(br, pr, self.repo, self.backport_created_label)
for br in self.release_branches