INNER CODE UNIT · Python

main

mistio/mist-ce · ci/release.py:12

def main():
    args = parse_args()
    request = Client(args.owner, args.repo, args.token)
    update_release(
        request, args.tag, msg=args.msg, files=args.files,
        prerelease=args.prerelease, draft=args.draft,
        remove_undefined_files=args.remove_undefined_files,
    )


def parse_args():
    argparser = argparse.ArgumentParser(
        description=("Create/Update Github release based on git tag. When "
                     "creating a release that doesn't exist, it'll be marked "
                     "as stable (not prerelease) and public (not draft), "
                     "unless otherwise specified. When updating a release, "
                     "only fields specified by corresponding options will be "
                     "modified."))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…