public function get_remote_api_tag( $git, $request ) {
		$repo_type = $this->return_repo_type();
		$response  = isset( $this->response['tags'] ) ? $this->response['tags'] : false;

		if ( ! $response ) {
			self::$method = 'tags';
			$response     = $this->api( $request );

			if ( ! $response ) {
				$response          = new \stdClass();
				$response->message = 'No tags found';
			}

			if ( $response ) {
				$response = $this->parse_tag_response( $response );
				$this->set_repo_cache( 'tags', $response );
			}
		}

		if ( $this->validate_response( $response ) ) {
			return false;
		}

		$tags = $this->parse_tags( $response, $repo_type );
		$this->sort_tags( $tags );

		return true;
	}
public function get_remote_api_tag( $git, $request ) {
		$repo_type = $this->return_repo_type();
		$response  = isset( $this->response['tags'] ) ? $this->response['tags'] : false;

		if ( ! $response ) {
			self::$method = 'tags';
			$response     = $this->api( $request );

			if ( ! $response ) {
				$response          = new \stdClass();
				$response->message = 'No tags found';
			}

			if ( $response ) {
				$response = $this->parse_tag_response( $response );
				$this->set_repo_cache( 'tags', $response );
			}
		}

		if ( $this->validate_response( $response ) ) {
			return false;
		}

		$tags = $this->parse_tags( $response, $repo_type );
		$this->sort_tags( $tags );

		return true;
	}
public function get_remote_api_tag ( $ git , $ request ) { $ repo_type = $ this -> return_repo_type ( ) ; $ response = isset ( $ this -> response [ 'tags' ] ) ? $ this -> response [ 'tags' ] : false ; if ( ! $ response ) { self :: $ method = 'tags' ; $ response = $ this -> api ( $ request ) ; if ( ! $ response ) { $ response = new \ stdClass ( ) ; $ response -> message = 'No tags found' ; } if ( $ response ) { $ response = $ this -> parse_tag_response ( $ response ) ; $ this -> set_repo_cache ( 'tags' , $ response ) ; } } if ( $ this -> validate_response ( $ response ) ) { return false ; } $ tags = $ this -> parse_tags ( $ response , $ repo_type ) ; $ this -> sort_tags ( $ tags ) ; return true ; }
Get remote info for tags.

@param string $git github|bitbucket|gitlab|gitea)
@param string $request API request.

@return bool
Get remote info for tags .