I'm trying to query the branch protection rules which has the similar patterns using wildcards. Any suggestion are welcome.
query {
repository(owner:"user",name: "repo") {
branchProtectionRules(first: 10) {
nodes {
pattern
}
}
}
}
O/P:
{
"data": {
"repository": {
"branchProtectionRules": {
"nodes": [
{
"pattern": "release"
},
{
"pattern": "release-220"
}
]
}
}
}
}
Is there a way to find the pattern fields with release*