bitbucket: order tags by date

This commit is contained in:
Alexandru Fikl 2022-02-02 14:17:51 -06:00
parent 2f61336ce3
commit b6eef8a54a
No known key found for this signature in database
GPG Key ID: 32C1509CB6EE436B
1 changed files with 1 additions and 1 deletions

View File

@ -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']