{"id":16260064,"url":"https://github.com/cludden/tf-codebuild-github-status","last_synced_at":"2025-04-08T13:49:25.426Z","repository":{"id":72389652,"uuid":"110180917","full_name":"cludden/tf-codebuild-github-status","owner":"cludden","description":"a node.js lambda function that updates github commit statuses based on codebuild events","archived":false,"fork":false,"pushed_at":"2023-08-02T16:43:49.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T10:18:01.738Z","etag":null,"topics":[],"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/cludden.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-11-10T00:14:31.000Z","updated_at":"2018-08-27T20:22:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e660aff-cb4c-47d3-96c4-279a9d9687c5","html_url":"https://github.com/cludden/tf-codebuild-github-status","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"9b8122be8cfb4c79234b2582b01efb53c3dff3bd"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Ftf-codebuild-github-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Ftf-codebuild-github-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Ftf-codebuild-github-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Ftf-codebuild-github-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cludden","download_url":"https://codeload.github.com/cludden/tf-codebuild-github-status/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247854601,"owners_count":21007367,"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":"2024-10-10T16:06:15.019Z","updated_at":"2025-04-08T13:49:25.402Z","avatar_url":"https://github.com/cludden.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tf-codebuild-github-status\na `node.js` lambda function that updates `github` PR statuses based on `codebuild` events\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./architecture.png\" align=\"center\" alt=\"architecture diagram\" /\u003e\n\u003c/p\u003e\n\n## Installing\n```shell\n# clone the repo and install dependencies\n$ git clone git@github.com:cludden/tf-codebuild-github-status.git\n```\n\n## Contributing\n1. Clone it (`git clone git@github.com:cludden/tf-codebuild-github-status.git`)\n1. Create your feature branch (`git checkout -b my-new-feature`)\n1. Commit your changes using [conventional changelog standards](https://github.com/bcoe/conventional-changelog-standard/blob/master/convention.md) (`git commit -m 'feat(my-new-feature): Add some feature'`)\n1. Push to the branch (`git push origin my-new-feature`)\n1. Ensure linting/security/tests are all passing\n1. Create new Pull Request\n\n## Testing\nPrerequisites:\n- [Docker \u0026 Compose](https://store.docker.com/search?offering=community\u0026type=edition))\n\n```shell\n# run test suite and generate code coverage\n$ docker-compose run tf-codebuild-github-status\n\n# run linter\n$ docker-compose run tf-codebuild-github-status npm run lint\n\n# run security scan\n$ docker-compose run tf-codebuild-github-status npm run sec\n```\n\n## Building\n```\n$ docker-compose run tf-codebuild-github-status\n```\n\n## Releasing\n1. Merge fixes \u0026 features to master\n1. Run lint check `npm run lint`\n1. Run security check `npm run sec`\n1. Run full test suite `docker-compose run tf-codebuild-github-status`\n1. Run release script `npm run release`\n1. Push release \u0026 release tag to github `git push --follow-tags`\n1. [Publish new release](https://help.github.com/articles/creating-releases/) in github, using the release notes from the [CHANGELOG](./CHANGELOG)\n\n## Configuring\nDefine custom configuration\n```json\n{\n  \"github\": {\n    \"url\": \"https://api.github.com\",\n    \"owner\": \"my-org\",\n    \"token\": \"xxxxxxxx\"\n  },\n  \"log\": {\n    \"level\": \"info\"\n  }\n}\n```\n\nAdd JSON configuration to ssm\n```shell\n$ aws ssm put-parameter --name /secrets/codebuild-trigger/custom --type SecureString --value $JSONCONFIG\n```\n\n## Deploying\nVia terraform\n```\nmodule \"codebuild_trigger\" {\n  source                     = \"git::git@github.com:cludden/tf-codebuild-github-status.git//terraform?ref={version}\"\n  config_parameter_name      = \"/secrets/codebuild-trigger\"\n  debug                      = \"\"\n  memory_size                = 128\n  name                       = \"codebuild-github-status\"\n  node_env                   = \"production\"\n  region                     = \"us-west-2\"\n  s3_bucket                  = \"my-artifact-bucket\"\n  s3_key                     = \"tf-codebuild-github-status/${var.version}/index.zip\"\n  timeout                    = 10\n}\n```\n\n## License\nLicensed under the [MIT License](LICENSE.md)\n\nCopyright (c) 2017 Chris Ludden\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcludden%2Ftf-codebuild-github-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcludden%2Ftf-codebuild-github-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcludden%2Ftf-codebuild-github-status/lists"}