Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tagger date and version:refname sort attribute for fetching releases branches #1503

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ods_ci/utils/scripts/fetch_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def checkout_repository(ref):

def get_branch(ref_to_exclude, selector_attribute):
"""
List the remote branches and sort by last commit date (ASC order), exclude $ref_to_exclude and get latest
List the remote branches and sort by selector_attribute date (ASC order), exclude $ref_to_exclude and get latest
"""
ref_to_exclude_esc = ref_to_exclude.replace("/", r"\/")
cmd = f"git branch -r --sort={selector_attribute} | grep releases/"
Expand Down Expand Up @@ -195,8 +195,8 @@ def extract_new_test_cases(test_repo, ref_1, ref_2, ref_2_auto, selector_attribu
help="Select the git attribute to use when --ref2-auto is enabled",
action="store",
dest="selector_attribute",
choices=["creatordate", "committerdate", "authordate"],
default="creatordate",
choices=["creatordate", "committerdate", "authordate", "taggerdate", "version:refname"],
default="version:refname",
)

args = parser.parse_args()
Expand Down
Loading