jenkinsci / jenkinsci/github-branch-source-plugin
[JENKINS-64016] Add repo filtering by graphql query using GitHub search
- Dominant language
- Java
- Stars
- 217
- Forks
- 398
- Avg merge
- 30m
- Merged PRs (30d)
- 1
Description
Add support for providing a search query using the graph ql search endpoint
example query:
query findByGitHubSearch($queryString: String!) {
search(query: $queryString, type: REPOSITORY, first: 100) {
repositoryCount
edges {
node {
... on Repository {
name
}
}
}
}
}
where query has:
{"queryString": "user:my-user keyword" }
the user part of the query should be automatically added by the plugin
This PR is related: https://github.com/jenkinsci/github-branch-source-plugin/pull/344
but it would be good to have general purpose search as well not just topics
---
Originally reported by
timja, imported from: Add repo filtering by graphql query using GitHub search
Raw content of original issue
Add support for providing a search query using the graph ql search endpoint
example query:
query findByGitHubSearch($queryString: String!) {
search(query: $queryString, type: REPOSITORY, first: 100) {
repositoryCount
edges {
node {
... on Repository {
name
}
}
}
}
}where query has:
{"queryString": "user:my-user keyword" }the user part of the query should be automatically added by the plugin
This PR is related: https://github.com/jenkinsci/github-branch-source-plugin/pull/344
but it would be good to have general purpose search as well not just topics
Contributor guide
Assessment
This issue has not been assessed yet.