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
Sweep: Augment on_ticket so that when a user adds a slack link, we automatically unroll the thread and extract the information #3656
Comments
✨ Track Sweep's progress on our progress dashboard!💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID:
a591e8c142 )Tip I can email you when I complete this pull request if you set up your email here! Actions (click)
I am currently looking into this ticket! I will update the progress of the ticket in this comment. I am currently searching through your code, looking for relevant snippets. Step 1: 🔎 SearchingI'm searching for relevant snippets in your repository. If this is your first time using Sweep, I'm indexing your repository. You can monitor the progress using the progress dashboard 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. |
Actions (click)
❌ Unable to Complete PRThe issue was rejected with the following response: Thank you for submitting this issue. To make it more suitable for Sweep to handle, please provide more details on the following: For bonus GPT-4 tickets, please report this bug on Discord (tracking ID: 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. This is an automated message generated by Sweep AI. |
🚀 Here's the PR! #3657See Sweep's progress at the progress dashboard! 💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID:
406bb96ad2 )Tip I can email you next time I complete a pull request if you set up your email here! Actions (click)
Step 1: 🔎 SearchingI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description.sweep/sweepai/config/server.py Lines 1 to 251 in 963ef37
sweep/sweepai/handlers/on_ticket.py Lines 1 to 1877 in 963ef37
sweep/sweepai/utils/ticket_utils.py Lines 1 to 512 in 963ef37
Step 2: ⌨️ CodingModify sweepai/config/server.py with contents: Add a new environment variable for the user's Slack API key. Modify sweepai/handlers/on_ticket.py with contents: Modify sweepai/handlers/on_ticket.py with contents: Add logic to check for Slack links, authenticate, fetch the thread, and integrate the information into the issue summary. Step 3: 🔁 Code ReviewI have finished reviewing the code for completeness. I did not find errors for 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. This is an automated message generated by Sweep AI. |
Tip I can email you next time I complete a pull request if you set up your email here! Actions (click)
❌ Unable to Complete PRI'm sorry, but it looks like an error has occurred due to a planning failure. The error message is 401 {"message": "Bad credentials", "documentation_url": "https://docs.github.com/rest"}. Feel free to add more details to the issue description so Sweep can better address it. Alternatively, reach out to Kevin or William for help at https://discord.gg/sweep. For bonus GPT-4 tickets, please report this bug on Discord (tracking ID: Please look at the generated plan. If something looks wrong, please add more details to your issue.
🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. |
🚀 Here's the PR! #3664See Sweep's progress at the progress dashboard! 💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID:
b1144b23a8 )Tip I can email you next time I complete a pull request if you set up your email here! Actions (click)
Step 1: 🔎 SearchingI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description.sweep/sweepai/config/server.py Lines 1 to 202 in 2b9073a
sweep/sweepai/handlers/on_ticket.py Lines 1 to 1877 in 2b9073a
Step 2: ⌨️ CodingModify sweepai/config/server.py with contents: Add a new environment variable for the Slack API key. Modify sweepai/handlers/on_ticket.py with contents: Import the necessary modules for handling Slack links and authentication. Modify sweepai/handlers/on_ticket.py with contents: Extract the Slack link from the issue summary and authenticate with the user's Slack account. Step 3: 🔁 Code ReviewI have finished reviewing the code for completeness. I did not find errors for 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. This is an automated message generated by Sweep AI. |
✨ Track Sweep's progress on our progress dashboard!💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID:
a1b68d3b50 )Tip I can email you when I complete this pull request if you set up your email here! Actions (click)
Step 1: 🔎 SearchingI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description.sweep/sweepai/handlers/on_ticket.py Lines 1 to 1877 in 2b9073a
sweep/sweepai/config/server.py Lines 1 to 202 in 2b9073a
sweep/sweepai/utils/issue_validator.py Lines 1 to 61 in 2b9073a
Step 2: ⌨️ Coding
Modify sweepai/config/server.py with contents: Add a new environment variable for the user's Slack API key.
Modify sweepai/handlers/on_ticket.py with contents: Import the necessary modules for making HTTP requests and parsing Slack message threads.
Modify sweepai/handlers/on_ticket.py with contents: In the `on_ticket` function, check if the issue description contains a Slack link. If found, authenticate to Slack and fetch the message thread. Step 3: 🔁 Code ReviewWorking on it... 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. This is an automated message generated by Sweep AI. |
🚀 Here's the PR! #3665See Sweep's progress at the progress dashboard! 💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID:
db9aeea37c )Tip I can email you next time I complete a pull request if you set up your email here! Actions (click)
Step 1: 🔎 SearchingI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description.sweep/sweepai/handlers/on_ticket.py Lines 1 to 1877 in 2b9073a
sweep/sweepai/config/server.py Lines 1 to 202 in 2b9073a
sweep/sweepai/utils/issue_validator.py Lines 1 to 61 in 2b9073a
Step 2: ⌨️ CodingModify sweepai/config/server.py with contents: Add a new environment variable for the user's Slack API key. Modify sweepai/handlers/on_ticket.py with contents: Import the necessary modules for making HTTP requests and parsing Slack message threads. Modify sweepai/handlers/on_ticket.py with contents: In the `on_ticket` function, check if the issue description contains a Slack link. If found, authenticate to Slack and fetch the message thread. Step 3: 🔁 Code ReviewI have finished reviewing the code for completeness. I did not find errors for 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. This is an automated message generated by Sweep AI. |
✨ Track Sweep's progress on our progress dashboard!💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID:
c684dda8f8 )Tip I can email you when I complete this pull request if you set up your email here! Actions (click)
Step 1: 🔎 SearchingI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description.sweep/sweepai/handlers/on_ticket.py Lines 1 to 1877 in 2b9073a
sweep/sweepai/config/server.py Lines 1 to 202 in 2b9073a
sweep/sweepai/utils/issue_validator.py Lines 1 to 61 in 2b9073a
Step 2: ⌨️ Coding
Modify sweepai/config/server.py with contents: Add a new environment variable for the user's Slack API key.
Modify sweepai/handlers/on_ticket.py with contents: Import the necessary modules for making HTTP requests and parsing Slack message threads.
Modify sweepai/handlers/on_ticket.py with contents: In the `on_ticket` function, check if the issue description contains a Slack link. If found, authenticate to Slack and fetch the message thread. Step 3: 🔁 Code ReviewWorking on it... 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. This is an automated message generated by Sweep AI. |
✨ Track Sweep's progress on our progress dashboard!💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID:
a261678dcc )Tip I can email you when I complete this pull request if you set up your email here! Actions (click)
Step 1: 🔎 SearchingI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description.sweep/sweepai/handlers/on_ticket.py Lines 1 to 1877 in 2b9073a
sweep/sweepai/config/server.py Lines 1 to 202 in 2b9073a
sweep/sweepai/utils/issue_validator.py Lines 1 to 61 in 2b9073a
Step 2: ⌨️ Coding
Modify sweepai/config/server.py with contents: Add a new environment variable for the user's Slack API key.
Modify sweepai/handlers/on_ticket.py with contents: Import the necessary modules for making HTTP requests and parsing Slack message threads.
Modify sweepai/handlers/on_ticket.py with contents: In the `on_ticket` function, check if the issue description contains a Slack link. If found, authenticate to Slack and fetch the message thread. Step 3: 🔁 Code ReviewWorking on it... 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. This is an automated message generated by Sweep AI. |
✨ Track Sweep's progress on our progress dashboard!💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID:
5eb258b35b )Tip I can email you when I complete this pull request if you set up your email here! Actions (click)
Step 1: 🔎 SearchingI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description.sweep/sweepai/handlers/on_ticket.py Lines 1 to 1877 in 2b9073a
sweep/sweepai/config/server.py Lines 1 to 202 in 2b9073a
sweep/sweepai/utils/issue_validator.py Lines 1 to 61 in 2b9073a
Step 2: ⌨️ Coding
Modify sweepai/config/server.py with contents: Add a new environment variable for the user's Slack API key.
Modify sweepai/handlers/on_ticket.py with contents: Import the necessary modules for making HTTP requests and parsing Slack message threads.
Modify sweepai/handlers/on_ticket.py with contents: In the `on_ticket` function, check if the issue description contains a Slack link. If found, authenticate to Slack and fetch the message thread. Step 3: 🔁 Code ReviewWorking on it... 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. This is an automated message generated by Sweep AI. |
Tip I can email you next time I complete a pull request if you set up your email here! Actions (click)
❌ Unable to Complete PRI'm sorry, but it looks like an error has occurred due to a planning failure. The error message is 'NoneType' object has no attribute 'sha'. Feel free to add more details to the issue description so Sweep can better address it. Alternatively, reach out to Kevin or William for help at https://discord.gg/sweep. For bonus GPT-4 tickets, please report this bug on Discord (tracking ID: Please look at the generated plan. If something looks wrong, please add more details to your issue.
🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. This is an automated message generated by Sweep AI. |
🚀 Here's the PR! #3668See Sweep's progress at the progress dashboard! 💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID:
d584755c9d )Tip I can email you next time I complete a pull request if you set up your email here! Actions (click)
Step 1: 🔎 SearchingI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description.sweep/sweepai/handlers/on_ticket.py Lines 1 to 1877 in 2b9073a
sweep/sweepai/config/server.py Lines 1 to 202 in 2b9073a
sweep/sweepai/utils/issue_validator.py Lines 1 to 61 in 2b9073a
Step 2: ⌨️ CodingModify sweepai/config/server.py with contents: Add a new environment variable for the user's Slack API key. Modify sweepai/handlers/on_ticket.py with contents: Import the necessary modules for making HTTP requests and parsing Slack message threads. Modify sweepai/handlers/on_ticket.py with contents: In the `on_ticket` function, check if the issue description contains a Slack link. If found, authenticate to Slack and fetch the message thread. Step 3: 🔁 Code ReviewI have finished reviewing the code for completeness. I did not find errors for 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. This is an automated message generated by Sweep AI. |
…tomatically unroll the thread and extract the information (#3668) # Description This pull request introduces enhancements to the `on_ticket` handler within the SweepAI application. It augments the existing functionality by automatically unrolling Slack threads when a Slack link is included in a ticket summary. The extracted conversation from the Slack thread is then appended to the ticket summary, providing additional context and information directly within the ticket. # Summary - Added `SLACK_API_KEY` environment variable to `sweepai/config/server.py` for Slack integration. - Imported `WebClient` and `SlackApiError` from `slack_sdk` in `sweepai/handlers/on_ticket.py` to enable communication with the Slack API. - Implemented a new feature in `on_ticket` that: - Detects a Slack link in the ticket summary. - Uses the Slack API to fetch the permalink data and retrieve the thread replies. - Appends the text of the Slack thread messages to the ticket summary. - Handles potential `SlackApiError` exceptions and logs errors accordingly. - The changes ensure that relevant Slack conversations are automatically included in the ticket details, improving the ticket resolution process. Fixes #3656. --- <details> <summary><b>🎉 Latest improvements to Sweep:</b></summary> <ul> <li>New <a href="https://progress.sweep.dev">dashboard</a> launched for real-time tracking of Sweep issues, covering all stages from search to coding.</li> <li>Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.</li> <li>Use the <a href="https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github">GitHub issues extension</a> for creating Sweep issues directly from your editor.</li> </ul> </details> --- ### 💡 To get Sweep to edit this pull request, you can: * Comment below, and Sweep can edit the entire PR * Comment on a file, Sweep will only modify the commented file * Edit the original issue to get Sweep to recreate the PR from scratch *This is an automated message generated by [Sweep AI](https://sweep.dev).* --------- Co-authored-by: sweep-nightly[bot] <131841235+sweep-nightly[bot]@users.noreply.github.com> Co-authored-by: wwzeng1 <william@sweep.dev>
Details
This involves adding a way for Sweep to authenticate to their slack (the user will provide an apikey in server.py), fetching the message thread, and adding this context to on_ticket's issue summary.
Checklist
sweepai/config/server.py
✓ 3af4b58 Editsweepai/handlers/on_ticket.py
✓ 3af4b58 Editsweepai/handlers/on_ticket.py
✓ 3af4b58 EditThe text was updated successfully, but these errors were encountered: