Skip to content

Commit 2e6f589

Browse files
Issue #22597 - Migrate script that generates release notes to ziro-cli (PR #45)
* Save work * Correct version * Rename
1 parent 873b210 commit 2e6f589

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
query GetIssuesWithRelease($issueIds: [ID!]!) {
2+
issues(ids: $issueIds) {
3+
id
4+
releases(first: 1) {
5+
nodes {
6+
id
7+
}
8+
}
9+
}
10+
}

src/main/kotlin/zenhub/ZenHubClient.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,12 @@ class ZenHubClient(val zenhubWorkspaceId: String = DEFAULT_WORKSPACE_ID) : AutoC
758758
apolloClient.mutation(query).toFlow().single().data?.createIssue?.issue?.issueFragment
759759
}
760760

761+
fun mapIssueIdToHasRelease(issueIds: Set<String>): Map<String, Boolean> = runBlocking {
762+
val query = GetIssuesWithReleaseQuery(issueIds.toList())
763+
val issues = apolloClient.query(query).toFlow().single().data?.issues ?: emptyList()
764+
issues.associate { issue -> issue.id to issue.releases.nodes.isNotEmpty() }
765+
}
766+
761767
private fun searchClosedIssues(
762768
filters: IssueSearchFiltersInput,
763769
after: String?

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.3.0
1+
9.4.0

0 commit comments

Comments
 (0)