def __get_tweet_content_from_res(gh_res):
  """From the response object returned by GitHub's API, this function builds the
  content to be tweeted

  Args:
      gh_res (dict): A dictionary of repository details

  Returns:
      str: The string to be tweeted.
  """

  tweet_content = gh_res["name"]
  if gh_res["language"]:
    tweet_content += f' in #{gh_res["language"]}'
  tweet_content += f' by {gh_res["owner"]["login"]} ({gh_res["html_url"]}).'
  if gh_res["description"]:
    tweet_content += f'\n{gh_res["description"][:100]}'
    if (len(gh_res["description"])) > 100:
      tweet_content += '...'
  return tweet_content