Skip to content

Commit

Permalink
skip broken pull refs
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed May 5, 2022
1 parent 07ebb0d commit 6eec790
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/automerge/automerge.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ func getPullRequestsByHeadSHA(ctx context.Context, sha string, repo *repo_model.

prIndex, err := strconv.ParseInt(parts[0], 10, 64)
if err != nil {
return nil, err
log.Error("getPullRequestsByHeadSHA found broken pull ref [%s] on repo [%d]", ref, repo.ID)
continue
}

p, err := models.GetPullRequestByIndexCtx(ctx, repo.ID, prIndex)
Expand Down

0 comments on commit 6eec790

Please sign in to comment.