{"id":37215419,"url":"https://github.com/git-download-manager/git-url-parse","last_synced_at":"2026-01-15T00:54:56.910Z","repository":{"id":161131121,"uuid":"532301924","full_name":"git-download-manager/git-url-parse","owner":"git-download-manager","description":"git url parser for common git providers. (SCP-Style url not supported yet)","archived":false,"fork":false,"pushed_at":"2024-06-03T20:28:01.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-06-21T06:24:43.249Z","etag":null,"topics":["bitbucket","cli","git-url","git-url-parser","gitea","github","gitlab","golang","parse","parser","url-parser"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/git-download-manager.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-03T15:39:03.000Z","updated_at":"2024-06-03T20:28:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b6c746c-83f4-43fd-8760-2f5a35c46105","html_url":"https://github.com/git-download-manager/git-url-parse","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/git-download-manager/git-url-parse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-download-manager%2Fgit-url-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-download-manager%2Fgit-url-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-download-manager%2Fgit-url-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-download-manager%2Fgit-url-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/git-download-manager","download_url":"https://codeload.github.com/git-download-manager/git-url-parse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-download-manager%2Fgit-url-parse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28440803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:34:46.850Z","status":"ssl_error","status_checked_at":"2026-01-15T00:34:46.551Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitbucket","cli","git-url","git-url-parser","gitea","github","gitlab","golang","parse","parser","url-parser"],"created_at":"2026-01-15T00:54:56.391Z","updated_at":"2026-01-15T00:54:56.898Z","avatar_url":"https://github.com/git-download-manager.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitd - Git Parse Url\n\nParse git url simple way. (SCP-Style url not supported yet)\n\n## Feature\n\n- Use the same code of [Gitdownloadmanager Api Service](https://gitdownloadmanager.com)\n- Generate Github, Bitbucket, Gitlab repository download full package url address\n- Supports all git url address without scp-styles\n\n## Git Repository\n\n```go\n// git repository\ntype GitRepository struct {\n TempDir string\n SSID    string\n\n debugMode bool\n\n Url       string // clean url after parse\n RawUrl    string // user set this dirty url\n CloneUrl  string\n RemoteUrl string // remote url for git git@github.com:username/repo.git\n QueryUrl  string // for search bar\n DirPath   string\n\n IsFile bool\n\n Protocol    string // https|ssh (scp-style - not supported yet)\n Scheme      string\n Hostname    string\n RawPath     string\n Path        string // file or folder path in this repository for download\n Owner       string\n Name        string // repository name - repo\n DummyBranch string // if branch name is empty, use this name\n Branch      string\n\n ArchiveUrl   string // download branch package\n FileUrl      string // download from single file url\n DownloadType int\n}\n```\n\n## Example Use\n\nsimple parse action\n\n```go\n// args\ntempDir := \"\" // only use gitdownloadmanager service\nssid := \"\" // only use gitdownloadmanager service for session\nrawUrl := \"https://github.com/cli/cli\"\nbranch := \"\" // if has a multi slash branch name, you can set it\n\n// create new repository obj\ngitRepository := NewGitRepository(tempDir, ssid, rawUrl, branch)\n\n// parse if you can\nsub := \"\" // use only breadcrumb query for find root folder\ndirection := DirectionNone // use only breadcrumb query for which direction to go\nfilename := \"\" // use file user download for only one file\nif err := gitRepository.Parse(sub, direction, filename); err != nil {\n    fmt.Errorf(\"GitRepository.Parse() error = %#v\", err)\n}\n\nfmt.Prinf(\"GitRepository.Parse() = %#v\", gitRepository)\n```\n\nresponse\n\n```go\nGitRepository{\n    TempDir:      \"\",\n    SSID:         \"\",\n    Url:          \"https://github.com/cli/cli\",\n    RawUrl:       \"https://github.com/cli/cli\",\n    CloneUrl:     \"https://github.com/cli/cli.git\",\n    RemoteUrl:    \"git@github.com:cli/cli.git\",\n    QueryUrl:     \"https://github.com/cli/cli\",\n    DirPath:      \"repository/cli/cli/gitd-branch\",\n    IsFile:       false,\n    Protocol:     \"https\",\n    Scheme:       \"https\",\n    Hostname:     \"github.com\",\n    RawPath:      \"/cli/cli\",\n    Path:         \"\",\n    Owner:        \"cli\",\n    Name:         \"cli\",\n    DummyBranch:  \"gitd-branch\",\n    Branch:       \"\",\n    ArchiveUrl:   \"https://github.com/cli/cli/archive/refs/heads/.zip\",\n    FileUrl:      \"https://raw.githubusercontent.com/cli/cli//[PATH]\",\n    DownloadType: 1,\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-download-manager%2Fgit-url-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgit-download-manager%2Fgit-url-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-download-manager%2Fgit-url-parse/lists"}