1. 25 5月, 2017 1 次提交
  2. 04 5月, 2017 1 次提交
  3. 01 5月, 2017 1 次提交
  4. 06 4月, 2017 4 次提交
  5. 04 4月, 2017 1 次提交
  6. 28 3月, 2017 1 次提交
  7. 22 3月, 2017 1 次提交
    • R
      Combine redundant `it` blocks in Notify spec · a6e43aa2
      Robert Speicher 提交于
      We perform a bunch of setup for most of these cases, and it didn't make
      sense to do an entirely new costly setup just to test a different string
      in the same body of the email we just generated in the last test.
      a6e43aa2
  8. 17 3月, 2017 1 次提交
  9. 14 3月, 2017 1 次提交
  10. 29 11月, 2016 3 次提交
  11. 25 11月, 2016 5 次提交
    • H
      Clean up rubocop complaint · c0931722
      hhoopes 提交于
      c0931722
    • H
      Add keyword arguments to truncated_diff method · a761c59a
      hhoopes 提交于
      * Added keyword arguments to truncated_diff_lines method to allow for using highlighting or not (html templates vs. text)
      * Tweaked templates for consistency and format appropriateness
      a761c59a
    • H
      Change diff highlight/truncate for reusability · f928dba9
      hhoopes 提交于
      Previously the `truncated_diff_lines` method for outputting a discussion diff took in already highlighted lines, which meant it wasn't reuseable for truncating ANY lines. In the way it was used, it also meant that for any email truncation, the whole diff was being highlighted before being truncated, meaning wasted time highlighting lines that wouldn't even be used (granted, they were being memoized, so perhaps this wasn't that great of an issue). I refactored truncation away from highlighting, in order to truncate formatted diffs for text templates in email, using `>`s to designate each line, but otherwise retaining the parsing already done to create `diff_lines`.
      
      Additionally, while notes on merge requests or commits had already been tested, there was no existing test for notes on a diff on an MR or commit. Added mailer tests for such, and a unit test for truncating diff lines.
      f928dba9
    • H
      Add new template to handle both commit & mr notes · 24070bac
      hhoopes 提交于
      Currently comments on commits and merge requests do not require merge request- or commit-specific information, but can use the same template. Rather than change the method which calls the template, I opted to keep the templates separate and create a new template to highlight their identicality, while preserving the option to distinguish them from each other in the future.
      
      Also removed some of the inconsistencies between text and html email versions.
      
      Still needed is a text-only version of git diffs and testing.
      24070bac
    • H
      Add diff hunks to notification emails on MR · 38ed96e9
      hhoopes 提交于
      Added diff hunks to notification emails of messages on merge requests. This
      provides code context to the note. Uses existing template for formatting
      a diff for email (from repository push notifications).
      38ed96e9
  12. 11 11月, 2016 1 次提交
  13. 23 10月, 2016 1 次提交
  14. 11 10月, 2016 1 次提交
  15. 03 10月, 2016 5 次提交
  16. 28 9月, 2016 1 次提交
    • R
      Allow Member.add_user to handle access requesters · ec0061a9
      Rémy Coutable 提交于
      Changes include:
      
      - Ensure Member.add_user is not called directly when not necessary
      - New GroupMember.add_users_to_group to have the same abstraction level as for Project
      - Refactor Member.add_user to take a source instead of an array of members
      - Fix Rubocop offenses
      - Always use Project#add_user instead of project.team.add_user
      - Factorize users addition as members in Member.add_users_to_source
      - Make access_level a keyword argument in GroupMember.add_users_to_group and ProjectMember.add_users_to_projects
      - Destroy any requester before adding them as a member
      - Improve the way we handle access requesters in Member.add_user
        Instead of removing the requester and creating a new member,
        we now simply accepts their access request. This way, they will
        receive a "access request granted" email.
      - Fix error that was previously silently ignored
      - Stop raising when access level is invalid in Member, let Rails validation do their work
      Signed-off-by: NRémy Coutable <remy@rymai.me>
      ec0061a9
  17. 22 9月, 2016 1 次提交
  18. 20 9月, 2016 1 次提交
  19. 09 8月, 2016 1 次提交
  20. 03 8月, 2016 2 次提交
  21. 22 7月, 2016 1 次提交
  22. 07 7月, 2016 1 次提交
  23. 02 7月, 2016 1 次提交
  24. 01 7月, 2016 1 次提交
  25. 20 6月, 2016 1 次提交
  26. 16 6月, 2016 1 次提交