Repository: carbon-language/carbon-lang
File: proposals/scripts/new_proposal.py (Python)

Code before:
    # Prompt before proceeding.
    response = "?"
    while response not in ("y", "n", ""):
        response = input(_PROMPT % (branch, title)).lower()
    if response == "n":
        exit("ERROR: Cancelled")

    # Create a proposal branch.
    if git_bin:
      _run(
          [git_bin, "switch", "--create", branch, parsed_args.branch_start_point]
      )
      _run([git_bin, "push", "-u", parsed_args.remote, branch])
    else:
      _run([jj_bin, "new", parsed_args.branch_start_point])
      _run([jj_bin, "bookmark", "create", branch])

    # Copy template.md to a temp file.
    template_path = "proposals/scripts/template.md"
    temp_path = "proposals/new-proposal.tmp.md"
    shutil.copyfile(template_path, temp_path)
    if git_bin:
      _run([git_bin, "add", temp_path])
      _run([git_bin, "commit", "-m", "Creating new proposal: %s" % title])
    else:
      _run([jj_bin, "describe", "-m", "Creating new proposal: %s" % title])

    # Create a PR with WIP+proposal labels.
    if git_bin:
      _run([git_bin, "push"])
      user = _run([git_bin, "config", "get", "user.name"], get_stdout=True)
    else:
      _run([jj_bin, "git", "push"])
      user = _run([jj_bin, "config", "get", "user.name"], get_stdout=True)
    user = user.strip()
    pr_num = _run_pr_create(
        [
            gh_bin,
            "pr",
            "create",
            "--head",
            "%s:%s" % (user, branch),
            "--draft",
            "--label",
            "proposal",
            "--label",
            "proposal draft",
            "--repo",
            "carbon-language/carbon-lang",
            "--title",
            title,

Review comment (suggestion):
```suggestion
    description = "Creating new proposal: %s" % title
    if git_bin:
      _run([git_bin, "add", temp_path])
      _run([git_bin, "commit", "-m", description])
    else:
      _run([jj_bin, "describe", "-m", description])
```

Code after:
    # Prompt before proceeding.
    response = "?"
    while response not in ("y", "n", ""):
        response = input(_PROMPT % (branch, title)).lower()
    if response == "n":
        exit("ERROR: Cancelled")

    # Create a proposal branch.
    if git_bin:
        _run(
            [
                git_bin,
                "switch",
                "--create",
                branch,
                parsed_args.branch_start_point,
            ]
        )
        _run([git_bin, "push", "-u", parsed_args.remote, branch])
    else:
        assert jj_bin  # For mypy.
        _run([jj_bin, "new", parsed_args.branch_start_point])
        _run([jj_bin, "bookmark", "create", branch])

    # Copy template.md to a temp file.
    template_path = "proposals/scripts/template.md"
    temp_path = "proposals/new-proposal.tmp.md"
    shutil.copyfile(template_path, temp_path)
    initial_desc = "Creating new proposal: %s" % title
    if git_bin:
        _run([git_bin, "add", temp_path])
        _run([git_bin, "commit", "-m", initial_desc])
    else:
        assert jj_bin  # For mypy.
        _run([jj_bin, "describe", "-m", initial_desc])

    # Create a PR with WIP+proposal labels.
    if git_bin:
        _run([git_bin, "push"])
        user = _run([git_bin, "config", "get", "user.name"], get_stdout=True)
    else:
        assert jj_bin  # For mypy.
        _run([jj_bin, "git", "push"])
        user = _run([jj_bin, "config", "get", "user.name"], get_stdout=True)
    assert user  # For mypy.
    user = user.strip()
    pr_num = _run_pr_create(
        [
            gh_bin,
            "pr",
            "create",