Skip to content

Commit a49d93e

Browse files
committed
main: get the authenticated user
1 parent 2b15f47 commit a49d93e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def git(*args)
5353
end
5454

5555
# Get user details
56-
user = GitHub.open_api "#{GitHub::API_URL}/users/#{actor}"
56+
user = GitHub.open_api "#{GitHub::API_URL}/user"
5757
user_name = user['name'] || user['login']
5858
user_email = user['email'] || (
5959
# https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address

0 commit comments

Comments
 (0)