{"id":13850043,"url":"https://github.com/stealthybox/container-builder-github-ci-status","last_synced_at":"2025-07-25T15:07:20.739Z","repository":{"id":103562771,"uuid":"111433799","full_name":"stealthybox/container-builder-github-ci-status","owner":"stealthybox","description":"Google Cloud Function responds to PubSub events on the cloud-builds topic to update GitHub CI status.","archived":false,"fork":false,"pushed_at":"2019-01-14T18:36:23.000Z","size":11,"stargazers_count":24,"open_issues_count":2,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-23T10:46:50.779Z","etag":null,"topics":["ci-status","cloud-build","cloud-functions","container-builder","github-bot","google-container-registry"],"latest_commit_sha":null,"homepage":"","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/stealthybox.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}},"created_at":"2017-11-20T16:15:54.000Z","updated_at":"2024-11-29T15:21:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4c46f82-da37-442f-b4a3-c73f6ad5b1e6","html_url":"https://github.com/stealthybox/container-builder-github-ci-status","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stealthybox/container-builder-github-ci-status","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealthybox%2Fcontainer-builder-github-ci-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealthybox%2Fcontainer-builder-github-ci-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealthybox%2Fcontainer-builder-github-ci-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealthybox%2Fcontainer-builder-github-ci-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stealthybox","download_url":"https://codeload.github.com/stealthybox/container-builder-github-ci-status/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealthybox%2Fcontainer-builder-github-ci-status/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267023050,"owners_count":24022911,"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-25T02:00:09.625Z","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":["ci-status","cloud-build","cloud-functions","container-builder","github-bot","google-container-registry"],"created_at":"2024-08-04T20:00:57.312Z","updated_at":"2025-07-25T15:07:20.713Z","avatar_url":"https://github.com/stealthybox.png","language":"JavaScript","funding_links":[],"categories":["Cloud Functions"],"sub_categories":[],"readme":"# Container Builder GitHub CI connector for Google Cloud Functions\nCloud Function to use the PubSub events on the `cloud-builds` topic to update GitHub CI status.\n\nThis function is designed to work with GitHub repositories mirrored under Google Cloud Source Control named `github-${config.repoOwner}-${ghRepoName}`.\nIf you set this through the Container Builder build trigger UI, this will be named automatically.\n\n## Deploy\n[Generate a new token](https://github.com/settings/tokens) with the `repo:status` OAuth scope.\n\nSet the following on `config` in [index.js](./index.js):\n- `ciUser`\n- `ciAccessToken`\n- `repoOwner`\n\nDeploy the cloud function to gcloud:\n```\ngcloud beta functions deploy setCIStatus --trigger-topic cloud-builds\n```\n\n## Behavior\nCI Status **context** will be one of:\n- `${projectId}/gcb: ${tags.join('/')}`\n- `${projectId}/gcb: ${id.substring(0,8)}`\n\nUse the `tags` field in your build request to name your CI.\nOtherwise, it falls back to the build-GUID.\n\nCI Status **description** will either be:\n- nothing\n- a join of all images to be published:  \n  `gcr.io/project/image:v1 gcr.io/project/image:latest`\n- above all, the duration of the build:  \n  `3m 27s`\n- possibly with the last-running build step and error status:  \n  `3m 27s · test failure`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstealthybox%2Fcontainer-builder-github-ci-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstealthybox%2Fcontainer-builder-github-ci-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstealthybox%2Fcontainer-builder-github-ci-status/lists"}