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 78e3ec2 commit 6e7a5bfCopy full SHA for 6e7a5bf
public/scripts/workflow.js
@@ -35,14 +35,7 @@ function parseRepositoryURL(repoURL) {
35
// Shorthand and domain/owner/repo (e.g., owner/repo or host/owner/repo)
36
if (!/^\w+:\/\//.test(repoURL)) {
37
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) {
+ if (parts.length === 2) {
46
// owner/repo shorthand (assume github.com)
47
return {
48
origin: "https://github.com",
0 commit comments