Skip to content

Commit

Permalink
stubsabot: warn if stubtest is skipped in CI (for real this time)
Browse files Browse the repository at this point in the history
Fixes a bug in #8681. The logic currently is broken; there should have been a warning message in the PR body for #9118, but there wasn't.
  • Loading branch information
AlexWaygood committed Nov 8, 2022
1 parent 4f381af commit 2129c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/stubsabot.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def get_update_pr_body(update: Update, metadata: dict[str, Any]) -> str:
if update.diff_analysis is not None:
body += f"\n\n{update.diff_analysis}"

stubtest_will_run = not metadata.get("stubtest", {}).get("skip", False)
stubtest_will_run = not metadata.get("tool", {}).get("stubtest", {}).get("skip", False)
if stubtest_will_run:
body += textwrap.dedent(
"""
Expand Down

0 comments on commit 2129c0e

Please sign in to comment.