From b6eef8a54a3db61968e82516480e29e33cad70bc Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Wed, 2 Feb 2022 14:17:51 -0600 Subject: [PATCH] bitbucket: order tags by date --- nvchecker_source/bitbucket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvchecker_source/bitbucket.py b/nvchecker_source/bitbucket.py index 5919709..c3716d9 100644 --- a/nvchecker_source/bitbucket.py +++ b/nvchecker_source/bitbucket.py @@ -5,7 +5,7 @@ from nvchecker.api import sort_version_keys # doc: https://confluence.atlassian.com/display/BITBUCKET/commits+or+commit+Resource BITBUCKET_URL = 'https://bitbucket.org/api/2.0/repositories/%s/commits/%s' -BITBUCKET_MAX_TAG = 'https://bitbucket.org/api/2.0/repositories/%s/refs/tags' +BITBUCKET_MAX_TAG = 'https://bitbucket.org/api/2.0/repositories/%s/refs/tags?sort=-target.date' async def get_version(name, conf, *, cache, **kwargs): repo = conf['bitbucket']