parameters: (repository, prerelease=False, returnlimit=5)
docstring: Return the repository releases.
docstring_summary: Return the repository releases.
docstring_tokens: Return the repository releases .
function: async def get_releases(repository, prerelease=False, returnlimit=5):
      """Return the repository releases."""
      try:
          releases = await repository.get_releases(prerelease, returnlimit)
          return releases
      except (ValueError, AIOGitHubAPIException) as exception:
          raise HacsException(exception)
function_tokens: async def get_releases ( repository , prerelease = False , returnlimit = 5 ) : try : releases = await repository . get_releases ( prerelease , returnlimit ) return releases except ( ValueError , AIOGitHubAPIException ) as exception : raise HacsException ( exception )