Skip to content
Discussion options

You must be logged in to vote

Hi @ns-manojs

I looked into your question about Branch Protection and the missing mergeQueue and restrict pushes fields in GraphQL and thought I would share what I found. Hopefully this helps point you in the right direction.


Why mergeQueue is missing in BranchProtectionRule

The GraphQL BranchProtectionRule object does not include a mergeQueue field. Merge Queue is not exposed in that part of the schema. The only accessible mergeQueue field in GraphQL exists at the repository level, where you can query current entries, their state, position, and related data. There is no GraphQL schema field that lets you check if Merge Queue is enabled for a specific branch protection rule. (GitHub Docs,

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ns-manojs
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage inactive This discussion has been automatically marked as inactive. This was formerly labeled stale.
2 participants