Files
gerrit/plugins
David Pursehouse 13783cbdd7 Update git submodules
* Update plugins/hooks from branch 'master'
  - Merge branch 'stable-2.14'
    
    * stable-2.14:
      HookArgs: Use IdentifiedUser.getNameEmail to format account name
    
    Change-Id: Ibf42d2a6de21d8def960e7c57d66ca60d3dd9322
    
  - HookArgs: Use IdentifiedUser.getNameEmail to format account name
    
    In most of the hooks, the account is being formatted as either:
    
      Name Surname (email@domain.com)
    
    when the account has an email address, or:
    
      Name Surname
    
    when the account does not have an email address. If the account name
    is empty the anonymous coward name is used.
    
    Instead of implementing this logic in the hook, defer it to the
    existing implementation in IdentifiedUser which properly formats
    the name when there is an email address:
    
      Name Surname <email@domain.com>
    
    and also handles the cases where the account does not have an email
    address but instead has a username, or falls back to the account Id.
    
    The names used in the ref-update and commit-received hooks were already
    formatted like this, so this change makes the rest of the hooks
    consistent.
    
    Change-Id: I99eeab1759dcedfdcc8c689ee6ac4599e3b58325
2017-08-30 11:09:43 +00:00
..
2017-04-20 15:13:16 +00:00
2017-08-30 11:09:43 +00:00
2017-08-24 23:34:55 +00:00
2017-02-28 18:14:01 +09:00