utils/maintenance/GitHub.php
public static function get_release_by_tag(
		$project,
		$tag,
		$args = []
	) {
		$request_url = sprintf(
			self::API_ROOT . 'repos/%s/releases/tags/%s',
			$project,
			$tag
		);

		$args['per_page'] = 100;

		list( $body, $headers ) = self::request( $request_url, $args );

		return $body;
	}
public static function get_release_by_tag(
		$project,
		$tag,
		$args = []
	) {
		$request_url = sprintf(
			self::API_ROOT . 'repos/%s/releases/tags/%s',
			$project,
			$tag
		);

		$args['per_page'] = 100;

		list( $body, $headers ) = self::request( $request_url, $args );

		return $body;
	}
public static function get_release_by_tag ( $ project , $ tag , $ args = [ ] ) { $ request_url = sprintf ( self :: API_ROOT . 'repos/%s/releases/tags/%s' , $ project , $ tag ) ; $ args [ 'per_page' ] = 100 ; list ( $ body , $ headers ) = self :: request ( $ request_url , $ args ) ; return $ body ; }
Gets a release for a given project by its tag name.

@param string $project
@param string $tag
@param array  $args

@return array|false
Gets a release for a given project by its tag name .