Arbtrage / Enigma

A Github App that executes and comments the code present in the Pull Request's diff .
https://github.com/apps/enigma-code-bot
ISC License
3 stars 6 forks source link
compiler github-api github-app judge0 nodejs probot-app pull-requests webhooks

Enigma

Enigma Code Bot

"Supercharge your code review process with our GitHub app. Automate code execution in pull requests, ensuring faster feedback and improved collaboration. Seamlessly integrate with GitHub's API and leverage Judge0 API for effortless code execution. Detect and resolve issues early on with automated testing and instant output comments. Boost productivity and code correctness with advanced features and streamlined workflows. Elevate the quality of your code contributions today."

Demo Link

Getting Started

To get started with this project, follow the steps below:

Prerequisites

Installation

Run the bot

npm start


###  Setup the .env file according to the instructions provided by probot

## Screenshots
- When there is no 'Run' in the PR head
  <img width="780" alt="image" src="https://github.com/Arbtrage/Enigma/assets/100552235/2c9ecf09-4750-4275-a83d-fc0b64af72f4">
- When the PR body is not specified
  <img width="780" alt="image" src="https://github.com/Arbtrage/Enigma/assets/100552235/5961ed16-b084-4bea-977c-d29bcf3e54e6">
- When language is not found
  <img width="780" alt="image" src="https://github.com/Arbtrage/Enigma/assets/100552235/53d74f1e-bb5c-41b4-bc3d-255ee2489d1e">

- On successful execution
  <br>
  <img width="800" align="center" alt="image" src="https://github.com/Arbtrage/Enigma/assets/100552235/f90480b6-bbfd-42d0-ac88-a8e9462695a5">

### Sample PR : https://github.com/Arbtrage/Bot_test/pull/3

## Features

- Automated code execution in pull requests
- Seamless integration with GitHub API
- Utilizes Judge0 API for code execution
- Instant output comments for quick feedback
- Automated testing to detect and resolve issues early on
- Boosts productivity and collaboration in code review process
- Streamlined workflows for efficient code review
- Advanced features for enhanced code correctness
- Elevates the quality of code contributions

## Tech Stack: 
- NodeJS, 
- Probot,
- Github REST API,
- Judge0 API,
- Rapid API.

## Contributing

If you have suggestions for how enigma could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the [Contributing Guide](./docs/CONTRIBUTING.md).

## License

[ISC](LICENSE) © 2023 Sayantan