Created
August 4, 2024 20:32
-
-
Save erickgnavar/42675d78313cc0ecd504bcf911135f10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(unless (not (string-equal status-code 201)) | |
(user-error "There was a problem with GitHub API, try again later")) | |
(search-forward "\n\n") | |
(let* ((raw-response (buffer-substring-no-properties (point) (point-max))) | |
(data (json-parse-string raw-response)) | |
(gist-link (gethash "html_url" data))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment