summaryrefslogtreecommitdiff
path: root/modules/3-gh/open-items.gql
blob: e7fa240a0dfa3e518ad18788abea8628c4672e88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
fragment repoView on Repository {
  name
  pullRequests(first: 100, states: OPEN) {
    nodes { title url }
  }
  issues(first: 100, states: OPEN) {
    nodes { title url }
  }
}

query OpenItems($user: String!) {
  user(login: $user) {
    repositories(first: 100) {
      nodes { ...repoView }
    }

    organizations(first: 10) {
      nodes {
        repositories(first: 100) {
          nodes { ...repoView }
        }
      }
    }
  }
}