Skip to content

gh pr create --fill-from and --fill-latest arguments #8163

Description

@brawaru

Describe the feature or problem you’d like to solve

I like to chain pull requests, which is very nice when, for example, you want to merge dependencies updates, and then stack fixes for these for updates on top, having each middle branch checked, before they all lend into master.

Unfortunately, in these cases creating pull requests with gh pr is quite annoying, because it cannot auto-fill the title and message. There is --fill and --fill-first, but they aren't useful, because --fill won't provide a useful message, and the first commit will be first merged PR.

Proposed solution

I think having --fill-from=<commit> and --fill-latest arguments will be useful. With --fill-from, CLI would automatically pick the title and message using a specific commit, whereas --fill-latest would use the message from the latest commit.

Additional context

N/A

Activity

  1. samcoe commented on Oct 12, 2023

    @samcoe
    Contributor

    @brawaru Thanks for opening this feature request. This is something the team discussed when talking about adding the --fill-first flag and we were unable to come up with a decision at that time. I am going to add the discuss label here so that the team can have another talk about if we want to support this feature.

  2. added
    coreThis issue is not accepting PRs from outside contributors
    discussFeature changes that require discussion primarily among the GitHub CLI team
    gh-prrelating to the gh pr command
    and removed
    discussFeature changes that require discussion primarily among the GitHub CLI team
    on Oct 12, 2023
  3. samcoe commented on Oct 17, 2023

    @samcoe
    Contributor

    @brawaru The team discussed this at length and while we can understand the desire for the functionality, at this time we are lot looking to support it. We are very hesitant to add additional --fill options as that is one of our most controversial features with everyone wanting their pull request to be filled in differently. I added this issue to our tracking issue #7575 for the various issues we want to address with the pr create command. I am going to leave this issue open for discovery purposes and for other community members to comment on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLIgh-prrelating to the gh pr command

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions