Skip to content

Commit

Permalink
feat: make approvalNotes accept templates
Browse files Browse the repository at this point in the history
  • Loading branch information
iorate committed Aug 5, 2023
1 parent cc79a9b commit 056b197
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/';
Expand Down

0 comments on commit 056b197

Please sign in to comment.