我如何才能看到使用GitHub GraphQL API在项目中的列之间移动了问题?
我想使用GitHub GraphQLAPI确定卡何时从一列移动到另一列 我可以使用如下查询列出项目板(例如)中的所有问题:我如何才能看到使用GitHub GraphQL API在项目中的列之间移动了问题?,github,graphql,github-api,github-graphql,github-projects,Github,Graphql,Github Api,Github Graphql,Github Projects,我想使用GitHub GraphQLAPI确定卡何时从一列移动到另一列 我可以使用如下查询列出项目板(例如)中的所有问题: { organization(login: "twbs") { repository(name: "bootstrap") { project(number: 4) { columns(first: 5) { nodes { name cards(first: 10)
{
organization(login: "twbs") {
repository(name: "bootstrap") {
project(number: 4) {
columns(first: 5) {
nodes {
name
cards(first: 10) {
nodes {
content {
__typename
... on Issue {
title
url
timeline(first: 10) {
nodes {
__typename
}
}
}
}
}
}
}
}
}
}
}
}
项目中有,但与项目相关的事件不在其中:
...
{
"content": {
"__typename": "Issue",
"title": "Remove inner white border effect on popovers",
"url": "https://github.com/twbs/bootstrap/issues/23763",
"timeline": {
"nodes": [
{
"__typename": "RenamedTitleEvent"
},
{
"__typename": "IssueComment"
},
{
"__typename": "LabeledEvent"
},
{
"__typename": "LabeledEvent"
},
{
"__typename": "IssueComment"
},
{
"__typename": "CrossReferencedEvent"
},
{
"__typename": "CrossReferencedEvent"
},
{
"__typename": "LabeledEvent"
},
{
"__typename": "ClosedEvent"
},
{
"__typename": "CrossReferencedEvent"
}
]
}
}
...
我可以看到问题何时在GitHub网页上的列之间移动:
我只是在API中看不到这些事件。这是缺少的功能吗?有没有其他方法获取这些信息?(上下文:我想构建一个。)您需要添加项目事件详细信息的接受标头()和问题预览()的接受标头 然后,您可以使用
timelineItems
并运行如下查询:
query {
repository(owner: "buildo", name: "react-components") {
issue(number: 1321) {
timelineItems(first: 10) {
nodes {
__typename
}
}
}
}
}
这将返回:
{
"repository": {
"issue": {
"timelineItems": {
"nodes": [
{
"__typename": "ConvertedNoteToIssueEvent"
},
{
"__typename": "AssignedEvent"
},
{
"__typename": "LabeledEvent"
},
{
"__typename": "MovedColumnsInProjectEvent"
}
]
}
}
}
}
有一个神秘的
MovedColumnsInProjectEvent
但是…很明显。嗨@danvk,你找到解决这个问题的方法了吗?github社区链接已经失效,我有几乎完全相同的用例,仅仅知道有一个MovedColumnsInProjectEvent并没有真正的帮助。有没有办法得到这个物体?