| /** |
| * Copyright (C) 2019 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 .CombinedCheckStateUpdated template will determine the contents of the email related to a |
| * change for which the combined check state was updated. |
| */ |
| {template .CombinedCheckStateUpdated kind="text"} |
| {@param email: ?} |
| {@param change: ?} |
| {@param patchSet: ?} |
| {@param checker: ?} |
| {@param check: ?} |
| {@param oldCombinedCheckState: ?} |
| {@param newCombinedCheckState: ?} |
| The combined check state has been updated to {$newCombinedCheckState} for patch set{sp} |
| {$patchSet.patchSetId} of this change |
| {if $email.changeUrl}{sp}( {$email.changeUrl} ){/if} |
| .{\n} |
| {if $check and $checker and $check.state == 'FAILED' |
| and ($newCombinedCheckState == 'FAILED' |
| or ($newCombinedCheckState == 'WARNING' and $oldCombinedCheckState != 'FAILED'))} |
| {\n} |
| Checker {$checker.name} |
| {if $checker.url}{sp}( {$checker.url} ){/if} |
| {sp}updated the check state to {$check.state} |
| {if $check.url}{sp}( {$check.url} ){/if} |
| {if $check.message} |
| :{\n} |
| {$check.message}{\n} |
| {else} |
| .{\n} |
| {/if} |
| {/if} |
| {\n} |
| Change subject: {$change.subject}{\n} |
| ......................................................................{\n} |
| {/template} |