1

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*

Daniel Rearden
  • 80,636
  • 11
  • 185
  • 183

1 Answers1

0

It seems this issue got fixed:

Query with output in GitHub GraphQL Explorer

hansmbakker
  • 1,108
  • 14
  • 29