@growthagent/ci 0.6.0 → 0.7.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.
Files changed (2) hide show
  1. package/dist/cli.js +5 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -706,7 +706,7 @@ function apply() {
706
706
  Implements #${issue.number}.
707
707
 
708
708
  Flag: ${meta.flagKey}`]);
709
- sh("git", ["push", "-u", "origin", branch]);
709
+ sh("git", ["push", "--force", "-u", "origin", branch]);
710
710
  const stat2 = sh("git", ["diff", "--stat", "HEAD~1", "HEAD"]);
711
711
  const prBody = meta.kind === "instrumentation" ? [
712
712
  `Implements #${issue.number}.`,
@@ -737,18 +737,18 @@ Flag: ${meta.flagKey}`]);
737
737
  "",
738
738
  `Primary metric: \`${meta.primaryMetric}\`.`
739
739
  ].join("\n");
740
+ const prTitle = title.startsWith("[growth]") ? title : `[growth] ${title}`;
740
741
  const prUrl = sh("gh", [
741
742
  "pr",
742
743
  "create",
743
744
  "--title",
744
- `[growth] ${title}`,
745
+ prTitle,
745
746
  "--body",
746
747
  prBody,
747
748
  "--head",
748
- branch,
749
- "--label",
750
- "growth-agent"
749
+ branch
751
750
  ]);
751
+ sh("gh", ["pr", "edit", branch, "--add-label", "growth-agent"], { allowFail: true });
752
752
  console.log(`\u25B8 opened ${prUrl}`);
753
753
  return 0;
754
754
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@growthagent/ci",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {