Skip to content

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

@brawaru

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

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