feat(plugins/projects): add support for GitHub projects beta (#1178)
This commit is contained in:
@@ -1,15 +1,23 @@
|
||||
query ProjectsRepository {
|
||||
$account(login: "$user") {
|
||||
repository(name: "$repository") {
|
||||
project(number: $id) {
|
||||
name
|
||||
body
|
||||
projectV2(number: $id) {
|
||||
name: title
|
||||
body: shortDescription
|
||||
updatedAt
|
||||
progress {
|
||||
doneCount
|
||||
inProgressCount
|
||||
todoCount
|
||||
enabled
|
||||
items(first: 4, orderBy: {field: POSITION, direction: ASC}) {
|
||||
totalCount
|
||||
nodes {
|
||||
type
|
||||
isArchived
|
||||
fieldValues(last: 100) {
|
||||
nodes {
|
||||
... on ProjectV2ItemFieldTextValue {
|
||||
text
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
17
source/plugins/projects/queries/repository.legacy.graphql
Normal file
17
source/plugins/projects/queries/repository.legacy.graphql
Normal file
@@ -0,0 +1,17 @@
|
||||
query ProjectsRepositoryLegacy {
|
||||
$account(login: "$user") {
|
||||
repository(name: "$repository") {
|
||||
project(number: $id) {
|
||||
name
|
||||
body
|
||||
updatedAt
|
||||
progress {
|
||||
doneCount
|
||||
inProgressCount
|
||||
todoCount
|
||||
enabled
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,24 @@
|
||||
query ProjectsUser {
|
||||
$account(login: "$login") {
|
||||
projects(last: $limit, states: OPEN, orderBy: {field: UPDATED_AT, direction: DESC}) {
|
||||
projectsV2(last: $limit, orderBy: {field: UPDATED_AT, direction: DESC}) {
|
||||
totalCount
|
||||
nodes {
|
||||
name
|
||||
body
|
||||
name: title
|
||||
body: shortDescription
|
||||
updatedAt
|
||||
progress {
|
||||
doneCount
|
||||
inProgressCount
|
||||
todoCount
|
||||
enabled
|
||||
items(first: 4, orderBy: {field: POSITION, direction: ASC}) {
|
||||
totalCount
|
||||
nodes {
|
||||
type
|
||||
isArchived
|
||||
fieldValues(last: 100) {
|
||||
nodes {
|
||||
... on ProjectV2ItemFieldTextValue {
|
||||
text
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
18
source/plugins/projects/queries/user.legacy.graphql
Normal file
18
source/plugins/projects/queries/user.legacy.graphql
Normal file
@@ -0,0 +1,18 @@
|
||||
query ProjectsUserLegacy {
|
||||
$account(login: "$login") {
|
||||
projects(last: $limit, states: OPEN, orderBy: {field: UPDATED_AT, direction: DESC}) {
|
||||
totalCount
|
||||
nodes {
|
||||
name
|
||||
body
|
||||
updatedAt
|
||||
progress {
|
||||
doneCount
|
||||
inProgressCount
|
||||
todoCount
|
||||
enabled
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user