Closed Official-James closed 1 month ago
hi @Official-James , as a quick check, does this work when you hardcode the name of the repository in the Query
field?
i mean writing into it the fixed repository:repo_name
?
Hi @gabor. Works fine with query repository:"repo_name"
Hi @Official-James, I've tried to reproduce your issue following the same setup you have, but in my case with grafana
repositories it works as expected.
Could you please share
$__multiVar(repo,$repo)
? In your examples you are using $__multiVar(repository,$repo)
which is not a valid github query based on https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requestsgrafana
repositories? Basically the same thing I did in screenshots? granana/grafana
would be test/test
. Or confidential/confidential-1-2-3
would be test/test-1-1-1
.) In this case, I am trying to see if something in name could be causing the issue - for example special characters. Thank you!
Thanks, @ivanahuckova. You are correct; my mistake. I have configured it per the documentation (and your comment) and can confirm that the multiVar
does not work on the Vulnerabilities query only. This is why I misconfigured it; I was troubleshooting. I have attached a video confirming that the query works on Pull Requests and not on Vulnerabilities, and using the existing fields works.
https://github.com/grafana/github-datasource/assets/67149897/4af71b5b-cc1c-423a-a993-b26c0f1fb92b
@Official-James While investigating the issue, I realised that GitHub does not support the query
parameter for vulnerabilityAlerts
query that we use. Therefore, in that PR, I am removing the query input, as it is misleading.
Additionally, if we want to implement this feature, GitHub would need to support query
for vulnerabilityAlerts
. If this would be beneficial for you, I recommend starting by writing a feature request here: https://github.com/orgs/community/discussions?discussions_q=is%3Aopen+vulnerabilityAlerts+.
I have provided more details in PR https://github.com/grafana/github-datasource/pull/323 that fixes the bug with showing the query input that should not be there.
I am trying to use the
$__multiVar
variable in the Pull Requests query without success. The example given has only been for the Issues query. Has this been tested or implemented on other query types?Below is the variable configuration
And this is the query I am running.
The result is no data. Run a single repo query shows the results fine, but I would like to see all the Pull Requests from all repos