HACK: disable close of pullrequests for now
it hit too many ones
This commit is contained in:
@@ -443,11 +443,11 @@ func (pr *PRProcessor) Process(req *models.PullRequest) error {
|
|||||||
if _, ok := err.(*repository.RepoMergePullRequestConflict); !ok {
|
if _, ok := err.(*repository.RepoMergePullRequestConflict); !ok {
|
||||||
common.PanicOnError(err)
|
common.PanicOnError(err)
|
||||||
}
|
}
|
||||||
} else {
|
// } else {
|
||||||
Gitea.AddComment(pr.PR, "Closing here because the associated Project PR has been closed.")
|
// Gitea.AddComment(pr.PR, "Closing here because the associated Project PR has been closed.")
|
||||||
Gitea.UpdatePullRequest(org, repo, idx, &models.EditPullRequestOption{
|
// Gitea.UpdatePullRequest(org, repo, idx, &models.EditPullRequestOption{
|
||||||
State: "closed",
|
// State: "closed",
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user