-
Notifications
You must be signed in to change notification settings - Fork 345
Closed
Labels
ci-githubcml-commentSubcommandSubcommanddiscussionWaiting for team decisionWaiting for team decisionenhancementNew feature or requestNew feature or requestp1-importantHigh priorityHigh priority
Description
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
--preverywhere (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-prto use commit-comments in PRs (edge case)
- iff not in a PR, print a warning and fallback to
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)?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ci-githubcml-commentSubcommandSubcommanddiscussionWaiting for team decisionWaiting for team decisionenhancementNew feature or requestNew feature or requestp1-importantHigh priorityHigh priority