'Opens a pull request from --github_publisher\'s repo to the upstream \'spinnaker\' repo.
Uses \'hub\' to open the pull request (https://github.com/github/hub).
This assumes that \'hub\' is installed on the machine running this script.'

def __open_changelog_pull_request(self):

    title = 'Changelog    for    version    {0}'.format(self.__version)
    branch_head = '{user}:{branch}'.format(user=self.__github_publisher, branch=self.__changelog_branch)
    with open('message', 'w') as msg_file:
        message = '{title}'.format(title=title)
        msg_file.write(message)
    base = 'spinnaker:master'
    check_run_quick('hub    -C    spinnaker.github.io    pull-request    -b    {base}    -h    {head}    -F    message'.format(base=base, head=branch_head, msg=''))
