Take GitHub pull requests out of a stack
github_stack_unlinkRemove unmerged pull requests from a GitHub stack while keeping merged and queued ones in place; pull requests stay open and can be relinked later.
Instructions
Take the pull requests out of a native stack, named by its number or by a pull request in it. Every unmerged pull request leaves (open, draft and closed ones); merged and queued ones stay in the stack, and remaining shows what is left, null when the stack is gone. The pull requests stay open with their branches and bases as they were, and nothing is deleted: github_stack_link can build the stack again. A pull request in no stack is left alone: nothing is sent and changed is false. A pull request is 12, #12, owner/repo#12 or its URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | No | A pull request in the stack. The pull request, as 12, #12, owner/repo#12 or its URL. | |
| repo | No | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. | |
| stack | No | The stack's number (not a pull request's). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| changed | Yes | False when the pull request was in no stack, or none of the stack's pull requests could leave. | |
| foreign | Yes | ||
| removed | Yes | The pull requests that left the stack. | |
| remaining | Yes | What is left of the stack (merged and queued pull requests stay); null when it is gone. | |
| stack_number | Yes | The stack that was taken apart; null when the pull request was in none. |