{"id":27881854,"url":"https://github.com/src-d/ghsync","last_synced_at":"2025-07-10T08:41:14.117Z","repository":{"id":57493763,"uuid":"187070218","full_name":"src-d/ghsync","owner":"src-d","description":"GitHub API v3 \u003e PostgreSQL","archived":false,"fork":false,"pushed_at":"2019-09-25T12:01:58.000Z","size":205,"stargazers_count":10,"open_issues_count":25,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-05T05:05:49.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sourced.tech","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/src-d.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-16T17:10:57.000Z","updated_at":"2025-02-18T01:59:13.000Z","dependencies_parsed_at":"2022-08-30T04:01:16.854Z","dependency_job_id":null,"html_url":"https://github.com/src-d/ghsync","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/src-d/ghsync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fghsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fghsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fghsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fghsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/src-d","download_url":"https://codeload.github.com/src-d/ghsync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fghsync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264551952,"owners_count":23626608,"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","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-05-05T05:05:46.974Z","updated_at":"2025-07-10T08:41:14.073Z","avatar_url":"https://github.com/src-d.png","language":"Go","readme":"# ghsync\n\n## Build\n\nThis project does not support building as a go module. It needs to be compiled in `$GOPATH/src/github.com/src-d/ghsync`.\n\nTo build use:\n\n```shell\nmake build\n```\n\nTo update the vendor dependencies, run \n\n```shell\nGO111MODULE=on go mod tidy\nGO111MODULE=on go mod vendor\n```\n\n## Kallax Models\n\nIn order to update the kallax models, place this project in `$GOPATH/src/github.com/src-d/ghsync`.\n\nThen follow these steps:\n\n```shell\n# Make sure you are not using modules\nunset GO111MODULE\n\n# Get kallax, replace it with mcuadros fork, branch ghsync\ngo get -u gopkg.in/src-d/go-kallax.v1/...\ncd $GOPATH/src/gopkg.in/src-d/go-kallax.v1\ngit remote add mcuadros git@github.com:mcuadros/go-kallax.git\ngit fetch --all\ngit checkout -b ghsync mcuadros/ghsync\n\n# Build kallax\nrm $GOPATH/bin/kallax\ngo get -u github.com/golang-migrate/migrate\ncd generator/cli/kallax\ngo install\n\n# Make sure the $GOPATH/bin is in your path, if not run\nexport PATH=$GOPATH/bin:$PATH\n\n# Back to ghsync, create the dependencies vendor folder\ncd $GOPATH/src/github.com/src-d/ghsync\nGO111MODULE=on go mod vendor\n\n# Run kallax generation\ngo generate ./...\n\n# Create the migration files\nkallax migrate --input models --out models/sql --name some_name\n\n# Update bindata\nmake bindata\n```\n\n\n## Contribute\n\n[Contributions](https://github.com/src-d/ghsync/issues) are more than welcome, if you are interested please take a look to\nour [source{d} Contributing Guidelines](https://github.com/src-d/guide/blob/master/engineering/documents/CONTRIBUTING.md).\n\n\n## Code of Conduct\n\nAll activities under source{d} projects are governed by the\n[source{d} code of conduct](https://github.com/src-d/guide/blob/master/.github/CODE_OF_CONDUCT.md).\n\n\n## License\n\nGPL v3.0, see [LICENSE](LICENSE.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrc-d%2Fghsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrc-d%2Fghsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrc-d%2Fghsync/lists"}