action bitbucket_get_repositories_workspace_repo_slug_refs { label: "List branches and tags" description: "Returns the branches and tags in the repository.\n\nBy default, results will be in the order the underlying source control system returns them and identical to\nthe ordering one sees when running \"$ git show-ref\". Note that this follows simple\nlexical ordering of the ref names.\n\nThis can be undesirable as it does apply any natural sorting semantics, meaning for instance that refs are\nsorted [\"branch1\", \"branch10\", \"branch2\", \"v10\", \"v11\", \"v9\"] instead of [\"branch1\", \"branch2\",\n\"branch10\", \"v9\", \"v10\", \"v11\"].\n\nSorting can be changed using the ?sort= query parameter. When using ?sort=name to explicitly sort on ref name,\nBitbucket will apply natural sorting and interpret numerical values as numbers instead of strings." provider: bitbucket method: GET path: "/repositories/{workspace}/{repo_slug}/refs" encoding: json input: { type: "object" properties: { q: { type: "string" } sort: { type: "string" } } additionalProperties: false } output: { type: "object" description: "A paginated list of refs." properties: { next: { type: "string" format: "uri" description: "Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs." } page: { type: "integer" description: "Page number of the current results. This is an optional element that is not provided in all responses." } pagelen: { type: "integer" description: "Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values." } previous: { type: "string" format: "uri" description: "Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs." } size: { type: "integer" description: "Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute." } values: { type: "array" items: { type: "object" description: "A ref object, representing a branch or tag in a repository." required: ["type"] properties: { links: { type: "object" properties: { commits: { type: "object" description: "A link to a resource related to this object." properties: { href: { type: "string" format: "uri" } name: { type: "string" } } additionalProperties: false } html: { type: "object" description: "A link to a resource related to this object." properties: { href: { type: "string" format: "uri" } name: { type: "string" } } additionalProperties: false } self: { type: "object" description: "A link to a resource related to this object." properties: { href: { type: "string" format: "uri" } name: { type: "string" } } additionalProperties: false } } additionalProperties: false } name: { type: "string" description: "The name of the ref." } target: { type: "object" } type: { type: "string" } } } } } additionalProperties: false } }