# Path: autorelease/tag.py
# LANGUAGE_ALLOWLIST = [
#     "dotnet",
#     "ruby",
# ]
# ORGANIZATIONS_TO_SCAN = ["googleapis", "GoogleCloudPlatform"]
# def run_releasetool_tag(lang: str, gh: github.GitHub, pull: dict) -> TagContext:
# def process_issue(
#     kokoro_session, gh: github.GitHub, issue: dict, result: reporter.Result
# ) -> None:
# def main(github_token: str, kokoro_credentials: str) -> reporter.Reporter:
# 
# Path: autorelease/trigger.py
# LANGUAGE_ALLOWLIST = []
# ORGANIZATIONS_TO_SCAN = ["googleapis", "GoogleCloudPlatform"]
# CREATED_AFTER = "2021-04-01"
# def trigger_kokoro_build_for_pull_request(
#     kokoro_session,
#     gh: github.GitHub,
#     issue: dict,
#     result,
#     update_labels: bool = True,
#     use_allowlist: bool = True,
# ) -> None:
# def _parse_issue(pull_request_url: str) -> Tuple[str, int]:
# def trigger_single(
#     github_token: str, kokoro_credentials: str, pull_request_url: str
# ) -> reporter.Reporter:
# def main(github_token: str, kokoro_credentials: str) -> reporter.Reporter:


import argparse
import os
import sys
from autorelease import tag, trigger
                return fh.read().strip()

    return None


def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("--report")
    parser.add_argument("--github-token", default=os.environ.get("GITHUB_TOKEN"))
    parser.add_argument(
        "--kokoro-credentials", default=os.environ.get("AUTORELEASE_KOKORO_CREDENTIALS")
    )
    parser.add_argument("--pull", default=None)
    parser.add_argument("command")

    args = parser.parse_args()

    args.github_token = _determine_github_token(args.github_token)

    if args.command == "tag":
        report = tag.main(args.github_token, args.kokoro_credentials)

        if args.report:
            report.write(args.report)

        if report.failures:
            sys.exit(2)
        else:
            return
    elif args.command == "trigger":

# Path: autorelease/tag.py
# LANGUAGE_ALLOWLIST = [
#     "dotnet",
#     "ruby",
# ]
# ORGANIZATIONS_TO_SCAN = ["googleapis", "GoogleCloudPlatform"]
# def run_releasetool_tag(lang: str, gh: github.GitHub, pull: dict) -> TagContext:
# def process_issue(
#     kokoro_session, gh: github.GitHub, issue: dict, result: reporter.Result
# ) -> None:
# def main(github_token: str, kokoro_credentials: str) -> reporter.Reporter:
# 
# Path: autorelease/trigger.py
# LANGUAGE_ALLOWLIST = []
# ORGANIZATIONS_TO_SCAN = ["googleapis", "GoogleCloudPlatform"]
# CREATED_AFTER = "2021-04-01"
# def trigger_kokoro_build_for_pull_request(
#     kokoro_session,
#     gh: github.GitHub,
#     issue: dict,
#     result,
#     update_labels: bool = True,
#     use_allowlist: bool = True,
# ) -> None:
# def _parse_issue(pull_request_url: str) -> Tuple[str, int]:
# def trigger_single(
#     github_token: str, kokoro_credentials: str, pull_request_url: str
# ) -> reporter.Reporter:
# def main(github_token: str, kokoro_credentials: str) -> reporter.Reporter:


# Path: autorelease/__main__.py
import argparse
import os
import sys
from autorelease import tag, trigger

                return fh.read().strip()

    return None


def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("--report")
    parser.add_argument("--github-token", default=os.environ.get("GITHUB_TOKEN"))
    parser.add_argument(
        "--kokoro-credentials", default=os.environ.get("AUTORELEASE_KOKORO_CREDENTIALS")
    )
    parser.add_argument("--pull", default=None)
    parser.add_argument("command")

    args = parser.parse_args()

    args.github_token = _determine_github_token(args.github_token)

    if args.command == "tag":
        report = tag.main(args.github_token, args.kokoro_credentials)

        if args.report:
            report.write(args.report)

        if report.failures:
            sys.exit(2)
        else:
            return
    elif args.command == "trigger":

        report = trigger.main(args.github_token, args.kokoro_credentials)