{"id":16129153,"url":"https://github.com/riyadhalnur/lambda-twitter-blog-hook","last_synced_at":"2026-05-02T19:31:24.429Z","repository":{"id":65195003,"uuid":"121009247","full_name":"riyadhalnur/lambda-twitter-blog-hook","owner":"riyadhalnur","description":"Automagically post to Twitter timeline about new blog post using Go on AWS Lambda.","archived":false,"fork":false,"pushed_at":"2023-02-25T02:17:42.000Z","size":36,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T13:34:03.112Z","etag":null,"topics":["aws-lambda","git","go","golang","twitter","webhook"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/riyadhalnur.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2018-02-10T11:21:53.000Z","updated_at":"2021-06-27T22:08:58.000Z","dependencies_parsed_at":"2024-06-21T11:40:43.579Z","dependency_job_id":"3d4343dd-b336-4032-b5d1-d8c8a277fbb0","html_url":"https://github.com/riyadhalnur/lambda-twitter-blog-hook","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"944d6ae920762d44808dc2f5253f7c8232725c3d"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/riyadhalnur/lambda-twitter-blog-hook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyadhalnur%2Flambda-twitter-blog-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyadhalnur%2Flambda-twitter-blog-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyadhalnur%2Flambda-twitter-blog-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyadhalnur%2Flambda-twitter-blog-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riyadhalnur","download_url":"https://codeload.github.com/riyadhalnur/lambda-twitter-blog-hook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyadhalnur%2Flambda-twitter-blog-hook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32547644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"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":["aws-lambda","git","go","golang","twitter","webhook"],"created_at":"2024-10-09T22:09:12.404Z","updated_at":"2026-05-02T19:31:24.400Z","avatar_url":"https://github.com/riyadhalnur.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lambda Twitter Blog Poster  \n=================  \n\u003e Automagically post to Twitter timeline about new blog post using Go on AWS Lambda.  \n\n**TL;DR** Events are generated using webhooks - Gitlab in this case because that's where I store my site. On specific commit events (the commits contain a [NEW POST] block), a Twitter status is pushed to my timeline.  \n\n### Developing  \n\n#### Requirements  \n- [Serverless](https://serverless.com/)  \n- [Go](https://golang.org/)  \n\n#### Getting started  \n1. Create a `env.yml` file in the root of the project.  \n2. Declare the following variables and values in the file -  \n```yaml\nsecrets:\n  HOOK_SECRET: *\u003cgitlab-token-header-secret\u003e*\n  API_KEY: *\u003ctwitter-consumer-api-key\u003e*\n  API_SECRET: *\u003ctwitter-consumer-secret-key\u003e*\n  ACCESS_TOKEN: *\u003ctwitter-app-access-token\u003e*\n  ACCESS_SECRET: *\u003ctwitter-app-access-secret\u003e*\n  BASE_URL: *\u003curl-of-blog\u003e*\n```  \n\n### Deploy  \n1. To deploy, use `sls deploy -v` **OR** `make deploy`.  \n2. Once deployed, copy the API Gateway URL printed on the console.  \n\n### Create a webhook  \n*Only GitLab is supported at the moment*  \n\n1. Navigate to the repo for which a webhook will be triggered.\n2. From the panel on the left, go to `Settings \u003e Integrations` to create a new webhook.\n3. Paste the URL from the last section into the `URL` field and the secret from the `serverless.env.yml` file in to the `Secret Token` field.\n4. Check `Push Events` under `Trigger`.\n5. Click on `Add webhook` to save.  \n\n### Triggering the function  \n1. To trigger a new post to Twitter on new post publishes, commit your new posts in the form -  \n```\n[NEW POST]\nThe title of the post\npermalink-of-the-post\n```  \n2. Profit!  \n\n### Contributing  \nRead the [CONTRIBUTING](CONTRIBUTING.md) guide for information.  \n\n### License  \nLicensed under MIT. See [LICENSE](LICENSE) for more information.  \n\n### Issues  \nReport a bug in [issues](https://github.com/riyadhalnur/lambda-twitter-blog-hook/issues).   \n\nMade with love in Kuala Lumpur, Malaysia by [Riyadh Al Nur](https://verticalaxisbd.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friyadhalnur%2Flambda-twitter-blog-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friyadhalnur%2Flambda-twitter-blog-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friyadhalnur%2Flambda-twitter-blog-hook/lists"}