Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest --no-stack when cowardly refusing large stack #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ghstack/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,9 @@ def run(self) -> List[DiffMeta]:
raise RuntimeError(
"Cowardly refusing to handle a stack with more than eight PRs. "
"You are likely to get rate limited by GitHub if you try to create or "
"manipulate this many PRs. You can bypass this throttle using --force"
"manipulate this many PRs. To submit a single diff from your stack, "
"run `ghstack --no-stack HEAD` (replace HEAD with the desired commit ID). "
"To YOLO the entire stack, pass --force"
)

# This is not really accurate if you're doing a fancy pattern;
Expand Down
Loading