Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/sweepai/sweep
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlu1248 committed Aug 15, 2023
2 parents f80c04a + 8a69079 commit be0ac1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sweep.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
gha_enabled: True
branch: main
blocked_dirs: [".github/"]
draft: True
draft: False
description: "sweepai/sweep is a python 3.10 project. The main api endpoints are in sweepai/api.py. Write code that adheres to PEP8."
# These are the docs that we index for Sweep.
# We scrape these docs once a day and store them in our database.
Expand Down
4 changes: 4 additions & 0 deletions sweepai/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@ async def webhook(raw_request: Request):
logger.info(f"Handling check suite for {request.repository.full_name}")
_, g = get_github_client(request.installation.id)
repo = g.get_repo(request.repository.full_name)
if request.check_run.pull_requests and issue.labels:
issue = repo.get_issue(request.check_run.pull_requests[0].number)
if not any(label.name == "sweep" for label in issue.labels):
return {"success": True}
pull_request = repo.get_pull(request.check_run.pull_requests[0].number)
if (
len(request.check_run.pull_requests) > 0
Expand Down

0 comments on commit be0ac1f

Please sign in to comment.