Skip to content
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: add a new webhook endpoint to receive events from Linear. Users should be allowed to tag a linear ticket with the Sweep label and invoke Sweep. #3679

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sweep-nightly[bot]
Copy link
Contributor

@sweep-nightly sweep-nightly bot commented May 3, 2024

Description

This pull request introduces a new webhook endpoint to handle events from Linear. It allows users to tag a Linear ticket with the "Sweep" label, which will then trigger the Sweep workflow.

Summary

  • New Environment Variables: Added LINEAR_API_KEY and LINEAR_LABEL_NAME to sweepai/config/server.py to configure access to the Linear API and specify the label name used to trigger Sweep.
  • New Handler: Created sweepai/handlers/on_linear_ticket.py to process incoming Linear webhook events. This includes extracting ticket details and checking for the "Sweep" label.
  • Webhook Endpoint: Added a new POST endpoint /linear in sweepai/api.py to receive webhook events from Linear. This endpoint initializes a thread to handle the event asynchronously.
  • Configuration Updates: Updated sweepai/config/server.py to include the necessary configurations for the Linear integration.

Fixes #3669.


🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 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.

Copy link
Contributor Author

sweep-nightly bot commented May 3, 2024

Rollback Files For Sweep

  • Rollback changes to sweepai/api.py
  • Rollback changes to sweepai/config/server.py
  • Rollback changes to sweepai/handlers/on_linear_ticket.py

This is an automated message generated by Sweep AI.

@sweep-nightly sweep-nightly bot added the sweep Assigns Sweep to an issue or pull request. label May 3, 2024
Copy link

vercel bot commented May 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sweep-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 3, 2024 11:58pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
1 participant