Skip to content

Commit 99faca8

Browse files
committed
Add release id
Signed-off-by: lishengbao <[email protected]>
1 parent bc3bb73 commit 99faca8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grimoire_elk_gitcode/enriched/gitcode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ def __get_rich_repo(self, item):
595595
rich_releases = []
596596
for release in repo['releases'] :
597597
rich_releases_dict = {}
598+
rich_releases_dict['id'] = release['target_commitish']
598599
rich_releases_dict['tag_name'] = release['tag_name']
599600
rich_releases_dict['target_commitish'] = release['target_commitish']
600601
rich_releases_dict['prerelease'] = release['prerelease']
@@ -610,7 +611,7 @@ def __get_rich_repo(self, item):
610611
rich_repo['releases'] = rich_releases
611612
rich_repo['releases_count'] = len(rich_releases)
612613

613-
rich_repo["topics"] = [project_label.get("name", None) for project_label in repo.get('project_labels', [])]
614+
rich_repo["topics"] = repo.get('project_labels', [])
614615

615616
if self.prjs_map:
616617
rich_repo.update(self.get_item_project(rich_repo))

0 commit comments

Comments
 (0)