Extracting only open issues from github api without any pull request using ruby on rails

I am building an application which should extract all the open issues from any of the directory of github using github-api gem in ROR. The problem is that it is also extracting pull requests from the repository. Is there any way to extract only open issues.

here is the blog from where I am following.
here is another

  • Git: How to recover a file after a pull / failed auto merge?
  • Switching a branch after aborting current changes in git
  • Git post-receive hook loop though all commits
  • What precisely happens when deleting a branch in Git
  • Deploy Rails app to Heroku without using git?
  • Visual Studio Code push automatically
  • code
    git = Github.new oauth_token:
    issues = git.issues.list user: 'Shippable', repo: 'support', state: 'open'

    are there any other filter via which only allows open issues to extract.

  • create version.txt file in project dir via build.gradle task
  • Move Git LFS tracked files under regular Git
  • Git create from existing remote source
  • GitHub: Reopening a merged pull request
  • Value and usage of Git-Flow's tag-prefix feature?
  • Git Error Commit History
  • One Solution collect form web for “Extracting only open issues from github api without any pull request using ruby on rails”

    Filter them after you fetched them using the pull_request keyword. Here is what the API docs say:

    This endpoint may also return pull requests in the response. If an issue is a pull request, the object will include a pull_request key.

    Git Baby is a git and github fan, let's start git clone.