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

Kĩ thuật điện tử #5088

Closed
1 task done
phamviethoan opened this issue Apr 6, 2021 · 0 comments
Closed
1 task done

Kĩ thuật điện tử #5088

phamviethoan opened this issue Apr 6, 2021 · 0 comments
Labels
invalid This issue/PR is invalid

Comments

@phamviethoan
Copy link

phamviethoan commented Apr 6, 2021

Tôi đang cố gắng tìm một GraphQL tương đương với /user/repostài nguyên: https://developer.github.com/v3/repos/#list-your-repositories 125

Liệt kê các kho lưu trữ mà người dùng đã xác thực có quyền rõ ràng (: read,: write hoặc: admin) để truy cập.

Tôi đã thử làm theo truy vấn nhưng điều đó chỉ trả về các kho lưu trữ trong tài khoản của tôi chứ không phải các kho lưu trữ khác mà tôi có quyền truy cập (kho lưu trữ tổ chức - cả công khai và riêng tư):

{
viewer {
repositories(first: 100, after: properCursorHereOrOmitIfFirstPage, orderBy: {field:NAME, direction:ASC}) {
pageInfo {hasNextPage, endCursor}
nodes {
name
url
isPrivate
owner {
login
}
defaultBranchRef {
name
}
}
}
}
}
BIÊN TẬP:

Tôi cũng đã cố gắng sử dụng các liên kết nhưng không thành công - vẫn chỉ trả về các kho lưu trữ trực tiếp trong tài khoản “jumarko” của tôi:

{
viewer {
repositories(first: 100, affiliations: [OWNER, COLLABORATOR, ORGANIZATION_MEMBER]) {
totalCount
pageInfo {
endCursor
hasNextPage
}
nodes{
name
owner {
login
}
}
}
}
}
ĐƯỢC GIẢI QUYẾT BỞI OHJAMES TRONG BÀI # 10

Tasks

  1. SME reviewed content more-information-needed pages
@phamviethoan phamviethoan added the engineering Will involve Docs Engineering label Apr 6, 2021
@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Apr 6, 2021
@chiedo chiedo removed the engineering Will involve Docs Engineering label Apr 6, 2021
@janiceilene janiceilene added invalid This issue/PR is invalid and removed triage Do not begin working on this issue until triaged by the team labels Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This issue/PR is invalid
Projects
None yet
Development

No branches or pull requests

3 participants