Skip to content

Commit

Permalink
Merge pull request #113 from danielfleischer/master
Browse files Browse the repository at this point in the history
Github token as a function
  • Loading branch information
sigma authored Aug 25, 2023
2 parents e1423a5 + 20bc1d0 commit a1eee4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gh-auth.el
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
:token))))
(setq token (or tok (read-string "GitHub OAuth token: ")))
(gh-set-config "oauth-token" token)))
(when (functionp token) (setq token (funcall token)))
(gh-auth-remember profile :token token)
token))

Expand Down

0 comments on commit a1eee4c

Please sign in to comment.