1. 21 Dec, 2022 3 commits
  2. 20 Dec, 2022 2 commits
  3. 19 Dec, 2022 1 commit
    • Christian Ullrich's avatar
      Do not list active repositories as unadopted (#22034) (#22167) · 068e96fb
      Christian Ullrich authored
      
      Backport #22034
      
      This fixes a bug where, when searching unadopted repositories, active
      repositories will be listed as well. This is because the size of the
      array of repository names to check is larger by one than the
      `IterateBufferSize`.
      
      For an `IterateBufferSize` of 50, the original code will pass 51
      repository names but set the query to `LIMIT 50`. If all repositories in
      the query are active (i.e. not unadopted) one of them will be omitted
      from the result. Due to the `ORDER BY` clause it will be the oldest (or
      least recently modified) one.
      Co-authored-by: default avatarChristian Ullrich <christian.ullrich@traditionsa.lu>
      068e96fb
  4. 15 Dec, 2022 1 commit
  5. 14 Dec, 2022 1 commit
  6. 13 Dec, 2022 2 commits
  7. 12 Dec, 2022 1 commit
  8. 10 Dec, 2022 1 commit
  9. 06 Dec, 2022 2 commits
    • Jason Song's avatar
      Fix issue/PR numbers (#22037) (#22045) · e93a4a01
      Jason Song authored
      Backport #22037.
      
      When deleting a closed issue, we should update both `NumIssues`and
      `NumClosedIssues`, or `NumOpenIssues`(`= NumIssues -NumClosedIssues`)
      will be wrong. It's the same for pull requests.
      
      Releated to #21557.
      
      Alse fixed two harmless problems:
      
      - The SQL to check issue/PR total numbers is wrong, that means it will
      update the numbers even if they are correct.
      - Replace legacy `num_issues = num_issues + 1` operations with
      `UpdateRepoIssueNumbers`.
      e93a4a01
    • zeripath's avatar
      Handle empty author names (#21902) (#22028) · 601766d1
      zeripath authored
      
      Backport #21902
      
      Although git does expect that author names should be of the form: `NAME
      <EMAIL>` some users have been able to create commits with: `<EMAIL>`
      
      Fix #21900
      Signed-off-by: default avatarAndrew Thornton <art27@cantab.net>
      Co-authored-by: default avatarLauris BH <lauris@nix.lv>
      601766d1
  10. 05 Dec, 2022 1 commit
  11. 04 Dec, 2022 1 commit
  12. 24 Nov, 2022 2 commits
  13. 20 Nov, 2022 2 commits
  14. 18 Nov, 2022 1 commit
    • Gusted's avatar
      Prevent dangling user redirects (#21856) (#21859) · 56716f58
      Gusted authored
      - Backport #21856
      - It's possible that the `user_redirect` table contains a user id that
      no longer exists.
        - Delete a user redirect upon deleting the user.
      - Add a check for these dangling user redirects to check-db-consistency.
      56716f58
  15. 14 Nov, 2022 1 commit
  16. 13 Nov, 2022 3 commits
  17. 11 Nov, 2022 2 commits
  18. 10 Nov, 2022 3 commits
  19. 09 Nov, 2022 3 commits
  20. 01 Nov, 2022 1 commit
    • zeripath's avatar
      Fix repository adoption on Windows (#21646) (#21651) · d6d62c07
      zeripath authored
      
      Backport #21646
      
      A bug was introduced in #17865 where filepath.Join is used to join
      putative unadopted repository owner and names together. This is
      incorrect as these names are then used as repository names - which shoud
      have the '/' separator. This means that adoption will not work on
      Windows servers.
      
      Fix #21632
      Signed-off-by: default avatarAndrew Thornton <art27@cantab.net>
      d6d62c07
  21. 30 Oct, 2022 1 commit
  22. 28 Oct, 2022 1 commit
  23. 27 Oct, 2022 2 commits
  24. 26 Oct, 2022 2 commits
    • Lunny Xiao's avatar
      Fix issues count bug (#21600) · 291787a5
      Lunny Xiao authored
      backport #21557
      291787a5
    • Ashley Nelson's avatar
      Update milestone counters when issue is deleted (#21459) (#21586) · e5044107
      Ashley Nelson authored
      
      Backports #21459 
      
      When actions besides "delete" are performed on issues, the milestone
      counter is updated. However, since deleting issues goes through a
      different code path, the associated milestone's count wasn't being
      updated, resulting in inaccurate counts until another issue in the same
      milestone had a non-delete action performed on it.
      
      I verified this change fixes the inaccurate counts using a local docker
      build.
      Co-authored-by: default avatar6543 <6543@obermui.de>
      e5044107