Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitCode Pull Request Code Review Bot

This project builds on Agent to review code in Github PRs. It has been adapted to work with the GitCode platform, adding the following features:

  1. Webhook Integration: The GitCode platform sends webhook data when a new Pull Request is created in a watched repository.
  2. Automated Review: The review generated by the LLM (Large Language Model) is posted directly as a comment on the Pull Request.

How It Works

To get this project up and running, follow these steps:

1. Deploy the Project on Flows.network

  • Deploy the project on Flows.network.
  • After deployment, you will receive a Webhook URL.

Webhook Endpoint

Please note that the code to run is located in the gitcode_pr_review folder, put it in the Directory field in the table Use Submodule for Deployment

2. Set Up Credentials

  • Configure the necessary credentials for the project.

Credentials

3. Configure Webhook in Your Repository

  • In your repository settings on GitCode, set up a webhook to trigger on Pull Request events.
  • Use the Webhook URL you obtained from Flows.network.

Repository Settings

4. Automated Review Posting

  • Once the Flows function reviews the Pull Request, the bot will automatically post the review as a comment on the Pull Request, similar to the example below:

Review Example


Additional Notes

  • Ensure that the webhook is correctly configured to listen for Pull Request events.
  • The bot will only post reviews for new Pull Requests after the webhook is set up.

By following these steps, you can automate the code review process for your GitCode repositories using the power of Flows.network and LLM-based reviews.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages