-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Gitea as VCS provider #8364
Comments
Hello @steko, thanks for opening this issue. I just read https://codeberg.org/Codeberg/Community/issues/486 and go-gitea/gitea#7487 as well. We got a similar request a few months ago for Launchpad #8137 and, although we are trying not to support specific platforms, we are definitely happy to make our generic webhook more useful. As you already saw, at the moment it expects a We will comment on this issue when we have more updates. |
(Edit: forgot to add the links to the external issues) |
Hi! What would be the changes required to the Read the Docs generic webhook to be compatible with what Gitea sends/expects? |
From my very limited understanding, the readthedocs.org/readthedocs/api/v2/views/integrations.py Lines 329 to 353 in bc3e147
|
👍🏼 That is what I understood from your research (*), but I'm not sure why it's not working currently if it works in the same way. That's why I was asking what's what we need to modify in our generic webhook to make Gitea work. (*) I haven't into the code or deeper in the problem yet. |
Apart from the token, we need to handle the payload as well, which is different between providers, that's the main issue here I think, not the secret token (we only generate/use one when your account is connected)
Does gitea use the same payload as github? If so, you can just create a github type of integration on rtd and that should work. |
Gitea does use the same payload as GitHub with The request headers are like the following and there is no
I'm really happy about the outcome and I would like to thank all developers who chimed in with their experience and suggestions ✨ I think a better UI for Gitea (and Launchpad) would be for the best! |
go-gitea/gitea#16176 was merged a few days ago, perhaps Codeberg is not at the latest version? In any case, glad it works! I think this shows that, with supposedly little work, we can improve the experience for a bunch of providers at once. |
mentioned pull is not in latest stable (it's in v1.15.0 witch has it's second rc at the moment) |
We can probably mention in the docs that you can create a github integration and use it for gitea as a workaround. We also have been talking about exposing the secret token for manually created integrations. |
Can I prepare a pull request for this? Should Launchpad be mentioned as well? |
Sure, about launchpad I'm not sure if they share them same payload as github/gitea |
No, Launchpad uses a different payload, so the same approach won't work. |
Following discussion at readthedocs#8364
v1.15.2 is out 🚀 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Unfortunately, we are not going to implement full support for Gitea soon. We weren't able to prioritize this and put it into our roadmap. Besides, the work suggested to update our documentation was done in #8402 and, at least, there is a workaround to set up a Gitea repository on Read the Docs. I'm closing this issue for now but we can come back in the future if there is more people interested in fully supporting Gitea and if we can find some time to prioritize it. Thanks you all for helping debugging this and working towards a workaround 😄 |
finansbank |
Details
Expected Result
The source repository of iosacal is hosted on Codeberg, a community-run Gitea instance with more than 10.000 active repositories. I would like Read the Docs to do automated builds when I push updates to the repository, just like with GitHub repositories. Ideally this would apply to any Gitea instance.
Actual Result
The generic webhook that can be created from the Read the Docs admin dashboard doesn't work, because there is no way to configure a single repository on Gitea with the secret token. The issue is described in more detail on the Codeberg community issue tracker with regard to the current webhooks available in Gitea.
The text was updated successfully, but these errors were encountered: