Commit 4a99b4e
committed
CIHelper.setupGitHubAction(): also process the SMTP inputs, if any
The upcoming `handle-pr-comment` Action wants to send emails, and for
that reason needs to accept SMTP credentials. These can be provided via
the `smtp-host`, `smtp-user` and `smtp-pass` Action inputs. Additional
options (that might be necessary to support projects other than Git) can
be passed in via the `smtp-opts` input, a JSON-formatted object to
augment/oeverride nodemailer's `SMTPTransport.Options` when sending the
emails.
Since most of GitGitGadget's Actions do not want to send emails, it is
silently ignored if these Action inputs are unset or empty when
`setupGitHubAction()` is called.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 7d538e5 commit 4a99b4e
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
93 | 108 | | |
94 | 109 | | |
95 | 110 | | |
| |||
0 commit comments