Read about our upcoming Code of Conduct on this issue

  • Yorick Peterse's avatar
    Use a query in Project#protected_branch? · 430fdd6b0f84
    Yorick Peterse authored
    This changes Project#protected_branch? to use a query to check if a
    branch is protected, instead of loading all ProtectedBranch records into
    memory just to check if the list of names includes a given branch name.
    430fdd6b0f84
project.rb 30.2 KB