From 056b197578832a5c7af34bec5e8788accdb42460 Mon Sep 17 00:00:00 2001 From: iorate <682043+iorate@users.noreply.github.com> Date: Sat, 5 Aug 2023 18:35:28 +0900 Subject: [PATCH] feat: make `approvalNotes` accept templates --- src/publish.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/publish.ts b/src/publish.ts index 4029524..b8caa50 100644 --- a/src/publish.ts +++ b/src/publish.ts @@ -20,13 +20,14 @@ export async function publish( addonId, addonZipPath: addonZipPathTemplate, channel, - approvalNotes, + approvalNotes: approvalNotesTemplate, compatibility, submitReleaseNotes, submitSource, sourceZipPath: sourceZipPathTemplate, } = applyDefaults(pluginConfig); const addonZipPath = applyContext(addonZipPathTemplate, context); + const approvalNotes = approvalNotesTemplate && applyContext(approvalNotesTemplate, context); const sourceZipPath = applyContext(sourceZipPathTemplate, context); const { env, logger, nextRelease } = context; const baseURL = env.AMO_BASE_URL ?? 'https://addons.mozilla.org/';