Skip to content

Replace dynamically constructed GraphQL query strings with githubv4 library #757

@mislav

Description

@mislav

This is part of an incremental transition from a hand-rolled to a more sophisticated GraphQL query + parsing mechanism.

  • RepoNetwork
    err := client.GraphQL(fmt.Sprintf(`
  • PullRequestList

    cli/api/queries_pr.go

    Lines 523 to 525 in c0c2862

    // If assignee was specified, use the `search` API rather than
    // `Repository.pullRequests`, but this mode doesn't support multiple labels
    if assignee, ok := vars["assignee"].(string); ok {

Follow up to #719
Ref. #190

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLItech-debtA chore that addresses technical debt

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions