Fetch private org projects #2691
Answered
by
gr2m
ghosty2004
asked this question in
Q&A
-
Hi 👋 |
Beta Was this translation helpful? Give feedback.
Answered by
gr2m
Jun 10, 2024
Replies: 1 comment
-
You have to make sure you have the right permission on your token ( Then you use GraphQL, e.g. for org projects query orgProjects($org:String!) {
organization(login:$org) {
projectsV2(first:100) {
nodes {
title
url
public
}
}
}
} There is no way to filter out projects directly, so you would need to do that after loading all of them |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ghosty2004
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have to make sure you have the right permission on your token (
read:org
scope, ororganization_projects:read
permission).Then you use GraphQL, e.g. for org projects
There is no way to filter out projects directly, so you would need to do that after loading all of them