Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjoon-hyun committed Aug 16, 2023
1 parent af7d73d commit e153e62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev/merge_spark_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,11 @@ def main():

# Check this up front to avoid failing the JIRA update at the very end
if not JIRA_ACCESS_TOKEN and (not JIRA_USERNAME or not JIRA_PASSWORD):
continue_maybe(
"The env-vars JIRA_ACCESS_TOKEN, JIRA_USERNAME and/or JIRA_PASSWORD are not set. Continue?"
msg = (
"The env-vars JIRA_ACCESS_TOKEN, JIRA_USERNAME and/or JIRA_PASSWORD are not set. "
+ "Continue?"
)
continue_maybe(msg)

branches = get_json("%s/branches" % GITHUB_API_BASE)
branch_names = list(filter(lambda x: x.startswith("branch-"), [x["name"] for x in branches]))
Expand Down

0 comments on commit e153e62

Please sign in to comment.