Skip to content

Scriptability for gh stack submit #649

Backlog

Description

@bk2204

One thing I do frequently is make large sets of PRs that fix some issue (presently, I'm updating a codebase for SHA-256 Git repository support via the help of a script). I want to script the creation of each of the PRs in my stack with very similar content, since all the PRs are effectively doing the same thing; all that's different is which set of files I'm operating on. For instance, all of them should have similar (but maybe not exactly identical) body content and all should be created in draft mode.

With this in mind, I'd like something where gh stack submit will invoke a script of my choice with each of the branches and then I can choose which options to use (including all the features of gh pr create) to create that particular PR. The model I'm thinking of would be something akin to git bisect run or GIT_EDITOR and GIT_SEQUENCE_EDITOR for git rebase.

Ideally, I'd even get the ability to use the repository's pull request template by having that prepared for me in a file that I can edit in place, much like I can with GIT_EDITOR on a commit message.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions