@pubm/plugin-brew 0.4.4 → 0.4.5

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/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -158,12 +158,12 @@ function ensureGitIdentity(cwd) {
158
158
  try {
159
159
  execSync("git config user.name", { ...opts, stdio: "pipe" });
160
160
  } catch {
161
- execSync('git config user.name "pubm[bot]"', opts);
161
+ execSync('git config user.name "pubm-bot"', opts);
162
162
  }
163
163
  try {
164
164
  execSync("git config user.email", { ...opts, stdio: "pipe" });
165
165
  } catch {
166
- execSync('git config user.email "pubm[bot]@users.noreply.github.com"', opts);
166
+ execSync('git config user.email "pubmsupport@gmail.com"', opts);
167
167
  }
168
168
  }
169
169
 
@@ -349,7 +349,8 @@ function brewTap(options) {
349
349
  const { execSync: execSync2 } = await import("node:child_process");
350
350
  const tmpDir = join2(tmpdir2(), `pubm-brew-tap-${Date.now()}`);
351
351
  const formulaFile = basename(formulaPath);
352
- execSync2(`git clone --depth 1 ${options.repo} ${tmpDir}`, {
352
+ const repoUrl = /^[^/]+\/[^/]+$/.test(options.repo) ? `https://github.com/${options.repo}.git` : options.repo;
353
+ execSync2(`git clone --depth 1 ${repoUrl} ${tmpDir}`, {
353
354
  stdio: "inherit"
354
355
  });
355
356
  ensureGitIdentity(tmpDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubm/plugin-brew",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "type": "module",
5
5
  "description": "pubm plugin for Homebrew formula publishing workflows",
6
6
  "main": "./dist/index.js",