update bitbucket doc links

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

View File

@ -1,10 +1,9 @@
# MIT licensed
# Copyright (c) 2013-2020 lilydjwg <lilydjwg@gmail.com>, et al.
from nvchecker.api import sort_version_keys
# doc: https://confluence.atlassian.com/display/BITBUCKET/commits+or+commit+Resource
# doc: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-commits-get
BITBUCKET_URL = 'https://bitbucket.org/api/2.0/repositories/%s/commits/%s'
# doc: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-repositories-workspace-repo-slug-refs-tags-get
BITBUCKET_MAX_TAG = 'https://bitbucket.org/api/2.0/repositories/%s/refs/tags?sort=-target.date'
async def get_version(name, conf, *, cache, **kwargs):