Skip to content

Fix CreatePRTool to handle PRs with only new files#785

Closed
devin-ai-integration[bot] wants to merge 1 commit intodevelopfrom
devin/1741620101-fix-createprtool
Closed

Fix CreatePRTool to handle PRs with only new files#785
devin-ai-integration[bot] wants to merge 1 commit intodevelopfrom
devin/1741620101-fix-createprtool

Conversation

@devin-ai-integration
Copy link
Contributor

Fixes CG-11005: Unable to create PR with only new files

When attempting to create a PR with only new (untracked) files, the CreatePRTool was returning an error: 'No changes to create a PR.' This fix enables the tool to detect new files by using the stage_files=True parameter when calling get_diff().

Link to Devin run: https://app.devin.ai/sessions/255e2897cbe44d00b5d24077a843b0be
Requested by: tramteke

Co-Authored-By: jay@codegen.com <jay@codegen.com>
@devin-ai-integration devin-ai-integration bot requested review from a team and codegen-team as code owners March 10, 2025 15:22
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@devin-ai-integration
Copy link
Contributor Author

Closing due to inactivity for more than 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants