{"id":17573819,"url":"https://github.com/zxdong262/github-upgrade-server","last_synced_at":"2026-01-21T10:02:18.262Z","repository":{"id":42016259,"uuid":"199364592","full_name":"zxdong262/github-upgrade-server","owner":"zxdong262","description":"Server provide upgrade info for github release","archived":false,"fork":false,"pushed_at":"2023-02-25T00:50:34.000Z","size":2527,"stargazers_count":3,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T22:46:28.970Z","etag":null,"topics":["server","upgrade"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zxdong262.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":"2019-07-29T02:34:21.000Z","updated_at":"2023-03-08T03:59:02.000Z","dependencies_parsed_at":"2024-10-28T03:19:32.022Z","dependency_job_id":null,"html_url":"https://github.com/zxdong262/github-upgrade-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zxdong262/github-upgrade-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxdong262%2Fgithub-upgrade-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxdong262%2Fgithub-upgrade-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxdong262%2Fgithub-upgrade-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxdong262%2Fgithub-upgrade-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zxdong262","download_url":"https://codeload.github.com/zxdong262/github-upgrade-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxdong262%2Fgithub-upgrade-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28631936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["server","upgrade"],"created_at":"2024-10-21T21:04:55.602Z","updated_at":"2026-01-21T10:02:18.245Z","avatar_url":"https://github.com/zxdong262.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github upgrade server\n\n[![Build Status](https://travis-ci.org/zxdong262/github-upgrade-server.svg?branch=release)](https://travis-ci.org/zxdong262/github-upgrade-server)\n\nGithub upgrade server will receive github new release webhook request, and update version, log and assets list in database, and provide version upgrade info query.\n\nIt is designed to work with AWS lambda, Dynamodb or SQL db.\n\n## Run in local\n\n```bash\n# get the code\ngit clone git@github.com:zxdong262/github-upgrade-server.git\n\n# install dependencies\ncd github-upgrade-server\nnpm i\n\n# create configs\ncp env-sample.env .env\n\n# then edit .env, fill all required at least\n\n## run local server\nnpm start\n\n## test\nnpm run test\n\n## start local dynamodb server\nnpm run dynamo\n```\n\n## Use\n\n```js\nlet data = GITGUB_RELEASE_WEBHOOK_PAYLOAD\n// update version info\nlet url1 = `${serverUrl}/update-upgrade-info-${UPGRADE_SERVER_API_PREFIX}`\nlet res1 = await axios.post(url1, data, {\n  headers: {\n    'X-Hub-Signature': enc(data)\n  }\n}).then(r =\u003e r.data)\nconsole.log('res1', res1)\nexpect(res1.toString()).toEqual('ok')\n\n// get version info\nlet url3 = `${serverUrl}/upgrade-info?name=${data.repository.name}`\nlet res2 = await axios.get(url3).then(r =\u003e r.data)\nconsole.log('res2', res2)\nexpect(res2.id).toEqual(data.repository.name)\nexpect(res2.version).toEqual(data.release.tag_name)\n```\n\n- So you can set webhook in github repo setting, set secret same as `UPGRADE_SECRET` in `.env`, when new release published, the server will update version info.\n- Then you can get version info from server to check if should upgrade.\n\n## Deploy to AWS Lambda\n\n```bash\n# create configs\ncp deploy/env.sample.yml deploy/env.yml\ncp deploy/serverless.sample.yml deploy/serverless.yml\n\n# then edit deploy/env.yml and deploy/serverless.yml\n\n# build and deploy to AWS Lambda with serverless, make sure you run it in linux\nnpm run build\nnpm run deploy\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxdong262%2Fgithub-upgrade-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzxdong262%2Fgithub-upgrade-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxdong262%2Fgithub-upgrade-server/lists"}