michelengelen commented on issue #7510:
URL:
https://github.com/apache/incubator-devlake/issues/7510#issuecomment-2134634153
Ok, thanks @klesh
I just tested the Github GraphQL for issues and it does indeed update the
`updated_at` value when you add and remove a label (sry for the long code
examples here):
Issue in its "original state":
```json
{
"data": {
"repository": {
"issue": {
"id": "I_kwDOD4Lzcc6KPqSy",
"updatedAt": "2024-05-28T07:51:48Z",
"labels": {
"totalCount": 2,
"nodes": [
{
"color": "ffffff",
"name": "component: data grid",
"description": "This is the name of the generic UI component,
not the React module!",
"id": "MDU6TGFiZWwyMjM0NzExNDY0"
},
{
"color": "c2e0c6",
"name": "status: waiting for maintainer",
"description": "These issues haven't been looked at yet by a
maintainer",
"id": "MDU6TGFiZWwyMjk5ODEyMTc3"
}
]
}
}
}
}
}
```
Issue after labels got added:
```json
{
"data": {
"repository": {
"issue": {
"id": "I_kwDOD4Lzcc6KPqSy",
"updatedAt": "2024-05-28T08:25:08Z",
"labels": {
"totalCount": 4,
"nodes": [
{
"color": "e11d21",
"name": "bug 🐛",
"description": "Something doesn't work",
"id": "MDU6TGFiZWwyMDI3MTk2OTU5"
},
{
"color": "ffffff",
"name": "component: data grid",
"description": "This is the name of the generic UI component,
not the React module!",
"id": "MDU6TGFiZWwyMjM0NzExNDY0"
},
{
"color": "c2e0c6",
"name": "status: waiting for maintainer",
"description": "These issues haven't been looked at yet by a
maintainer",
"id": "MDU6TGFiZWwyMjk5ODEyMTc3"
},
{
"color": "0465d6",
"name": "customization: css",
"description": "Design CSS customizability",
"id": "LA_kwDOD4Lzcc7zJLz0"
}
]
}
}
}
}
}
```
And here it is after removing the "bug" label again:
```json
{
"data": {
"repository": {
"issue": {
"id": "I_kwDOD4Lzcc6KPqSy",
"updatedAt": "2024-05-28T08:25:30Z",
"labels": {
"totalCount": 3,
"nodes": [
{
"color": "ffffff",
"name": "component: data grid",
"description": "This is the name of the generic UI component,
not the React module!",
"id": "MDU6TGFiZWwyMjM0NzExNDY0"
},
{
"color": "c2e0c6",
"name": "status: waiting for maintainer",
"description": "These issues haven't been looked at yet by a
maintainer",
"id": "MDU6TGFiZWwyMjk5ODEyMTc3"
},
{
"color": "0465d6",
"name": "customization: css",
"description": "Design CSS customizability",
"id": "LA_kwDOD4Lzcc7zJLz0"
}
]
}
}
}
}
}
```
Or am I looking at the wrong data?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]