public function get_remote_tag()
{
$repo_type = $this->return_repo_type();
$response = isset($this->response['tags']) ? $this->response['tags'] : false;
if (!$response) {
$response = $this->api('/repos/:owner/:repo/tags');
if (!$response) {
$response = new \stdClass();
$response->message = 'No tags found';
}
if ($response) {
$response = $this->parse_tag_response($response);
$this->set_transient('tags', $response);
}
}
if ($this->validate_response($response)) {
return false;
}
$this->parse_tags($response, $repo_type);
return true;
}