Skip to content

Commit 5f744fb

Browse files
committed
feat: including issue id in the response
1 parent 1562a57 commit 5f744fb

6 files changed

+11
-2
lines changed

gh-cli/add-sub-issue-to-issue.sh

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ mutation($parrentIssueId: ID!, $childIssueId: ID!) {
5555
title
5656
number
5757
url
58+
id
5859
issueType {
5960
name
6061
}
@@ -63,6 +64,7 @@ mutation($parrentIssueId: ID!, $childIssueId: ID!) {
6364
title
6465
number
6566
url
67+
id
6668
issueType {
6769
name
6870
}

gh-cli/get-parent-issue-of-issue.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ query($issueId: ID!) {
4141
title
4242
number
4343
url
44+
id
4445
issueType {
4546
name
4647
}
@@ -61,7 +62,8 @@ formatted_parent_issue=$(echo "$parent_issue" | jq -r '
6162
title: .title,
6263
number: .number,
6364
url: .url,
64-
issueType: .issueType
65+
id: .id,
66+
issueType: .issueType.name
6567
}')
6668

6769
# Print the formatted parent issue details

gh-cli/get-sub-issues-of-issue.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ query($issueId: ID!, $endCursor: String) {
4343
title
4444
number
4545
url
46+
id
4647
issueType {
4748
name
4849
}
@@ -66,7 +67,7 @@ fi
6667
combined_result=$(echo "$sub_issues" | jq -s '
6768
{
6869
totalCount: .[0].data.node.subIssues.totalCount,
69-
issues: (map(.data.node.subIssues.nodes) | add)
70+
issues: (map(.data.node.subIssues.nodes) | add | map(.issueType = .issueType.name))
7071
}')
7172

7273
# Print the combined result as a colorized JSON object

gh-cli/remove-issue-issue-type.sh

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ mutation($issueId: ID!) {
5252
title
5353
number
5454
url
55+
id
5556
issueType {
5657
name
5758
}

gh-cli/remove-sub-issue-from-issue.sh

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ mutation($parrentIssueId: ID!, $childIssueId: ID!) {
7777
title
7878
number
7979
url
80+
id
8081
issueType {
8182
name
8283
}
@@ -85,6 +86,7 @@ mutation($parrentIssueId: ID!, $childIssueId: ID!) {
8586
title
8687
number
8788
url
89+
id
8890
issueType {
8991
name
9092
}

gh-cli/update-issue-issue-type.sh

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ mutation($issueId: ID!, $issueTypeId: ID!) {
6060
title
6161
number
6262
url
63+
id
6364
issueType {
6465
name
6566
}

0 commit comments

Comments
 (0)