Skip to content

Send email on crate owner invitation #1909

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

Merged
merged 2 commits into from
Nov 25, 2019

Conversation

nkanderson
Copy link
Contributor

If the recipient of a crate ownership invitation has a verified email address, they will be sent an email indicating that a specified user has invited them to become an owner of a named crate. Only sends the email on the first instance of an invitation.

Completes the first part of #1360.

If the recipient of a crate ownership invitation has a verified email address, they will be sent an email indicating that a specified user has invited them to become an owner of a named crate. Only sends the email on the first instance of an invitation.
@rust-highfive
Copy link

r? @jtgeibel

(rust_highfive has picked a reviewer for you, use r? to override)

Copy link
Member

@carols10cents carols10cents left a comment

Choose a reason for hiding this comment

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

It's working great! I tried it out locally and I saw an email sent when I invited another user to a crate! 🎉

The code is really close! I think the email subject could use a tiny bit of tweaking, and we can get rid of a conditional in the krate model. Let me know if you have any questions! Thank you!!!

@nkanderson
Copy link
Contributor Author

I made the requested changes as an additional commit, but if preferred, I can squash that down to just the one.

@nkanderson nkanderson force-pushed the 1360_email_invitation branch from 0c7de44 to cef0429 Compare November 22, 2019 22:34
@nkanderson
Copy link
Contributor Author

Whoops, looks like I had a formatting issue initially, should be ok now though.

@carols10cents
Copy link
Member

Looks great now!! Thank you so much!!

@bors r+

@bors
Copy link
Contributor

bors commented Nov 25, 2019

📌 Commit cef0429 has been approved by carols10cents

bors added a commit that referenced this pull request Nov 25, 2019
Send email on crate owner invitation

If the recipient of a crate ownership invitation has a verified email address, they will be sent an email indicating that a specified user has invited them to become an owner of a named crate. Only sends the email on the first instance of an invitation.

Completes the first part of #1360.
@bors
Copy link
Contributor

bors commented Nov 25, 2019

⌛ Testing commit cef0429 with merge 4df7001...

@bors
Copy link
Contributor

bors commented Nov 25, 2019

☀️ Test successful - checks-travis
Approved by: carols10cents
Pushing 4df7001 to master...

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.

5 participants