rafaelmardojai / forge-sparks

Get git forges notifications
MIT License
61 stars 7 forks source link

[ Feature request ] Codeberg #25

Closed 7system7 closed 5 months ago

7system7 commented 6 months ago

It would be nice to have access to the Codeberg.org's notifications. The page seems to be a modded Gitea instance, but sadly the Forge Sparks does not work w/ it. :disappointed:

image

Oh, and thank you for your work. This app is awesome! :partying_face:

rafaelmardojai commented 6 months ago

Codeberg is a Forgejo instance and should work with that (although they use almost the same code for GitHub since they have compatible APIs).

Maybe something got broken and need fixing, I already have my Codeberg account configured and I get notifications just fine, will try to remove it and re add it.

rafaelmardojai commented 6 months ago

Added it without problem :/.

That unexpected error is raised when the server returns an unexpected result when trying to get the account username, or if the server returned an unexpected http status (not 200 Success, 401 Unauthorized nor 403 Forbidden).

7system7 commented 6 months ago

Thank you for your time and quick response! Somehow, for me it does not work. :cry: I changed the instance to Forgejo but no success.

image

On the "Access tokens" list I see that, it wanted to use the key, but no success.

image

I will try tomorrow, sometimes things magically heal. :smile:

rafaelmardojai commented 6 months ago

If the issue persists, you can send me a temporary token privately to my email so I can debug the issue and fix it, then you can revoke the token.

7system7 commented 6 months ago

OK, why not, I sent it! Thank you in advance.

rafaelmardojai commented 6 months ago

For some reason I get the right error:

Captura desde 2024-01-07 14-57-22

You're missing the read:user scope, (you will also need read:issue when the app is trying to get more details like the status (open/close) of a notification subject). All the needed scopes are listed in the view.

For the next release I will try to get more info from the server to print more detailed error messages.

7system7 commented 6 months ago

Lol. After I added the scopes you mentioned, it started to work! Thank you! :partying_face: :champagne: