refs
Branch
Bases: Ref
Bitbucket Cloud branch endpoint.
See https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-repositories-workspace-repo-slug-refs-branches-name-get
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/refs.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
|
author
property
User object of the author.
__init__(data, *args, **kwargs)
See BitbucketCloudBase.
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/refs.py
112 113 114 |
|
Branches
Bases: Refs
BitBucket Cloud branches endpoint.
See https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-repositories-workspace-repo-slug-refs-branches-get
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/refs.py
67 68 69 70 71 72 73 74 75 |
|
Ref
Bases: BitbucketCloudBase
Base object for individual refs.
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/refs.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
hash
property
Commit hash.
name
property
Ref name.
Refs
Bases: BitbucketCloudBase
Bitbucket Cloud Refs.
Generic base object for any type of ref list.
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/refs.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
__init__(url, *args, **kwargs)
See BitbucketCloudBase.
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/refs.py
14 15 16 |
|
create(name, commit)
Creates a ref with the given target commit :param name: string: name :param commit: string: commit hash
:return: Ref
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/refs.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
each(q=None, sort=None)
Returns the list of refs in this repository.
:param q: string: Query string to narrow down the response. See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details. :param sort: string: Name of a response property to sort results. See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details.
:return: A generator for the Ref objects
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/refs.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
get(name)
Returns the Ref with the requested name in the repository.
:param name: string: The requested name
:return: The requested Ref object
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/refs.py
56 57 58 59 60 61 62 63 64 |
|
Tag
Bases: Ref
Bitbucket Cloud tags endpoint.
See https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-repositories-workspace-repo-slug-refs-tags-name-get
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/refs.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|
author
property
User object of the author.
__init__(data, *args, **kwargs)
See BitbucketCloudBase.
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/refs.py
129 130 131 |
|
Tags
Bases: Refs
BitBucket Cloud tags endpoint.
See https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-repositories-workspace-repo-slug-refs-tags-get
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/refs.py
78 79 80 81 82 83 84 85 86 |
|