Skip to content

Commit 416312d

Browse files
committed
Change default for branch to "any"
1 parent 09d78b8 commit 416312d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/ci_status.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
def run_gh_rest_check(
3030
lib_repo: Repository,
3131
user: Optional[str] = None,
32-
branch: Optional[str] = "main",
32+
branch: Optional[str] = None,
3333
workflow_filename: Optional[str] = "build.yml",
3434
) -> str:
3535
"""Uses ``PyGithub`` to check the CI status of a repository
@@ -38,7 +38,7 @@ def run_gh_rest_check(
3838
:param str|None user: The user that triggered the run; if `None` is
3939
provided, any user is acceptable
4040
:param str|None branch: The branch name to specifically check; if `None` is
41-
provided, all branches are allowed; the default is ``"main"``
41+
provided, all branches are allowed; this is the default
4242
:param str|None workflow_filename: The filename of the workflow; if `None` is
4343
provided, any workflow name is acceptable; the default is ``"build.yml"``
4444
:return: The requested runs conclusion
@@ -59,7 +59,7 @@ def run_gh_rest_check(
5959
def check_build_status(
6060
lib_repo: Repository,
6161
user: Optional[str] = None,
62-
branch: Optional[str] = "main",
62+
branch: Optional[str] = None,
6363
workflow_filename: Optional[str] = "build.yml",
6464
debug: bool = False,
6565
) -> Optional[str]:
@@ -70,7 +70,7 @@ def check_build_status(
7070
:param str|None user: The user that triggered the run; if `None` is
7171
provided, any user is acceptable
7272
:param str|None branch: The branch name to specifically check; if `None` is
73-
provided, all branches are allowed; the default is ``"main"``
73+
provided, all branches are allowed; this is the default
7474
:param str|None workflow_filename: The filename of the workflow; if `None`
7575
is provided, any workflow name is acceptable; the defail is `"build.yml"`
7676
:param bool debug: Whether debug statements should be printed to the standard
@@ -120,7 +120,7 @@ def check_build_statuses(
120120
:param str|None user: The user that triggered the run; if `None` is
121121
provided, any user is acceptable
122122
:param str|None branch: The branch name to specifically check; if `None` is
123-
provided, all branches are allowed; the default is ``"main"``
123+
provided, all branches are allowed; this is the default
124124
:param str|None workflow_filename: The filename of the workflow; if `None` is
125125
provided, any workflow name is acceptable; the defail is `"build.yml"`
126126
:param bool debug: Whether debug statements should be printed to
@@ -179,7 +179,7 @@ def save_build_statuses(
179179
metavar="B",
180180
type=str,
181181
dest="branch",
182-
default="main",
182+
default=None,
183183
help='Branch name; default is "main"',
184184
)
185185
parser.add_argument(

0 commit comments

Comments
 (0)