stubsabot: warn if stubtest is skipped in CI (for real this time) (#9133)

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.
This commit is contained in:
Alex Waygood
2022-11-08 16:33:17 +00:00
committed by GitHub
parent 4f381af4c5
commit efa1048d42

View File

@@ -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(
"""