{"id":29866519,"url":"https://github.com/ficd0/newrepo.fish","last_synced_at":"2025-07-30T12:39:40.294Z","repository":{"id":291186211,"uuid":"976874069","full_name":"ficd0/newrepo.fish","owner":"ficd0","description":"\"Easily create sr.ht and github repos\"","archived":false,"fork":false,"pushed_at":"2025-05-05T22:47:04.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T04:35:22.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/ficd0.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,"zenodo":null}},"created_at":"2025-05-02T23:11:52.000Z","updated_at":"2025-05-03T20:32:44.000Z","dependencies_parsed_at":"2025-05-06T03:00:23.955Z","dependency_job_id":null,"html_url":"https://github.com/ficd0/newrepo.fish","commit_stats":null,"previous_names":["ficcdaf/newrepo.fish","ficd0/newrepo.fish"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ficd0/newrepo.fish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ficd0%2Fnewrepo.fish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ficd0%2Fnewrepo.fish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ficd0%2Fnewrepo.fish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ficd0%2Fnewrepo.fish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ficd0","download_url":"https://codeload.github.com/ficd0/newrepo.fish/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ficd0%2Fnewrepo.fish/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267867867,"owners_count":24157368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-07-30T12:39:39.237Z","updated_at":"2025-07-30T12:39:40.273Z","avatar_url":"https://github.com/ficd0.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# newrepo.fish\n\n\u003e Easily create sr.ht and GitHub repositories configured for mirroring 🐟\n\nThis tool is meant to streamline setting up repository mirroring from sr.ht to\nGitHub. It facilitates creating repositories on both platforms. Setting up a\nbuilds.sr.ht job for automatic mirroring to GitHub will be added soon.\n\n## Usage\n\nPlease ensure that `hut` and `gh` are both installed and authenticated before\nproceeding.\n\n```\nUSAGE\n\tnewrepo [\u003cname\u003e] [flags]\nFLAGS\n\t-p/--private: set private\n\t-P/--public: set public\n\t-s/--srht: set srht provider\n\t-g/--github: set github provider\n\t-a/--all: set all providers\n\t-d/--description [\u003cstring\u003e]: set optional description\n```\n\nFor example, to create a public repo called `my-project` on both platforms:\n\n```sh\nnewrepo --public --all my-project -d 'This is my project!'\n```\n\n## Why?\n\nI prefer developing on sr.ht, but there are some advantages to mirroring your\nrepositories to GitHub. Depending on the ecosystem, if you're publishing a\nplugin, sourcehut may not be supported as an installation source, such as Yazi\nplugins and Fisher plugins (unless you're using\n[my fork](https://git.sr.ht/~ficd/fisher)).\n\nAnother advantage of GitHub is its ubiquity. It can lead to better visibility\nfor your projects — and importantly, if you're looking for a job, it's important\nfor your GitHub stats to reflect how active you really are as a developer.\n\nMirroring your repositories to GitHub can address some of these issues.\nTherefore, I wanted an easy way to initialize a project in a way that's suitable\nfor mirroring.\n\n## Installation\n\nWith Fisher ([my fork](https://git.sr.ht/~ficd/fisher)):\n\n```sh\nfisher install ~ficd/newrepo.fish\n```\n\nWithout my fork:\n\n```sh\nfisher install ficcdaf/newrepo.fish\n```\n\n## Road map\n\n- `git init` if repo isn't initialized.\n- Automatically set up remotes.\n  - `git.sr.ht` is always `origin`.\n- Automatically add mirror notice to GitHub repo description.\n- Option to generate `.build.yml` for mirroring.\n- Option to set up mirroring for a repository that's already on sr.ht.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fficd0%2Fnewrepo.fish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fficd0%2Fnewrepo.fish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fficd0%2Fnewrepo.fish/lists"}