We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e6b9f4 commit a899b33Copy full SHA for a899b33
create-pull-request.js
@@ -4,7 +4,7 @@ const exec = util.promisify(require("child_process").exec);
4
const gitRemoteOriginUrl = require("git-remote-origin-url");
5
const open = require("open");
6
7
-async function generateLink() {
+(async () => {
8
try {
9
const { stdout, stderr } = await exec("git rev-parse --abbrev-ref HEAD");
10
if (stderr) {
@@ -19,6 +19,4 @@ async function generateLink() {
19
} catch (error) {
20
throw error;
21
}
22
-}
23
-
24
-generateLink();
+})();
0 commit comments