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

Notify slack about a new tester signing up #134

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

plaetzchen
Copy link

I really like the idea of getting a slack notification of a new tester signing up (see #20 ) so I implemented it.

Note: I am not a ruby developer by profession so please check if this is a good idea. Tested on local though

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@plaetzchen
Copy link
Author

I signed it!

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

@googlebot
Copy link

CLAs look good, thanks!

@plaetzchen
Copy link
Author

Also tested on Heroku with our live app. Works for me.

Copy link
Collaborator

@taquitos taquitos left a comment

Choose a reason for hiding this comment

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

I'm in the process of a rather large refactor which will introduce the idea of a "service" that contains business logic, so I think these changes can go in that file. You can see my current PR here: #135
Once it is merged, let me know if you need any help. Great job here!

@@ -1,4 +1,5 @@
require 'spaceship'
require 'slack-notifier'
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's add the slack-notifier gem to the gem file too 😄

@@ -92,6 +93,7 @@ def submit
logger.info "Addding tester to application"
app.default_external_group.add_tester!(tester)
logger.info "Done"
notify_slack(first_name,last_name,email)
Copy link
Collaborator

Choose a reason for hiding this comment

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

tiny minor nit, lets get spaces after the ',' for the args

@@ -187,4 +189,13 @@ def testing_is_live?
end
return false
end

def notify_slack(first_name,last_name,email)
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here: spaces after the ',' for the args

@nickdima
Copy link

Any update on this?

@joshdholtz
Copy link
Member

@nickdima Are you still interested in merge this? If so, can you make the requested changes and rebase? 🙃

@plaetzchen
Copy link
Author

I think I should do this and I will. Sorry, totally forgot about this

@joshdholtz
Copy link
Member

@plaetzchen No problem! Was just curious 🙃 Lemme know if you need any help or anything 💪

Copy link
Author

@plaetzchen plaetzchen left a comment

Choose a reason for hiding this comment

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

Thanks for the help! I am in the end just a very rookie ruby dev

@ricburton
Copy link

I would love for this to submit to mailchimp too

@FinHorsley
Copy link
Contributor

@taquitos Got time to fix these conflicts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants