Skip to content
Discussion options

You must be logged in to vote

I do not think that you can fetch both members and outside contributors in the same query. Below, you'll find the queries to fetch both groups.

query OrganizationMembers($org: String!) {
  organization(login: $org) {
    membersWithRole {
      nodes {
        user {
          login
        }
      }
    }
  }
}

query RepositoryContributors($org: String!, $repo: String!) {
  repository(owner: $org, name: $repo) {
    collaborators {
      nodes {
        login
      }
    }
  }
}

Hope this helps. Cheers. 🍺

🍀

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@utkarsha-ubale-sp
Comment options

@b8zeek
Comment options

@utkarsha-ubale-sp
Comment options

@utkarsha-ubale-sp
Comment options

Comment options

You must be logged in to vote
4 replies
@ghostinhershell
Comment options

@b8zeek
Comment options

@ghostinhershell
Comment options

@b8zeek
Comment options

Answer selected by utkarsha-ubale-sp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage
3 participants