Ludovic Courtès <l...@gnu.org> writes:

> Try ‘M-x fj-list-issues’ and ‘M-x fj-list-pulls’ from your Guix
> checkout.
>
> Your Git checkout must be configured with g...@codeberg.org:guix/guix.git
> (*without* “ssh://”) or https://codeberg.org/guix/guix.git as one of its
> remotes.

Okay, thank you.

I initially tried this using the https url:

```
git remote set-url origin https://codeberg.org/guix/guix.git
```

But when running fj-list-issues, etc., I get the error

```
helm-M-x-execute-command: I am Error: The target couldn't be found. Endpoint: 
repos/guix/guix.git/
```

If I use g...@codeberg.org:guix/guix.git instead, then I am able to list the 
issues, so that seems to be working. I tried creating an issue, and I got this 
error

```
user-error: I am Error: The target couldn't be found. Endpoint: 
repos/infrared/guix/
```

"infrared" is the name of my user. I see that the issue is, in fact, created, 
so I guess I'm good... but I'm curious what is going on with the weird error.

This is in my init.el:

```
(with-eval-after-load 'fj
  (setq fj-host "https://codeberg.org";)
  (setq fj-user "infrared")
  (setq fj-token
                (funcall (plist-get
                  (car
                   (auth-source-search :host "codeberg.org/api/v1"
                                           :user fj-user
                                           :type 'netrc))
                  :secret))))
```

And this is in my .authinfo:

```
machine codeberg.org login infrared password ****
```

I originally used "machine codeberg.org/api/v1" as instructed, but fj.el didn't 
seem to recognized that, and offered to add the shorter version, so I rolled 
with that.

-- 
Christopher Howard

Reply via email to