-
Notifications
You must be signed in to change notification settings - Fork 101
feat: add issue URL support to CreatePR step #1110
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
Conversation
Co-Authored-By: Patched <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
Add "(aside)" to your comment to have me ignore it. |
Co-Authored-By: Patched <[email protected]>
Co-Authored-By: Patched <[email protected]>
|
I have read the CLA Document and I hereby sign the CLA |
|
The pull request review identifies several areas of concern related to potential bugs, security vulnerabilities, and adherence to coding standards. It points out a potential bug where the handling of
Overall, the PR accurately reflects a new input capability to link GitHub issues and maintains alignment with current documentation practices.
|
| final_body = body | ||
| if issue_url is not None: | ||
| issue_info = scm_client.get_slug_and_id_from_url(issue_url) | ||
| if issue_info is not None: | ||
| _, issue_number = issue_info | ||
| final_body = f"{body}\n\nResolves #{issue_number}" | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only applicable for github repos. Perhaps check the scm_client's type first before performing this.
Add issue URL support to CreatePR step to enable linking PRs to GitHub issues.
Changes:
This change enables automatic issue linking when creating pull requests through either the PR or PRPB step (they use the same underlying implementation).
Link to Devin run: https://app.devin.ai/sessions/3fa48606a6fa43548d0a59f6c8706610