Skip to content
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

refactor: Rename GraphQL query methods #6732

Merged
merged 1 commit into from
Jul 12, 2020

Conversation

zharinov
Copy link
Collaborator

Ref #6686

Copy link
Collaborator

@rarkins rarkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to instead combine these into a single graphql function with optional fieldName param to distinguish between them?

let result = null;

const path = 'graphql';

const {
acceptHeader: accept = 'application/vnd.github.merge-info-preview+json',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it a mistake to have it in this file? Planning to correct it in a follow-up PR?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, after initRepo refactoring PR

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it requires a fix or change to how headers are handled in this graphql, can it be done before?

{ paginate: false }
);
const nodes = await githubApi.queryRepoField<any>(query, 'pullRequests', {
paginate: false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI I'm surprised to see pagination false for these

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll enable it in separate PR then

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to think why it was left with no pagination though

@rarkins rarkins merged commit e2af296 into renovatebot:master Jul 12, 2020
@rarkins rarkins deleted the refactor/github-http-graphql branch July 12, 2020 06:10
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 21.28.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants