Skip to content

Conversation

@woodruffw
Copy link
Member

If a distribution is uploaded via Trusted Publishing and is accompanied by a PGP signature, send the GPG deprecation email to all project members, rather than exploding due to request.user not being present.

Fixes #14928.

@woodruffw woodruffw requested a review from a team as a code owner December 2, 2023 23:05
@woodruffw woodruffw self-assigned this Dec 2, 2023
send_gpg_signature_uploaded_email(
request, request.user, project_name=project.name
request,
request.user if request.user else project.users,
Copy link
Member Author

@woodruffw woodruffw Dec 2, 2023

Choose a reason for hiding this comment

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

NB: Passing in either a scalar user or list[user] here is allowed by @email-decorated APIs, like send_gpg_signature_uploaded_email.

@di
Copy link
Member

di commented Dec 4, 2023

@woodruffw The branch is out of date, and I can't update it, can you?

@woodruffw
Copy link
Member Author

Done!

@di
Copy link
Member

di commented Dec 4, 2023

Oops, one more time please, #14949 just got merged (not sure why I'm missing the ability to do this on your fork).

@woodruffw
Copy link
Member Author

Oops, one more time please, #14949 just got merged (not sure why I'm missing the ability to do this on your fork).

This is a GitHub bug 🙃 -- the fork is on an org account (woodruffw-forks), and GitHub doesn't let me share "upstream" push rights to branches on org account forks.

(I can manually make you a maintainer on my fork however, one sec.)

@di di enabled auto-merge (squash) December 4, 2023 15:19
@di di merged commit e8ddb80 into pypi:main Dec 4, 2023
@woodruffw woodruffw deleted the ww/gpg-email-project-users-fallback branch December 4, 2023 15:24
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.

Sending "GPG signature uploaded" email fails when using Trusted Publishing

2 participants