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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweep: allow for rebase. #3457

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: Updated 1 files
  • Loading branch information
sweep-nightly[bot] committed Apr 6, 2024
commit 5dcaae4512e60f0edab30b89cf872d9e411853cf
3 changes: 2 additions & 1 deletion sweepai/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from fastapi.responses import HTMLResponse
from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer
from fastapi.templating import Jinja2Templates
from github import GithubException
from github.Commit import Commit
from prometheus_fastapi_instrumentator import Instrumentator

Expand Down Expand Up @@ -404,7 +405,7 @@ def update_sweep_prs_v2(repo_full_name: str, installation_id: int):

try:
repo.rebase(pr.base.ref, feature_branch)
except github.GithubException as e:
except GithubException as e:
if e.status == 409: # Merge conflict
pr.edit(state="closed")
continue
Expand Down