Skip to content

Add polyglot exports for papercutsmtp#1186

Merged
aaronpowell merged 5 commits into
mainfrom
dapine/polyglot-export-papercutsmtp
Apr 1, 2026
Merged

Add polyglot exports for papercutsmtp#1186
aaronpowell merged 5 commits into
mainfrom
dapine/polyglot-export-papercutsmtp

Conversation

@IEvangelist

Copy link
Copy Markdown
Contributor

Adds AspireExport coverage and a matching TypeScript validation apphost for papercutsmtp.

Copilot AI review requested due to automatic review settings March 18, 2026 15:48
@github-actions

github-actions Bot commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.sh | bash -s -- 1186

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.ps1) } 1186"

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds polyglot (TypeScript) export coverage for the Papercut SMTP hosting integration by annotating the C# API/resources for export and introducing a matching TypeScript ValidationAppHost under playground/.

Changes:

  • Add [AspireExport] annotations to the Papercut SMTP hosting extension method and container resource (including property exposure).
  • Add a TypeScript ValidationAppHost (apphost + tsconfig + npm manifests + Aspire settings/run profile) for export validation.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/CommunityToolkit.Aspire.Hosting.PapercutSmtp/PapercutSmtpHostingExtension.cs Adds AspireExport to AddPapercutSmtp and updates XML docs.
src/CommunityToolkit.Aspire.Hosting.PapercutSmtp/PapercutSmtpContainerResource.cs Adds AspireExport(ExposeProperties=true) and improves constructor param docs.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.PapercutSmtp/ValidationAppHost/apphost.ts TypeScript apphost that exercises the exported addPapercutSmtp API and resource property access.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.PapercutSmtp/ValidationAppHost/tsconfig.json TS compiler configuration for the validation apphost.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.PapercutSmtp/ValidationAppHost/package.json NPM package manifest for the validation apphost.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.PapercutSmtp/ValidationAppHost/package-lock.json Lockfile for the validation apphost dependencies.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.PapercutSmtp/ValidationAppHost/apphost.run.json Aspire run profile settings for the validation apphost.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.PapercutSmtp/ValidationAppHost/.aspire/settings.json Aspire polyglot settings referencing the Papercut SMTP package.
Files not reviewed (1)
  • playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.PapercutSmtp/ValidationAppHost/package-lock.json: Language not supported

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +4 to +5
#pragma warning disable ASPIREATS001 // AspireExport is experimental

int? smtpPort = null)
{
ArgumentNullException.ThrowIfNull("Service name must be specified.", nameof(name));
ArgumentNullException.ThrowIfNull(name, nameof(name));
Comment on lines +1 to +2
#pragma warning disable ASPIREATS001 // AspireExport is experimental

IEvangelist and others added 4 commits March 30, 2026 09:50
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@IEvangelist IEvangelist force-pushed the dapine/polyglot-export-papercutsmtp branch from 8f9b133 to 69ba85a Compare March 30, 2026 15:43
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
aaronpowell added a commit that referenced this pull request Apr 1, 2026
Squash merge of #1186

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aaronpowell aaronpowell merged commit e44599f into main Apr 1, 2026
473 of 481 checks passed
@aaronpowell aaronpowell deleted the dapine/polyglot-export-papercutsmtp branch April 1, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants