Skip to content

Commit 223acad

Browse files
authored
refactor: envvar order for tests-target-branch option (#731)
This keeps it in sync with the other ways to interact with the quarantine.
1 parent 926a607 commit 223acad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mergify_cli/ci/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _process_tests_target_branch(
6565
"-ttb",
6666
help="The branch used to check if failing tests can be ignored with Mergify's Quarantine.",
6767
required=True,
68-
envvar=["GITHUB_BASE_REF", "MERGIFY_TESTS_TARGET_BRANCH", "GITHUB_REF"],
68+
envvar=["MERGIFY_TESTS_TARGET_BRANCH", "GITHUB_BASE_REF", "GITHUB_REF"],
6969
callback=_process_tests_target_branch,
7070
)
7171
@click.argument(
@@ -136,7 +136,7 @@ async def junit_upload( # noqa: PLR0913
136136
"-ttb",
137137
help="The branch used to check if failing tests can be ignored with Mergify's Quarantine.",
138138
required=True,
139-
envvar=["GITHUB_BASE_REF", "MERGIFY_TESTS_TARGET_BRANCH", "GITHUB_REF"],
139+
envvar=["MERGIFY_TESTS_TARGET_BRANCH", "GITHUB_BASE_REF", "GITHUB_REF"],
140140
callback=_process_tests_target_branch,
141141
)
142142
@click.argument(

0 commit comments

Comments
 (0)