Skip to content

Commit

Permalink
Remove does prefix from does_branch_exist
Browse files Browse the repository at this point in the history
  • Loading branch information
gurkanindibay committed Jun 11, 2021
1 parent f91c2dc commit 25ff7c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packaging_automation/common_tool_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def local_branch_exists(branch_name: str, working_dir: str) -> bool:
return False


def does_branch_exist(branch_name: str, working_dir: str) -> bool:
def branch_exists(branch_name: str, working_dir: str) -> bool:
return local_branch_exists(branch_name, working_dir) or remote_branch_exists(branch_name, working_dir)


Expand Down
3 changes: 1 addition & 2 deletions packaging_automation/tests/test_common_tool_methods.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import unittest
import uuid
from datetime import datetime
from shutil import copyfile

import pathlib2
from github import Github
from datetime import datetime
import uuid

from ..common_tool_methods import (
find_nth_occurrence_position, is_major_release,
Expand Down

0 comments on commit 25ff7c1

Please sign in to comment.