Skip to content

About

PCR Automation with OpenAI Code Review & Refactoring and Automated Unit Testing

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

55 Commits

Folders and files

Repository files navigation

PCR Automation with OpenAI Code Review & Refactoring

Build Status

Description

Code reviews are a crucial part of the development process. However, the manual process of reviewing code changes and generating changelogs can be time-consuming and error-prone. Our project aims to solve these challenges by automating the process of generating PCR with changelogs and performing code reviews.

Our solution leverages AI tools and automation to streamline the process of PCR generation with changelogs. We will use Bitbucket pipelines to run the code, fetch the task number from the commit or PR title, and create a Confluence page for the PCR. The Confluence page will include the task title, status, minor description, label, and assignee name.

To generate the changelog, we will use the ChatGPT API, an open AI tool that can generate human-like text. The API will analyze the commit messages and generate a summary of the changes, which we will add to the Confluence page.

For code analysis, we will use PHPStan, a static analysis tool for PHP. This tool will generate a report on the code quality. Additionally, we will use OpenAI to perform code reviews and provide suggestions for code improvements based on our coding standards.

Installation

  1. Fork and Clone the repository
  2. Install dependencies: composer install

Usage

To use our PCR automation tool, follow these steps:

  1. Make sure you have a Bitbucket account with the appropriate permissions.
  2. Set up your project in Bitbucket and enable pipelines.
  3. Add the necessary scripts to your project's package.json file.
  4. Create a confluence.config.js file with your Confluence credentials.
  5. Commit your code changes and push them to Bitbucket.
  6. Bitbucket pipelines will automatically run the code, fetch the task number from the commit or PR title, and create a Confluence page for the PCR.
  7. The ChatGPT API will analyze the commit messages and generate a summary of the changes, which will be added to the Confluence page.
  8. PHPStan will generate a report on the code quality, and OpenAI will perform code reviews and provide suggestions for code improvements.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

PCR Automation with OpenAI Code Review & Refactoring and Automated Unit Testing

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages