Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add endpoint to report via email #10

Merged
merged 7 commits into from
Mar 6, 2024
Merged

Conversation

Robin5605
Copy link
Contributor

Closes #4

This is essentially a port of the existing email functionality from Mainframe.

Add a utility method for extracting the file path out of an Inspector URL
Add schemas.py that will contain all Pydantic models for the API.
Currently contains the `ReportPayload` model, which is the payload
sent by users when they wish to report a package via email (as
opposed to the PyPI Observations API)
Add a method in `mailer.py` that will build a report email body
@Robin5605 Robin5605 added the enhancement New feature or request label Mar 4, 2024
src/reporter/app.py Outdated Show resolved Hide resolved
AbooMinister25
AbooMinister25 previously approved these changes Mar 5, 2024
src/reporter/utils/pypi.py Show resolved Hide resolved
@Robin5605 Robin5605 merged commit 9c1bbcd into main Mar 6, 2024
5 checks passed
@Robin5605 Robin5605 deleted the robin/feat/report-via-email branch March 6, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add route for sending reports via email
5 participants