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
[david] Support selecting a branch #4474
Comments
Do you know what the request to David would be to get the data? The typical upstream endpoint Shields uses to get the data is: Unfortunately David also returns an http 500 error for the "not found" use case (vs. the typical 404), and I'm getting that same http 500 error on the link you provided in the issue description: Is |
I'm so sorry. Actually, I renamed that branch and I forgot to update it here. These do exist:
And these endpoints return content: |
That explains it then, thanks @umarcor! To address this we'd need to update the route for our David service to accept an optional branch parameter. At the moment I'm not sure whether it'd be best to do so via a route param or query param. Generally Shields routes accept a |
FYI, in the new david status API the branch is a query string parameter called |
@alanshaw, I just tried
See https://github.com/umarcor/hwstudio/blob/vue/threejs/main/package.json. Am I missing something? This seems to work, tho: |
@alanshaw let me know that I was missing the service specifier ( @calebcartwright would the new API work for supporting branches (ref) in shields.io? |
Yes, see #5968, but there's been some initial challenges with other portions of the API. It looks like the only remaining issue is that the API is returning 503 status codes in not found scenarios, and Shields treats upstream 500 responses in a very specific way given the reliance we have on those upstream services. Hopefully the new API will get sorted to send 404 responses like the old/current API does |
david-dm allows to specify a branch as an additional item in the URL. This can be combined with the
path
query parameter. For example: https://david-dm.org/umarcor/hwstudio/actions?path=app Unfortunately, this feature seems not to be supported in this repo:/david/:kind?/:user/:repo?path=packages%2Fbabel-core
. I tried https://img.shields.io/david/umarcor/hwstudio/actions.svg?path=app&longCache=true&style=flat-square&label=app%20deps.The text was updated successfully, but these errors were encountered: