Skip to content

Commit 7f6f186

Browse files
committed
Suggest --no-stack when cowardly refusing large stack
Signed-off-by: Edward Z. Yang <[email protected]> ghstack-source-id: 43f812f ghstack-comment-id: 2504001140 Pull Request resolved: #271
1 parent 6f32174 commit 7f6f186

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ghstack/submit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,9 @@ def run(self) -> List[DiffMeta]:
471471
raise RuntimeError(
472472
"Cowardly refusing to handle a stack with more than eight PRs. "
473473
"You are likely to get rate limited by GitHub if you try to create or "
474-
"manipulate this many PRs. You can bypass this throttle using --force"
474+
"manipulate this many PRs. To submit a single diff from your stack, "
475+
"run `ghstack --no-stack HEAD` (replace HEAD with the desired commit ID). "
476+
"To YOLO the entire stack, pass --force"
475477
)
476478

477479
# This is not really accurate if you're doing a fancy pattern;

0 commit comments

Comments
 (0)