Skip to content

Commit 2a56513

Browse files
Release List: Draft for Reading Dependencies.txt - Try Using Dependency Name
(Copilot Proposal)
1 parent c166064 commit 2a56513

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

scripts/update_releases.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,21 @@ def fetch_release_details(filtered_releases):
6868
return releases_data
6969

7070
def parse_dependencies(content):
71-
dependencies = []
71+
dependencies_map = {}
7272
lines = content.splitlines()
7373
for line in lines[1:]: # Skip the header
7474
parts = line.split()
7575
if len(parts) == 4:
7676
commit, branch, path, url = parts
77-
dependencies.append({
77+
repo_name = url.split('/')[-1].replace('.git', '') # Ableiten des Repo-Namens aus der URL
78+
dependencies_map[repo_name] = {
7879
"commit": commit,
7980
"branch": branch,
8081
"path": path,
81-
"url": url
82-
})
83-
return dependencies
82+
"url": url,
83+
"depName": repo_name
84+
}
85+
return dependencies_map
8486

8587
def fetch_dependencies(repo):
8688
try:

0 commit comments

Comments
 (0)