Skip to content

Commit 6e7a5bf

Browse files
committed
Remove missing repo branch
1 parent 78e3ec2 commit 6e7a5bf

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

public/scripts/workflow.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,7 @@ function parseRepositoryURL(repoURL) {
3535
// Shorthand and domain/owner/repo (e.g., owner/repo or host/owner/repo)
3636
if (!/^\w+:\/\//.test(repoURL)) {
3737
const parts = repoURL.split("/").filter(Boolean);
38-
if (parts.length === 2 && parts[0].includes(".")) {
39-
// host/owner (missing repo)
40-
return {
41-
origin: `https://${parts[0]}`,
42-
owner: parts[1],
43-
repo: parts[2], // will be undefined, so will be caught below
44-
};
45-
} else if (parts.length === 2) {
38+
if (parts.length === 2) {
4639
// owner/repo shorthand (assume github.com)
4740
return {
4841
origin: "https://github.com",

0 commit comments

Comments
 (0)