{"id":16260053,"url":"https://github.com/cludden/tf-github-webhooks","last_synced_at":"2025-04-08T13:49:30.602Z","repository":{"id":72389660,"uuid":"106607909","full_name":"cludden/tf-github-webhooks","owner":"cludden","description":"a terraform module that deploys webhook endpoint that publishes github events to sns","archived":false,"fork":false,"pushed_at":"2018-08-27T22:36:10.000Z","size":196,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T10:17:59.573Z","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":null,"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":null,"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-10-11T20:49:36.000Z","updated_at":"2018-08-27T22:36:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"2591c019-32bb-49a2-bd08-e345cefbe5a6","html_url":"https://github.com/cludden/tf-github-webhooks","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"738c9a7de6c741f206094e5e0f903c6b6c861889"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Ftf-github-webhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Ftf-github-webhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Ftf-github-webhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Ftf-github-webhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cludden","download_url":"https://codeload.github.com/cludden/tf-github-webhooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247854681,"owners_count":21007394,"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:09.790Z","updated_at":"2025-04-08T13:49:30.568Z","avatar_url":"https://github.com/cludden.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tf-github-webhooks\na `node.js` lambda function that publishes authorized github events to SNS\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 this repository\n$ git clone git@github.com/cludden/tf-github-webhooks.git\n\n# if developing locally\n$ cd tf-github-webhooks \u0026\u0026 nvm use \u0026\u0026 npm install\n```\n\n## Contributing\n1. Clone it (`git clone git@github.com:cludden/tf-github-webhooks.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 -am 'feat: adds my new 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\nThis project uses:\n- [docker](https://www.docker.com/) for consistent testing and build environments.\n\n**Prerequisities**:\n- [Docker CE \u0026 Compose](https://store.docker.com/search?offering=community\u0026type=edition)\n\n**Testing:**\n```shell\n# run all tests\n$ docker-compose run tf-github-webhooks\n```\n\n**Linting:**\n```shell\n# run lint\n$ docker-compose run tf-github-webhooks npm run lint\n```\n\n**Security:**\n```shell\n# run security check\n$ docker-compose run tf-github-webhooks npm run sec\n```\n\n## Building\nTo build locally:\n```shell\n$ docker-compose run tf-github-webhooks npm run build\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-github-webhooks`\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## Deploying and Configuring\n1. Build the artifact and push to `s3`\n1. Use the terraform module\n```\nmodule \"github_webhooks\" {\n    source                = \"git::git@github.com:cludden/tf-github-webhooks.git//terraform?ref={version}\"\n    config_parameter_name = \"/secrets/tf-github-webhooks\"\n    debug                 = \"\"\n    log_level             = \"info\"\n    memory_size           = 128\n    name                  = \"github-webhooks\"\n    node_env              = \"production\"\n    region                = \"us-west-2\"\n    s3_bucket             = \"my-artifact-bucket\"\n    s3_key                = \"path/to/my/artifact.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-github-webhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcludden%2Ftf-github-webhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcludden%2Ftf-github-webhooks/lists"}