Skip to content

Compare changes

Choose two branches to see what one has that the other does not, then open a pull request for it.

Open a pull request

1 commit

1 file+10−10/1 viewed
+10−1
3636 return null;
3737 }
3838
39+/** The branch checked out, or null when detached. */
40+function currentBranch() {
41+ try {
42+ return execFileSync("git", ["branch", "--show-current"], { cwd: ROOT, encoding: "utf8" }).trim() || null;
43+ } catch {
44+ return null;
45+ }
46+}
47+
3948 function remoteUrls() {
4049 try {
4150 const names = execFileSync("git", ["remote"], { cwd: ROOT, encoding: "utf8" }).split("\n").filter(Boolean);
6170 method: "POST",
6271 headers,
6372 body: JSON.stringify({
64− ref: head,
73+ ref: currentBranch() ?? head,
6574 sha: head,
6675 environment: "production",
6776 production_environment: true,