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

Make graphql closer to cli #892

Merged
merged 4 commits into from
Feb 24, 2025

Conversation

wd60622
Copy link
Collaborator

@wd60622 wd60622 commented Feb 24, 2025

Describe what this PR does / why we need it

This allows use of graphql API to be a bit closer to the CLI

For instance, gh api graphql -f query=<query> -F login=<login> -F repo=<repo> is :

local gh = require "octo.gh"

gh.api.graphql {
  f = { query = query },  
  F = { login = login, repo = repo }, 
}

The previous behavior still exists:

gh.api.graphql {
  query = query, 
  fields = { login = login, repo = repo },
}

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

Checklist

  • Passing tests and linting standards
  • Documentation updates in README.md and doc/octo.txt

@wd60622 wd60622 merged commit 8141614 into pwntester:master Feb 24, 2025
3 checks passed
@wd60622 wd60622 deleted the make-graphql-closer-to-cli branch February 24, 2025 10:40
@wd60622 wd60622 added the enhancement New feature or request label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant