{"id":20065907,"url":"https://github.com/reshiadavan/sleepy","last_synced_at":"2026-05-29T23:01:41.708Z","repository":{"id":204579888,"uuid":"712186755","full_name":"ReshiAdavan/Sleepy","owner":"ReshiAdavan","description":"gpt-based github actions tool for intelligent feedback on pull requests","archived":false,"fork":false,"pushed_at":"2023-11-29T04:46:20.000Z","size":736,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-30T11:56:01.766Z","etag":null,"topics":["automation","cicd","code-review","gpt","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ReshiAdavan.png","metadata":{"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-31T01:02:11.000Z","updated_at":"2025-02-04T21:07:47.000Z","dependencies_parsed_at":"2026-03-10T14:01:29.904Z","dependency_job_id":null,"html_url":"https://github.com/ReshiAdavan/Sleepy","commit_stats":null,"previous_names":["reshiadavan/sleepy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ReshiAdavan/Sleepy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReshiAdavan%2FSleepy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReshiAdavan%2FSleepy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReshiAdavan%2FSleepy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReshiAdavan%2FSleepy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReshiAdavan","download_url":"https://codeload.github.com/ReshiAdavan/Sleepy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReshiAdavan%2FSleepy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33673628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":["automation","cicd","code-review","gpt","typescript"],"created_at":"2024-11-13T13:53:16.574Z","updated_at":"2026-05-29T23:01:38.726Z","avatar_url":"https://github.com/ReshiAdavan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sleepy\n\nSleepy is a GitHub Action tool that leverages OpenAI's GPT-4 API to provide intelligent feedback and suggestions on\nyour pull requests. It helps improve code quality and saves developers time by automating PR\nreview processes.\n\n## Inspiration\n\nReviews are one of the biggest reasons why code fails or takes too long to reach production. I notice a lot of tech leads and senior engineers who spend a lot of time reviewing PRs because they have to, and it takes too much time away from other important endeavours. As of the recent breakthrough of AI, I believe it would be more efficient to leverage AI in code reviews, especially if it has been trained over billions of lines of code and if it can generate great reviews in seconds.  \n\n## How It Works\n\nSleepy retrieves pull request diffs, filters out excluded files, and sends code chunks to\nthe OpenAI API. It then generates review comments based on the AI's response and adds them to the pull request.\n\n## Use It Yourself\n\n1. Sign up for an API key at [OpenAI](https://beta.openai.com/signup) if you don't have one.\n\n2. Add the OpenAI API key as a GitHub Secret in your repository with name `OPENAI_API_KEY`. \nMore info on GitHub Secrets [here](https://docs.github.com/en/actions/reference/encrypted-secrets).\n\n3. Create a `.github/workflows/main.yml` file in the repository you want this tool to function in with the following content:\n\n```yaml\nname: Sleepy the Code Reviewer\non:\n  pull_request:\n    types:\n      - opened\n      - synchronize\npermissions: write-all\njobs:\n  review:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Repo\n        uses: actions/checkout@v3\n\n      - name: Sleepy the Code Reviewer\n        uses: ReshiAdavan/Sleepy@master\n        with:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}\n          OPENAI_API_MODEL: \"gpt-4\" # Optional: defaults to \"gpt-4\"\n          exclude: \"**/*.json, **/*.md\" # Optional: exclude patterns separated by commas\n```\n\n## Examples\n\nTo see live examples of the code review tool in action, refer to the  [Compilation of Examples](https://github.com/ReshiAdavan/Sleepy/blob/master/src/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freshiadavan%2Fsleepy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freshiadavan%2Fsleepy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freshiadavan%2Fsleepy/lists"}