codemodctl 0.1.34 → 0.1.35

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.mjs +5 -0
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -118,6 +118,11 @@ const createPrCommand = defineCommand({
118
118
  process.exit(1);
119
119
  }
120
120
  {
121
+ const headSha = await $`git rev-parse HEAD`;
122
+ const branchInfo = await $`git log --oneline -1`;
123
+ console.log(`Pushing HEAD=${headSha.stdout.trim()} (${branchInfo.stdout.trim()}) to refs/heads/${codemodBranchName}`);
124
+ const lsRemote = await $({ reject: false })`git -c http.version=HTTP/1.1 ls-remote origin refs/heads/${codemodBranchName}`;
125
+ console.log(`Remote ref: ${lsRemote.stdout.trim() || "(branch does not exist)"}`);
121
126
  const maxRetries = 3;
122
127
  let pushed = false;
123
128
  for (let attempt = 1; attempt <= maxRetries; attempt++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codemodctl",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "description": "CLI tool and utilities for workflow engine operations, file sharding, and codeowner analysis",
5
5
  "type": "module",
6
6
  "exports": {