29
29
def run_gh_rest_check (
30
30
lib_repo : Repository ,
31
31
user : Optional [str ] = None ,
32
- branch : Optional [str ] = "main" ,
32
+ branch : Optional [str ] = None ,
33
33
workflow_filename : Optional [str ] = "build.yml" ,
34
34
) -> str :
35
35
"""Uses ``PyGithub`` to check the CI status of a repository
@@ -38,7 +38,7 @@ def run_gh_rest_check(
38
38
:param str|None user: The user that triggered the run; if `None` is
39
39
provided, any user is acceptable
40
40
: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
42
42
:param str|None workflow_filename: The filename of the workflow; if `None` is
43
43
provided, any workflow name is acceptable; the default is ``"build.yml"``
44
44
:return: The requested runs conclusion
@@ -59,7 +59,7 @@ def run_gh_rest_check(
59
59
def check_build_status (
60
60
lib_repo : Repository ,
61
61
user : Optional [str ] = None ,
62
- branch : Optional [str ] = "main" ,
62
+ branch : Optional [str ] = None ,
63
63
workflow_filename : Optional [str ] = "build.yml" ,
64
64
debug : bool = False ,
65
65
) -> Optional [str ]:
@@ -70,7 +70,7 @@ def check_build_status(
70
70
:param str|None user: The user that triggered the run; if `None` is
71
71
provided, any user is acceptable
72
72
: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
74
74
:param str|None workflow_filename: The filename of the workflow; if `None`
75
75
is provided, any workflow name is acceptable; the defail is `"build.yml"`
76
76
:param bool debug: Whether debug statements should be printed to the standard
@@ -120,7 +120,7 @@ def check_build_statuses(
120
120
:param str|None user: The user that triggered the run; if `None` is
121
121
provided, any user is acceptable
122
122
: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
124
124
:param str|None workflow_filename: The filename of the workflow; if `None` is
125
125
provided, any workflow name is acceptable; the defail is `"build.yml"`
126
126
:param bool debug: Whether debug statements should be printed to
@@ -179,7 +179,7 @@ def save_build_statuses(
179
179
metavar = "B" ,
180
180
type = str ,
181
181
dest = "branch" ,
182
- default = "main" ,
182
+ default = None ,
183
183
help = 'Branch name; default is "main"' ,
184
184
)
185
185
parser .add_argument (
0 commit comments