Skip to content
Snippets Groups Projects
  1. Jun 05, 2023
  2. May 09, 2023
  3. Apr 24, 2023
  4. Apr 20, 2023
    • Peter Leitzen's avatar
      Handle nil user in EE version of Group#member? · b07da571
      Peter Leitzen authored
      Previously, we had to check if user is present before passing it to
      Group#member? because it'd fail due to the EE override.
      
      This commit handles the case where user is nil and returns false.
      
      The previous nil checks are not no longer necessary.
      Verified
      b07da571
  5. Mar 07, 2023
  6. Mar 02, 2023
  7. Oct 06, 2022
  8. Aug 24, 2022
  9. Aug 19, 2022
    • Ian Anderson's avatar
      Add support for snippet spam · 423e7036
      Ian Anderson authored
      The spamcheck service has been updated with a new
      model to detect spam in snippets. This MR updates
      the Snippet create/update functionality to check
      for spam using the newly available gRPC endpoint in
      spamcheck.
      
      Changelog: added
      423e7036
  10. Aug 01, 2022
  11. Jul 27, 2022
  12. Jul 19, 2022
  13. Apr 19, 2022
    • Toon Claes's avatar
      Add #resource_parent to Snippet · 69e73b0f
      Toon Claes authored
      In a future commit we will be calling #resource_parent on an object we
      don't know the exact type of. But all of them respond to that method,
      except for Snippet. With this change we can safely call it without
      getting a NoMethodError.
      69e73b0f
  14. Mar 14, 2022
    • John Cai's avatar
      Do not ensure HEAD is default_branch on snippets · 81f2238e
      John Cai authored
      Since create_repository_if_exists takes a default_branch argument, use
      that in the initial call to create the repository rather than changing
      it after the fact. This avoids potential racy calls to WriteRef, as well
      as saves a roundtrip to Gitaly.
      
      Changelog: changed
      81f2238e
  15. Mar 11, 2022
    • John Cai's avatar
      Allow gitaly create_repository to take a default branch argument · c1b8cab3
      John Cai authored
      Currently when rails wants to ensure a default branch name, it will call
      the Gitaly WriteRef RPC to manually change it. If this call happens in a
      racy way eg: it gets called when another RPC is operating on the same
      repository, it will fail. Rather than do this, the Gitaly
      CreateRepository RPC has a default_branch parameter.
      
      Allow rails callers to set this value. If it is not provided, then the
      default branch in Gitaly will be used, which is main.
      c1b8cab3
  16. Feb 25, 2022
  17. Dec 08, 2021
  18. Nov 26, 2021
  19. Jul 20, 2021
  20. May 14, 2021
  21. May 11, 2021
  22. Apr 26, 2021
  23. Mar 15, 2021
  24. Feb 23, 2021
  25. Feb 19, 2021
  26. Jan 25, 2021
  27. Jan 12, 2021
  28. Dec 23, 2020
    • Francisco Javier López's avatar
      Fix bug when creating snippet and default branch not master · 98c6ef97
      Francisco Javier López authored
      When a new snippet repository is created, the ref inside
      HEAD is `master` even when the default branch is different.
      
      This also happens with projects and wikis. These resources fix
      this by explicitly rewrite the HEAD reference and we're applying
      the same behavior to snippets.
      
      When the repository is pushed or pulled we update the reference
      inside the HEAD file.
      Unverified
      98c6ef97
  29. Dec 16, 2020
  30. Dec 14, 2020
  31. Nov 24, 2020
  32. Nov 18, 2020
  33. Oct 23, 2020
    • Markus Koller's avatar
      Remove '@' from Snippet.full_path · bc508f91
      Markus Koller authored
      We originally added this out of concern that the `snippets` component
      in the path could clash with groups or projects named `snippets`, which
      we allow for projects and child groups, and only forbid for toplevel
      groups.
      
      But we already use the path without '@' for SSH/HTTP clone URLs, and
      also include the snippet ID, so this change should be unlikely to cause
      problems in practice.
      
      This also makes snippets more consistent with the other `HasRepository`
      classes, and allows us to remove some special handling for snippets.
      Unverified
      bc508f91
  34. Oct 19, 2020
  35. Oct 12, 2020
  36. Oct 06, 2020
  37. Sep 16, 2020
  38. Sep 07, 2020
Loading