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

enhance: emit an error when the Auth method is specified but no creds were passed #35

Merged
merged 3 commits into from
Jan 19, 2023

Conversation

colindean
Copy link
Contributor

This avoids a frustrating timeout error when the secrets weren't passed correctly.

This avoids a frustrating timeout error when the secrets weren't passed correctly.
@colindean colindean requested a review from a team as a code owner December 13, 2022 20:29
Auth: "LoginAuth",
SMTPHost: &SMTPHost{
Host: "smtphost.com",
Port: "234234",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also LOL this works with an invalid port, that may be a problem if something else doesn't check that

wass3r
wass3r previously approved these changes Jan 5, 2023
Copy link
Collaborator

@wass3r wass3r left a comment

Choose a reason for hiding this comment

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

lgtm - thanks!

@codecov
Copy link

codecov bot commented Jan 5, 2023

Codecov Report

Merging #35 (46fd81d) into main (a3a745c) will increase coverage by 0.52%.
The diff coverage is 100.00%.

❗ Current head 46fd81d differs from pull request most recent head 578fb7f. Consider uploading reports for the commit 578fb7f to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #35      +/-   ##
==========================================
+ Coverage   20.93%   21.46%   +0.52%     
==========================================
  Files           3        3              
  Lines         449      452       +3     
==========================================
+ Hits           94       97       +3     
  Misses        353      353              
  Partials        2        2              
Impacted Files Coverage Δ
cmd/vela-email/plugin.go 54.49% <100.00%> (+0.78%) ⬆️

cmd/vela-email/plugin.go Outdated Show resolved Hide resolved
cmd/vela-email/plugin.go Outdated Show resolved Hide resolved
@colindean
Copy link
Contributor Author

Looks like the check failure is just a copyright date. Perhaps that can be done in another PR.

@colindean
Copy link
Contributor Author

@wass3r Who else can I or you tag to review?

@wass3r
Copy link
Collaborator

wass3r commented Jan 19, 2023

@go-vela/admins should do. I'll bug them tomorrow ;)

@wass3r wass3r changed the title Emit an error when the Auth method is specified but no creds were passed enhance: Emit an error when the Auth method is specified but no creds were passed Jan 19, 2023
@wass3r wass3r changed the title enhance: Emit an error when the Auth method is specified but no creds were passed enhance: emit an error when the Auth method is specified but no creds were passed Jan 19, 2023
@wass3r wass3r merged commit 50bba83 into go-vela:main Jan 19, 2023
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.

4 participants