feat(plugins/projects): add support for GitHub projects beta (#1178)

This commit is contained in:
Simon Lecoq
2022-08-06 20:39:22 +02:00
committed by GitHub
parent cf21c67a39
commit 6c04a1ca5e
14 changed files with 222 additions and 47 deletions

View File

@@ -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
}
}
}
}
}
}
}

View File

@@ -0,0 +1,17 @@
query ProjectsRepositoryLegacy {
$account(login: "$user") {
repository(name: "$repository") {
project(number: $id) {
name
body
updatedAt
progress {
doneCount
inProgressCount
todoCount
enabled
}
}
}
}
}

View File

@@ -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
}
}
}
}
}
}
}

View 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
}
}
}
}
}