Created
May 25, 2017 09:30
-
-
Save orgads/93df7ca47b96eb328f3fc39624437174 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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"} | |
{let $subjectPrefix} | |
{switch $messageClass} | |
{case 'comment'}Comments | |
{case 'merged'}Merged | |
{case 'newchange'}Review Request | |
{case 'newpatchset'}New Patchset | |
{case 'abandon'}Abandoned | |
{case 'restore'}Restored | |
{case 'revert'}Reverted | |
{case 'merge-failed'}Merge Failed | |
{case 'setassignee'}Assigned | |
{/switch} | |
{/let} | |
[Gerrit] $subject_prefix - {$shortProjectName}[{$branch.shortName}]: {$change.shortSubject} | |
{/template} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment