@neriros/ralphy 2.13.12 → 2.13.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +5 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -70507,13 +70507,16 @@ async function updateIssueState(apiKey, issueId, stateId) {
|
|
|
70507
70507
|
async function fetchIssueLabels(apiKey, teamKey) {
|
|
70508
70508
|
const query = `query Labels($team: String!) {
|
|
70509
70509
|
issueLabels(filter: { team: { key: { eq: $team } } }, first: 250) {
|
|
70510
|
-
nodes { id name }
|
|
70510
|
+
nodes { id name parent { name } }
|
|
70511
70511
|
}
|
|
70512
70512
|
}`;
|
|
70513
70513
|
const data = await linearRequest(apiKey, query, {
|
|
70514
70514
|
team: teamKey
|
|
70515
70515
|
});
|
|
70516
|
-
return data.issueLabels.nodes
|
|
70516
|
+
return data.issueLabels.nodes.map((l) => ({
|
|
70517
|
+
id: l.id,
|
|
70518
|
+
name: l.parent ? `${l.parent.name}:${l.name}` : l.name
|
|
70519
|
+
}));
|
|
70517
70520
|
}
|
|
70518
70521
|
async function fetchTeamIdByKey(apiKey, teamKey) {
|
|
70519
70522
|
const query = `query TeamId($key: String!) {
|
package/package.json
CHANGED