-
I have read the forge manual and the ghub manual. I have read the issues in this repo as well as the support questions. None of them seem to be helping. ProblemNote that I have tried this on a public repo and I do not get this error. This must indicate an issue setting this up in the private repo, though I don't know what. When I run What I've done
I have also pasted below the debugging output when I do Relevant Git Configs
Debug OutputNote that I've replaced the repo name with <private_repo_name> Debugger entered--Lisp error: (error "Required Github token (\"<my_work_email>^for...")
signal(error ("Required Github token (\"<my_work_email>^for..."))
error("Required %s token (%S for %S) does not exist.\nSee ..." "Github" "<my_work_email>^forge" "api.github.com")
ghub--token("api.github.com" "<my_work_email>" forge nil nil)
ghub--auth("api.github.com" forge "<my_work_email>" nil)
#f(compiled-function () #<bytecode 0x1ff25b76a2f1>)()
ghub--retrieve("{\"query\":\"query ($owner:String!, $name:String!) {\\..." #s(ghub--req :url #s(url :type "https" :user nil :password nil :host "api.github.com" :portspec nil :filename "/graphql" :target nil :attributes nil :fullness t :silent nil :use-cookies t :asynchronous t) :forge nil :silent nil :method "POST" :headers #f(compiled-function () #<bytecode 0x1ff25b76a2f1>) :handler ghub--handle-response :unpaginate nil :noerror nil :reader nil :callback nil :errorback nil :value nil :extra nil))
ghub-request("POST" "/graphql" nil :payload "{\"query\":\"query ($owner:String!, $name:String!) {\\..." :headers nil :silent nil :username nil :auth forge :host "api.github.com" :callback nil :errorback nil :extra nil :value nil)
ghub-graphql("query ($owner:String!, $name:String!) {\n ..." ((owner . "motorefi") (name . "<private_repo_name>")) :username nil :auth forge :host "api.github.com")
ghub--repository-id("motorefi" "<private_repo_name>" :username nil :auth forge :host "api.github.com")
ghub-repository-id("motorefi" "<private_repo_name>" :host "api.github.com" :auth forge :forge github)
#f(compiled-function (class host owner name &optional stub) "Return (OUR-ID . THEIR-ID) of the specified repository.\nIf optional STUB is non-nil, then the IDs are not guaranteed to\nbe unique. Otherwise this method has to make an API request to\nretrieve THEIR-ID, the repository's ID on the forge. In that\ncase OUR-ID derives from THEIR-ID and is unique across all\nforges and hosts." #<bytecode 0x1ff25bc33a95>)(forge-github-repository "github.com" "motorefi" "<private_repo_name>" nil)
apply(#f(compiled-function (class host owner name &optional stub) "Return (OUR-ID . THEIR-ID) of the specified repository.\nIf optional STUB is non-nil, then the IDs are not guaranteed to\nbe unique. Otherwise this method has to make an API request to\nretrieve THEIR-ID, the repository's ID on the forge. In that\ncase OUR-ID derives from THEIR-ID and is unique across all\nforges and hosts." #<bytecode 0x1ff25bc33a95>) forge-github-repository ("github.com" "motorefi" "<private_repo_name>" nil))
forge--repository-ids(forge-github-repository "github.com" "motorefi" "<private_repo_name>" nil)
#f(compiled-function (&rest rest) "((host owner name) &optional remote demand)\n\nReturn the repository identified by HOST, OWNER and NAME." #<bytecode 0x1ff25bc3660d>)(("github.com" "motorefi" "<private_repo_name>") nil create)
apply(#f(compiled-function (&rest rest) "((host owner name) &optional remote demand)\n\nReturn the repository identified by HOST, OWNER and NAME." #<bytecode 0x1ff25bc3660d>) ("github.com" "motorefi" "<private_repo_name>") (nil create))
#f(compiled-function (arg &rest args) #<bytecode 0x1ff25757d1e9>)(("github.com" "motorefi" "<private_repo_name>") nil create)
apply(#f(compiled-function (arg &rest args) #<bytecode 0x1ff25757d1e9>) (("github.com" "motorefi" "<private_repo_name>") nil create))
forge-get-repository(("github.com" "motorefi" "<private_repo_name>") nil create)
#f(compiled-function (url &optional remote demand) "Return the repository at URL." #<bytecode 0x1ff25bc35a91>)("git@github.com:motorefi/<private_repo_name>.git" nil create)
apply(#f(compiled-function (url &optional remote demand) "Return the repository at URL." #<bytecode 0x1ff25bc35a91>) "git@github.com:motorefi/<private_repo_name>.git" (nil create))
#f(compiled-function (arg &rest args) #<bytecode 0x1ff25757d1e9>)("git@github.com:motorefi/<private_repo_name>.git" nil create)
apply(#f(compiled-function (arg &rest args) #<bytecode 0x1ff25757d1e9>) ("git@github.com:motorefi/<private_repo_name>.git" nil create))
forge-get-repository("git@github.com:motorefi/<private_repo_name>.git" nil create)
forge-add-repository("git@github.com:motorefi/<private_repo_name>.git")
funcall-interactively(forge-add-repository "git@github.com:motorefi/<private_repo_name>.git")
call-interactively(forge-add-repository record nil)
command-execute(forge-add-repository record)
counsel-M-x-action("forge-add-repository")
ivy-call()
ivy-read("M-x " ("toggle-debug-on-error" "forge-add-repository" "delete-file" "auth-source-forget-all-cached" "forge-forge.remote" "forge-reset-database" "forge-list-repositories" "package-install" "markdown-mode" "query-replace" "dired-do-touch" "magit-branch-create" "forge-remove-repository" "org-md-export-as-markdown" "cd" "5x5" "amx" "arp" "dbx" "dig" "erc" "ert" "eww" "ftp" "gdb" "irc" "jdb" "lsp" "man" "mpc" "pdb" "pwd" "rsh" "sdb" "sly" "xdb" "calc" "diff" "dirs" "ffap" "gnus" "grep" "help" "ielm" "info" "life" "lsp!" "mail" "mpuz" "mu4e" ...) :predicate counsel--M-x-externs-predicate :require-match t :history counsel-M-x-history :action counsel-M-x-action :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
counsel-M-x()
funcall-interactively(counsel-M-x)
call-interactively(counsel-M-x nil nil)
command-execute(counsel-M-x) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
Use your github username instead of |
Beta Was this translation helpful? Give feedback.
-
You should then get the prompt:
and after answering that also:
However, that won't do any good, because we already established that you are using the correct value for that. If however you get a prompt like:
Then something is wrong. |
Beta Was this translation helpful? Give feedback.
-
Have you seen https://github.com/magit/forge/wiki/Common-mistakes? |
Beta Was this translation helpful? Give feedback.
You should then get the prompt:
and after answering that also:
However, that won't do any good, because we already established that you are using the correct value for that.
If however you get a prompt like:
Then something is wrong.