https://github.blog/changelog/2022-08-04-commit-comments-no-longer-appear-in-the-pull-request-timeline/ meaning the --pr flag is now mandatory for CML reports to show up in PRs. Kinda a UX breaking change potentially.
Options (pick just one):
update docs & examples, adding --pr everywhere (breaking change, examples: add --pr cml.dev#331 )
also auto-detect this/print warnings?
$ cml comment ...
(ok)
$ cml pr ...
(ok)
$ cml comment ...
WARNING: did you forget ` --pr` flag?
cml comment ... [--pr=true] by default (UX friendly)
iff not in a PR, print a warning and fallback to --pr=false (commit-comment)
users need explicit --pr=false/--no-pr to use commit-comments in PRs (edge case)
cml comment ... [--pr=auto] by default (better fail-not-warn error handling)
try to PR-comment, fallback to commit-comment
explicit --pr={true,false} throws error on failure (no fallback)
however, is this implementation possible? does yargs allow --flag=foo == "foo" && --flag == true (latter needed for backwards compat)?
https://github.blog/changelog/2022-08-04-commit-comments-no-longer-appear-in-the-pull-request-timeline/ meaning the
--prflag is now mandatory for CML reports to show up in PRs. Kinda a UX breaking change potentially.Options (pick just one):
--preverywhere (breaking change, examples: add --pr cml.dev#331)also auto-detect this/print warnings?
cml comment ... [--pr=true]by default (UX friendly)--pr=false(commit-comment)--pr=false/--no-prto use commit-comments in PRs (edge case)cml comment ... [--pr=auto]by default (better fail-not-warn error handling)--pr={true,false}throws error on failure (no fallback)--flag=foo=="foo"&&--flag==true(latter needed for backwards compat)?