{"id":14981814,"url":"https://github.com/babel/babel-bot","last_synced_at":"2026-03-17T19:22:40.048Z","repository":{"id":37735112,"uuid":"77836357","full_name":"babel/babel-bot","owner":"babel","description":"🤖 A helpful bot to automate common tasks on Babel Issues/PRs","archived":false,"fork":false,"pushed_at":"2023-10-20T00:39:26.000Z","size":1269,"stargazers_count":77,"open_issues_count":30,"forks_count":17,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-10-19T02:56:38.067Z","etag":null,"topics":["bot","github"],"latest_commit_sha":null,"homepage":"","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/babel.png","metadata":{"funding":{"github":["babel"],"open_collective":"babel"},"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2017-01-02T13:45:23.000Z","updated_at":"2025-10-16T02:55:31.000Z","dependencies_parsed_at":"2023-12-18T01:05:47.044Z","dependency_job_id":"0b8e1c0a-36bc-4f53-a8af-97c73a8b5df7","html_url":"https://github.com/babel/babel-bot","commit_stats":{"total_commits":53,"total_committers":10,"mean_commits":5.3,"dds":0.5849056603773585,"last_synced_commit":"b326a617405cca49697a05b2cff2c4119f337154"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/babel/babel-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Fbabel-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Fbabel-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Fbabel-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Fbabel-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babel","download_url":"https://codeload.github.com/babel/babel-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Fbabel-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30629152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: 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":["bot","github"],"created_at":"2024-09-24T14:04:18.223Z","updated_at":"2026-03-17T19:22:39.980Z","avatar_url":"https://github.com/babel.png","language":"JavaScript","readme":"# babel-bot\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"babel-bot.png\" height=\"300px\"/\u003e\n\u003c/p\u003e\n\nA bot used by the [`Babel`](https://github.com/babel/babel) team to automate common tasks in GitHub repositories. Allows taking action on events triggered from the GitHub webhooks API.\n\nThe bot is build as an [AWS Lambda](https://aws.amazon.com/lambda/) function, using [AWS API Gateway](https://aws.amazon.com/api-gateway/) to map the requests to an endpoint.\n\n## Features\n\n- Create a new comment on newly opened issues (if not in the org)\n- Reply to issue with canned response when `Needs Info` label is added\n- Notify committer in PR of test failures in TravisCI, and add OS/node.js version that failed, with direct link to log\n- Add `Has PR` label to issues that have been referenced in a PR\n- Add command to move issues to other repo (`@babel-bot move to babel/babylon`)\n- Deletes issue comments that are just +1/-1\n\n## Future Bot Ideas\n\n- https://github.com/babel/notes/issues/8\n\n## Adding a New Event\n\n1. Look at the list of [GitHub webhook events](https://developer.github.com/webhooks/#events) to determine which your rule should respond to.\n2. Find (or create) a folder under `src/handlers` with the name matching the name of the GitHub `event`\n3. Create a new JS file under the directory, with the name matching the `action` or `state` (dependening on the shape of the GitHub payload) you want your code to be triggered for\n4. Export a default function that accepts 1 argument, which will be the payload from GitHub each time the event is triggered.\n\nExamples of existing event rules can be found in `src/handlers`.\n\n## Setting up AWS Lamdba/API Gateway as a Test Environment\n\nVisit [the guide](AWS_SETUP.md) for detailed instructions.\n\n## Unit-Testing\n\nExamples of how to test a handler can be seen in `src/handlers/issues/__tests__`.\n\n## Deploying a New Version to AWS Lamdba\n\nThis process is currently manual, but will likely be automated in the future.\n\n1. Run `yarn run package`, which will create `function.zip` in the root of the repository\n2. Login to the AWS console, and find the function in the Lambda dashboard, under `Functions`\n3. Click the `Upload` button under the `Code` tab (`Code Entry Type` should be set to `Upload a .ZIP file`)\n4. Click `Save`\n\n---\n\nIf you have a `~/.aws/configuration` setup, you can just run `npm run deploy`.\n","funding_links":["https://github.com/sponsors/babel","https://opencollective.com/babel"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel%2Fbabel-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabel%2Fbabel-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel%2Fbabel-bot/lists"}