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

Support nil name & email #18

Merged
merged 1 commit into from Nov 24, 2015
Merged

Support nil name & email #18

merged 1 commit into from Nov 24, 2015

Conversation

ppworks
Copy link

@ppworks ppworks commented Nov 24, 2015

If a bot checked 'Keep my email address private', you don't need to know email address. You can assemble email by user name; like a 'user_name@users.noreply.github.com'.

And you can get user_name by access token. So, you'll not need to specify user name & email.

private-email

@@ -14,6 +14,10 @@ def self.create_if_needed(git_username: nil, git_email: nil, git_branches: ["mas
repo_full_name = "#{ENV['CIRCLE_PROJECT_USERNAME']}/#{ENV['CIRCLE_PROJECT_REPONAME']}"
now = Time.now
branch = "bundle-update-#{now.strftime('%Y%m%d%H%M%S')}"

git_username ||= client.user.login
Copy link
Author

Choose a reason for hiding this comment

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

Fetch user_name via github API.

@masutaka
Copy link
Owner

Thanks a lot!

masutaka added a commit that referenced this pull request Nov 24, 2015
Support nil name & email
@masutaka masutaka merged commit 3c0b7e0 into masutaka:master Nov 24, 2015
@ppworks
Copy link
Author

ppworks commented Nov 25, 2015

Thanks for merging 🙏
I'm looking forward to v1.2.3(or v.1.3.0?)

@ppworks
Copy link
Author

ppworks commented Nov 25, 2015

🎉

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.

None yet

2 participants