Compare commits

..

No commits in common. "a291a03d89306ff7ad7eb9142aa231ae10b63d17" and "3fe8426262da4d8d8400c8704e35ad154cc07397" have entirely different histories.

2 changed files with 0 additions and 17 deletions

View file

@ -21,7 +21,6 @@ url: https://gitnet.fr/deblan/woodpecker-email
| content.subject | no | `string` | Define the email subject template | |
| content.body | no | `string` | Define the email body template | |
| attachments | no | `string` or `list` | List of files to attach | YAML list or comma separated list |
| debug | no | `boolean` | Debug mode (email are sent!) | |
@ -77,7 +76,6 @@ See the [Twig documentation](https://twig.symfony.com/doc/3.x/).
| `commit.author` | `CI_COMMIT_AUTHOR` |
| `commit.author_email` | `CI_COMMIT_AUTHOR_EMAIL` |
| `commit.author_avatar` | `CI_COMMIT_AUTHOR_AVATAR` |
| `commit.prerelease` | `CI_COMMIT_PRERELEASE` |
| `prev_commit.sha` | `CI_PREV_COMMIT_SHA` |
| `prev_commit.ref` | `CI_PREV_COMMIT_REF` |
| `prev_commit.branch` | `CI_PREV_COMMIT_BRANCH` |

View file

@ -32,7 +32,6 @@ $build = EnvVarLoader::buildArray([
'author' => 'CI_COMMIT_AUTHOR',
'author_email' => 'CI_COMMIT_AUTHOR_EMAIL',
'author_avatar' => 'CI_COMMIT_AUTHOR_AVATAR',
'prerelease' => 'CI_COMMIT_PRERELEASE',
],
'prev_commit' => [
'sha' => 'CI_PREV_COMMIT_SHA',
@ -89,10 +88,8 @@ $config = EnvVarLoader::buildArray([
'attachments' => 'PLUGIN_ATTACHMENTS',
'evaluate' => 'PLUGIN_EVALUATE',
'content' => 'PLUGIN_CONTENT',
'is_debug' => 'PLUGIN_DEBUG',
], [
'PLUGIN_RECIPIENTS_ONLY' => true,
'PLUGIN_DEBUG' => false,
]);
function writeln(...$values)
@ -112,18 +109,6 @@ function handleError($section, Exception $e)
exit(1);
}
if ($config['is_debug']) {
writeln(
'Debug',
'=====',
'Config',
json_encode($config, JSON_PRETTY_PRINT),
'Environment',
json_encode($_SERVER, JSON_PRETTY_PRINT),
'====='
);
}
$twig = (new TwigFactory())->create();
$emailFactory = new EmailFactory($twig, $config, $build);
$evaluation = new Evaluation($twig);