@growthagent/ci 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -43
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -707,49 +707,7 @@ Implements #${issue.number}.
|
|
|
707
707
|
|
|
708
708
|
Flag: ${meta.flagKey}`]);
|
|
709
709
|
sh("git", ["push", "--force", "-u", "origin", branch]);
|
|
710
|
-
|
|
711
|
-
const prBody = meta.kind === "instrumentation" ? [
|
|
712
|
-
`Implements #${issue.number}.`,
|
|
713
|
-
"",
|
|
714
|
-
"This adds measurement only. No behaviour changes, no features \u2014 a user",
|
|
715
|
-
"should not be able to tell it shipped.",
|
|
716
|
-
"",
|
|
717
|
-
"### Changed files",
|
|
718
|
-
"",
|
|
719
|
-
stat2,
|
|
720
|
-
"",
|
|
721
|
-
"Once this is merged and deployed, connect the analytics project in Growth",
|
|
722
|
-
"Agent so it can read what these events record."
|
|
723
|
-
].join("\n") : [
|
|
724
|
-
`Implements #${issue.number}.`,
|
|
725
|
-
"",
|
|
726
|
-
`Both branches are behind \`${meta.flagKey}\`, which is at **0%**. Merging this does not`,
|
|
727
|
-
"expose anyone to the variant \u2014 the flag is ramped only after a deployment succeeds and",
|
|
728
|
-
"exposure events are confirmed arriving in production.",
|
|
729
|
-
"",
|
|
730
|
-
"### Changed files",
|
|
731
|
-
"",
|
|
732
|
-
stat2,
|
|
733
|
-
"",
|
|
734
|
-
"### How to check both branches locally",
|
|
735
|
-
"",
|
|
736
|
-
`Override the flag \`${meta.flagKey}\` in your local analytics client and reload \`${meta.surface}\`.`,
|
|
737
|
-
"",
|
|
738
|
-
`Primary metric: \`${meta.primaryMetric}\`.`
|
|
739
|
-
].join("\n");
|
|
740
|
-
const prTitle = title.startsWith("[growth]") ? title : `[growth] ${title}`;
|
|
741
|
-
const prUrl = sh("gh", [
|
|
742
|
-
"pr",
|
|
743
|
-
"create",
|
|
744
|
-
"--title",
|
|
745
|
-
prTitle,
|
|
746
|
-
"--body",
|
|
747
|
-
prBody,
|
|
748
|
-
"--head",
|
|
749
|
-
branch
|
|
750
|
-
]);
|
|
751
|
-
sh("gh", ["pr", "edit", branch, "--add-label", "growth-agent"], { allowFail: true });
|
|
752
|
-
console.log(`\u25B8 opened ${prUrl}`);
|
|
710
|
+
console.log(`\u25B8 pushed ${branch} \u2014 Growth Agent opens the pull request`);
|
|
753
711
|
return 0;
|
|
754
712
|
}
|
|
755
713
|
async function main() {
|