-
Notifications
You must be signed in to change notification settings - Fork 18
[Feat] add staging argument #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement
Description
Add
--staging-review
CLI optionIntroduce
create_staging
API endpointRefactor PR creation into
process_review
Route to staging or GitHub PR based on args
Changes diagram
Changes walkthrough 📝
cfapi.py
Add create_staging API function
codeflash/api/cfapi.py
get_current_branch
,git_root_dir
,FileDiffContent
,PrComment
create_staging
function for staging PRsdiffContents
andprCommentFields
JSONfunction_optimizer.py
Refactor PR logic and add staging path
codeflash/optimization/function_optimizer.py
create_staging
in CF API importsprocess_review
methodprocess_review
routes tocreate_staging
orcheck_create_pr
cli.py
Add staging-review CLI flag
codeflash/cli_cmds/cli.py
--staging-review
CLI argument