-
-
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
Provide an API to query the build status by commit #872
Comments
Neat. We currently don't record the commit hash for builds. This is a good idea, and would allow that kind of API. |
Any news on this? Any way I can help? |
New (simpler?) idea: Is it possible to insert the commit hash in the sphinx html? If it can be done already, then I just need to download the the page and check that it matches the version my latest hash. |
This should be part of newly built documentation with our theme already, we pass the commit hash in with via the API. We are storing the commit hash on the build object now, but we don't expose the commit as a first class endpoint in the api. |
You can find similar API endpoints here: https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/restapi/views/core_views.py Adding a |
This looks like it might have some overlap with #2251 which also adds commit ids to builds. |
@agjohnson This "good first issue" is quite old. Can we improve the solution to fixing it, to encourage contribution? Same with #1045. |
Would it be possible to get a more up to date information on this issue? I'm interested to have a look. Thanks. |
Thanks for your interest. I think the original aspect of the issue is still valid: "build an API endpoint that receive a project and a commit hash and return the status (failed/success) of that build" The So, I think we have all the information to create that endpoint. This could be next to the others at this file: https://github.com/rtfd/readthedocs.org/blob/1af444173481df9a7b16e015fc6b12abe8155e7e/readthedocs/restapi/views/model_views.py @Alig1493 let me know if you are able to start with that info or not. Please, keep us updated on this :) Thanks! |
Will the api endpoint be under v1 or v2? |
v2 is the right place. |
@humitos There are already |
Yes. What I understood from the original report is to have the ability that given the sha and the project you can know the status of that build. Now, a build id is needed, that you don't know how to get it from a sha. Makes sense? |
@humitos I have understand. I wanted to explain that, there are already a endpoint for |
What about |
Hey, I would like to contribute to this project. Can I take up this issue if no one is currently working on it? |
@shaddygarg It has been already worked on by @Alig1493 |
#3544 (just linking the PR here) |
In order to do a check before release that everything is ok, I would like to have a way to obtain the current build status for a given commit. So, in addition to:
also have this:
or
Is this possible right now?
The text was updated successfully, but these errors were encountered: