Skip to content

Commit

Permalink
Fix flake8 complaint
Browse files Browse the repository at this point in the history
Signed-off-by: Yevgen Polyak <[email protected]>
  • Loading branch information
evhen14 committed Jun 25, 2024
1 parent 82e8198 commit d17bb5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/scripts/automerge.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@

def fetch_pulls(mergeable_state, labels={'automerge'}):
return [pr for pr in repo.get_pulls(state='open', sort='created')
# noqa: E502
if (not pr.draft) and (pr.mergeable_state == mergeable_state) and \
(not labels or len(labels.intersection({label.name for label in pr.labels})) > 0)]
if (not pr.draft and pr.mergeable_state == mergeable_state
and (not labels or len(labels.intersection({label.name for label in pr.labels})) > 0))]


def is_approved(pr):
Expand Down

0 comments on commit d17bb5c

Please sign in to comment.