{"id":15140124,"url":"https://github.com/ritesh22201/github-app","last_synced_at":"2026-01-19T07:33:01.204Z","repository":{"id":208956419,"uuid":"712778468","full_name":"ritesh22201/github-app","owner":"ritesh22201","description":"This Github app allow users to execute the code when they make a pull requests with the command '/execute' in commit message or comment.","archived":false,"fork":false,"pushed_at":"2023-11-02T05:06:04.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T16:21:42.530Z","etag":null,"topics":["dotenv","google-generative-ai","nodejs","probot"],"latest_commit_sha":null,"homepage":"https://github-code-execution.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ritesh22201.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-11-01T07:08:13.000Z","updated_at":"2023-11-24T06:18:55.000Z","dependencies_parsed_at":"2023-11-24T08:27:25.678Z","dependency_job_id":"3f850746-ddfa-4611-b866-d27c70f5b39f","html_url":"https://github.com/ritesh22201/github-app","commit_stats":null,"previous_names":["ritesh22201/github-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ritesh22201%2Fgithub-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ritesh22201%2Fgithub-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ritesh22201%2Fgithub-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ritesh22201%2Fgithub-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ritesh22201","download_url":"https://codeload.github.com/ritesh22201/github-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471297,"owners_count":20944153,"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":["dotenv","google-generative-ai","nodejs","probot"],"created_at":"2024-09-26T08:01:29.084Z","updated_at":"2026-01-19T07:33:01.167Z","avatar_url":"https://github.com/ritesh22201.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Code Execution App\n\n**Description**: A GitHub App that executes code in pull requests.\n\n## Table of Contents\n\n- [Files and Folders to explore](#files-and-folders-to-explore)\n- [Project Presentation Video](#project-presentation-video)\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Usage](#usage)\n- [Code Execution API Integration](#code-execution-api-integration)\n- [Known Issues](#known-issues)\n- [Troubleshooting](#troubleshooting)\n- [Author and Contact Information](#author-and-contact-information)\n- [Acknowledgments](#acknowledgments)\n\n\n## Files and Folders to explore\n\n```\nroot\n├── index.js - Default route installed with Probot library.\n├── main.js - My main route.\n└── code - My folder\n    ├── generateExecutedCode.js\n    └── getPullRequestCode.js\n```\n\nPlease checkout __main.js__ file, and __code__ folder where I have written all the code.\n\n## Project Presentation Video\n\n[Video Presentation Link](https://drive.google.com/file/d/1gnjvUwR_-G3UZqAb7s1a9B25BmgNmSid/view?usp=sharing)\n\n## Installation\n\nInstallation instructions here.\n\n1. Clone this repository to your local machine:\n\n   ```bash\n   git clone https://github.com/ritesh22201/github-app.git\n   ```\n\n2. Navigate to the project directory:\n   \n   ```bash\n   cd github-code-execution-app\n   ```\n\n3. Install the project dependencies:\n   \n   ```bash\n   npm install\n   ```\n\n## Configuration\n\nCreate a .env file in the project root directory with the following content:\n\n- **APP_ID**=YOUR_GITHUB_APP_ID\n- **PRIVATE_KEY**=YOUR_GITHUB_APP_PRIVATE_KEY\n- **WEBHOOK_SECRET**=YOUR_GITHUB_APP_WEBHOOK_SECRET\n- **GOOGLE_API_KEY**=YOUR_GOOGLE_API_KEY\n\n\n## Usage\n\nEnsure your GitHub App is installed in your GitHub repository.\n\nCreate a pull request with the command __/execute__ in the pull request body, comments, or commit messages.\n\nThe app will automatically detect the command and execute the code within the pull request.\n\nThe code execution output will be posted as a comment in the pull request.\n\n\n## Code Execution API Integration\n\nThe GitHub Code Execution App integrates with the following external packages:\n\n- **Probot**: Used for handling GitHub events and interactions.\n- **@google-ai/generativelanguage**: Provides AI-powered code execution capabilities.\n- **google-auth-library**: Enables authentication with the Google API.\n- **dotenv**: Helps manage environment variables.\n\n## Known Issues\n\nThe application is working partially.\n\n## Troubleshooting\n\nIf you encounter any issues or have questions, please feel free to reach out to me for assistance. You can find contact information in the \"Author and Contact Information\" section below.\n\n## Author and Contact Information\n\n- **Author**: Ritesh Goswami\n- **Email**: riteshgoswami22201@gmail.com\n- **GitHub**: [ritesh22201](https://github.com/ritesh22201)\n\n## Acknowledgments\n\nSpecial thanks to the Probot, Google for providing the open-source resources to the community.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fritesh22201%2Fgithub-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fritesh22201%2Fgithub-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fritesh22201%2Fgithub-app/lists"}