grafana / github-datasource

Grafana data source plugin using the Github API to retrieve and visualize Github data.
https://grafana.com/grafana/plugins/grafana-github-datasource/
Apache License 2.0
242 stars 53 forks source link

Workflows query type issue #318

Closed Myastr0 closed 3 months ago

Myastr0 commented 3 months ago

Hey, first thank you for all you work on this 💪

I recently encounter an error using the "Workflows" query type which return a 404 Error

https://api.github.com/repos/<my-org>/<my-repo>/actions/workflows?per_page=1000: 404 Not Found []

As I saw in the Github Rest API documentation, the max value for the per_page property seems to be 100 and here it's defined as 1000 and I don't see any way to configure it.

I've check the permission configuration and I'm able to retrieve workflows through curl using the Github PAT that I use in the datasource, so I suppose that my error seems to be related to this misconfigured parameters.

Your grafana datasource helps us a lot in my company, and it could be a great achievment to have workflows stats directly in grafana 🙌 .

ivanahuckova commented 3 months ago

Fixed by https://github.com/grafana/github-datasource/pull/322