-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove merge queue from query is feature is disabled #370
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a bunch for making this change! I think the condition for when to add the MergeQueue to the operation string needs to be inverted
github/githubclient/queries.graphql
Outdated
@@ -17,7 +18,7 @@ query PullRequests( | |||
repository { | |||
id | |||
} | |||
mergeQueueEntry { | |||
mergeQueueEntry @skip(if: $use_merge_queue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here with inverting condition
mergeQueueEntry @skip(if: $use_merge_queue) { | |
mergeQueueEntry @skip(if: !$use_merge_queue) { |
@@ -91,7 +92,7 @@ func (c *gqlclient) PullRequests(ctx context.Context, | |||
repository { | |||
id | |||
} | |||
mergeQueueEntry { | |||
mergeQueueEntry @skip(if: $use_merge_queue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the condition needs to be inverted
mergeQueueEntry @skip(if: $use_merge_queue) { | |
mergeQueueEntry @skip(if: !$use_merge_queue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is probably generated from the above. Still completely new to Go
Ah, you are correct. My bad. Will flip it. |
I tested it locally when building this branch and I get the error for merge queue. I think we only want to generate the MergeQueue section if |
207cde1
to
261530e
Compare
Should be correct now. Good catch. |
Not sure if I'm doing something wrong with my local build, but I'm getting:
|
I guess the skip directive doesn't work in this case, will try another approach. |
👍, thanks for the help and spr in general, I really enjoy using it! |
261530e
to
742ff86
Compare
Much more involved fix pushed. I think this one should work for you. Let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and confirmed it is working for me. Thanks!
fixes #356 commit-id:0219e1da
742ff86
to
f9e4eb6
Compare
fixes #356
commit-id:0219e1da