diff --git a/github.js b/github.js index 410cf8a..4028081 100644 --- a/github.js +++ b/github.js @@ -156,7 +156,7 @@ async function ensurePrsExist({ process.exit(0); } - const nickAndRepo = remoteUrl.match(/github\.com[/:](.*)\.git/)[1]; + const nickAndRepo = remoteUrl.match(/github\.com[/:](.*)/)[1].replace(/\.git$/, ''); if (!nickAndRepo) { console.log(`I could not parse your remote ${remote} repo URL`.red); process.exit(4);