@task
def release_notes(ctx, version=None, username=None, password=None, write=False):
    "Generate release notes based on issues in the issue tracker.\n\n    Args:\n        version:  Generate release notes for this version. If not given,\n                  generated them for the current version.\n        username: GitHub username.\n        password: GitHub password.\n        write:    When set to True, write release notes to a file overwriting\n                  possible existing file. Otherwise just print them to the\n                  terminal.\n\n    Username and password can also be specified using ``GITHUB_USERNAME`` and\n    ``GITHUB_PASSWORD`` environment variable, respectively. If they aren't\n    specified at all, communication with GitHub is anonymous and typically\n    pretty slow.\n    "
    version = Version(version, VERSION_PATH, VERSION_PATTERN)
    file = (RELEASE_NOTES_PATH if write else sys.stdout)
    generator = ReleaseNotesGenerator(REPOSITORY, RELEASE_NOTES_TITLE, RELEASE_NOTES_INTRO)
    generator.generate(version, username, password, file)
Generate release notes based on issues in the issue tracker.

Args:
    version:  Generate release notes for this version. If not given,
              generated them for the current version.
    username: GitHub username.
    password: GitHub password.
    write:    When set to True, write release notes to a file overwriting
              possible existing file. Otherwise just print them to the
              terminal.

Username and password can also be specified using ``GITHUB_USERNAME`` and
``GITHUB_PASSWORD`` environment variable, respectively. If they aren't
specified at all, communication with GitHub is anonymous and typically
pretty slow.
@task
def release_notes(ctx, version=None, username=None, password=None, write=False):
    "Generate release notes based on issues in the issue tracker.\n\n    Args:\n        version:  Generate release notes for this version. If not given,\n                  generated them for the current version.\n        username: GitHub username.\n        password: GitHub password.\n        write:    When set to True, write release notes to a file overwriting\n                  possible existing file. Otherwise just print them to the\n                  terminal.\n\n    Username and password can also be specified using ``GITHUB_USERNAME`` and\n    ``GITHUB_PASSWORD`` environment variable, respectively. If they aren't\n    specified at all, communication with GitHub is anonymous and typically\n    pretty slow.\n    "
    version = Version(version, VERSION_PATH, VERSION_PATTERN)
    file = (RELEASE_NOTES_PATH if write else sys.stdout)
    generator = ReleaseNotesGenerator(REPOSITORY, RELEASE_NOTES_TITLE, RELEASE_NOTES_INTRO)
    generator.generate(version, username, password, file)