Skip to content

Instantly share code, notes, and snippets.

@orgads
Created May 26, 2017 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orgads/d8a61a1c10efeb7a4fafbcb6374167c3 to your computer and use it in GitHub Desktop.
Save orgads/d8a61a1c10efeb7a4fafbcb6374167c3 to your computer and use it in GitHub Desktop.
/**
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
{namespace com.google.gerrit.server.mail.template}
/**
* The .ChangeSubject template will determine the contents of the email subject
* line for ALL emails related to changes.
* @param messageClass
* @param branch
* @param change
* @param shortProjectName
*/
{template .ChangeSubject autoescape="strict" kind="text"}
[Gerrit] {switch $messageClass}
{case 'abandon'}Abandoned
{case 'addkey'}Key Added
{case 'comment'}Comments
{case 'deleteReviewer'}Reviewer Deleted
{case 'deleteVote'}Vote Deleted
{case 'merged'}Merged
{case 'newchange'}Review Request
{case 'newpatchset'}New Patchset
{case 'registernewemail'}Email Registered
{case 'restore'}Restored
{case 'revert'}Reverted
{case 'setassignee'}Assigned
{/switch} - {$shortProjectName}[{$branch.shortName}]: {$change.shortSubject}
{/template}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment