mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
33 lines
1.7 KiB
Text
33 lines
1.7 KiB
Text
---
|
|
title: "Optimize Pull Requests"
|
|
description: "Automatically optimize code changes in pull requests with GitHub Actions integration"
|
|
icon: "code-merge"
|
|
sidebarTitle: "PR Optimization"
|
|
keywords: ["pull requests", "github actions", "code review", "automated optimization", "dependent PR", "suggestions"]
|
|
---
|
|
|
|
<Info>
|
|
**Continuous optimization** - After initial setup, Codeflash will automatically review every new pull request and suggest performance improvements through comments and dependent PRs.
|
|
</Info>
|
|
|
|
## How to optimize a pull request
|
|
After following the setup steps in the [Automate Code Optimization with GitHub Actions](/getting-started/codeflash-github-actions) guide,
|
|
Codeflash will automatically optimize your pull requests when they are opened.
|
|
|
|
If Codeflash finds any successful optimizations, it will comment on the pull request asking you to review the changes.
|
|
|
|

|
|
|
|
Codeflash can ask you to review the changes in two ways:
|
|
### Opening a dependent pull request
|
|
Codeflash will open a new pull request with the optimized code.
|
|
You can review the changes in this pull request, make changes if you want, and merge it if you are satisfied with the optimizations.
|
|
The changes will be merged back into the original pull request as a new commit.
|
|
|
|

|
|
### Reviewing the changes in the original pull request
|
|
If the suggested changes are small and only affect the modified lines, Codeflash will suggest the changes in the original pull request itself.
|
|
You can choose to accept or reject the changes directly in the original pull request.
|
|
The changes can be added to a batch of changes in the original pull request as a new commit.
|
|
|
|

|