Skip to content

Commit 718134a

Browse files
committedSep 12, 2024
refactor: modify commit associatedPRs and relatedIssues label property data type.
BREAKING CHANGE: the commit associatedPR and relatedIssues `label` prop is now an array of objects with more properties
1 parent b8f0c9c commit 718134a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed
 

‎lib/success.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ const baseFields = `
378378
url
379379
name
380380
color
381+
description
382+
isDefault
381383
}
382384
}
383385
milestone {
@@ -513,7 +515,16 @@ function buildIssuesOrPRsFromResponseNode(responseNodes, type = "ISSUE") {
513515
number: node.number,
514516
title: node.title,
515517
body: node.body,
516-
labels: node.labels?.nodes.map((label) => label.name),
518+
labels: node.labels?.nodes.map((label) => {
519+
return {
520+
id: label.id,
521+
url: label.url,
522+
name: label.name,
523+
color: label.color,
524+
description: label.description,
525+
default: label.isDefault,
526+
};
527+
}),
517528
html_url: node.url,
518529
created_at: node.createdAt,
519530
updated_at: node.updatedAt,

0 commit comments

Comments
 (0)
Please sign in to comment.