Title: open PRs as draft by default by skarim · Pull Request #76 · github/gh-stack · GitHub
Open Graph Title: open PRs as draft by default by skarim · Pull Request #76 · github/gh-stack
X Title: open PRs as draft by default by skarim · Pull Request #76 · github/gh-stack
Description: Default to creating draft PRs in submit and link commands. The --draft flag is removed and replaced with --open, which: Creates new PRs as ready for review (not draft) Converts existing draft PRs in the stack to ready for review Motivation Draft PRs are the safer default — they signal that work is in progress and prevent accidental reviews or merges. Users who want to open PRs that are ready for review can opt in with --open. Changes New GitHub API method: MarkPRReadyForReview(prID) — calls the markPullRequestAsReady GraphQL mutation Command changes (submit + link): Removed --draft flag Added --open flag (default: false, meaning PRs are drafts by default) When --open is set on existing draft PRs, they are converted to ready for review Tests: 6 new tests covering default-draft behavior, --open flag for new PRs, and draft→ready conversion for existing PRs. Docs: Updated README, CLI reference, FAQ, and agent skill file. Examples # Create draft PRs (new default — no flag needed) gh stack submit # Create ready-for-review PRs and convert existing drafts gh stack submit --open # Same behavior for link gh stack link feat-a feat-b feat-c gh stack link --open feat-a feat-b feat-c Stack created with GitHub Stacks CLI • Give Feedback 💬
Open Graph Description: Default to creating draft PRs in submit and link commands. The --draft flag is removed and replaced with --open, which: Creates new PRs as ready for review (not draft) Converts existing draft PRs ...
X Description: Default to creating draft PRs in submit and link commands. The --draft flag is removed and replaced with --open, which: Creates new PRs as ready for review (not draft) Converts existing draft PRs ...
Opengraph URL: https://github.com/github/gh-stack/pull/76
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:41a00a92-7c85-5133-b2fd-ed4cad448839 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8706:B2444:E7D72B:145307A:6A4FE738 |
| html-safe-nonce | 9ba392aa61045e2f0bba0628b3f09822976c5571bf8fccd53a4ced987703e25a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzA2OkIyNDQ0OkU3RDcyQjoxNDUzMDdBOjZBNEZFNzM4IiwidmlzaXRvcl9pZCI6IjYyMDU0NzYzNTcxNTUwNTU0MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 87e8ddfce8c3e8b57f115b861c19c173a41bece64d219ad72d5f5387477727a0 |
| hovercard-subject-tag | pull_request:3628388881 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/github/gh-stack/pull/76/files |
| twitter:image | https://avatars.githubusercontent.com/u/1701557?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1701557?s=400&v=4 |
| og:image:alt | Default to creating draft PRs in submit and link commands. The --draft flag is removed and replaced with --open, which: Creates new PRs as ready for review (not draft) Converts existing draft PRs ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/github/gh-stack git https://github.com/github/gh-stack.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151630728 |
| octolytics-dimension-repository_nwo | github/gh-stack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151630728 |
| octolytics-dimension-repository_network_root_nwo | github/gh-stack |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 142593e66413bbae27fd485859993597d5a3b104 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width