fix: exclude draft and prerelease releases
This commit is contained in:
parent
76fbb5ccbb
commit
9a77a6e314
1 changed files with 1 additions and 1 deletions
|
|
@ -399,7 +399,7 @@ async def fetch_github_repo_info(org: str, repository: str):
|
||||||
detail=f"Cannot fetch extension releases: {releases_url}",
|
detail=f"Cannot fetch extension releases: {releases_url}",
|
||||||
)
|
)
|
||||||
|
|
||||||
releases = resp.json()
|
releases= [r for r in resp.json() if r["draft"] == False and r["prerelease"] == False]
|
||||||
|
|
||||||
config_url = f"""https://raw.githubusercontent.com/{org}/{repository}/{repo["default_branch"]}/config.json"""
|
config_url = f"""https://raw.githubusercontent.com/{org}/{repository}/{repo["default_branch"]}/config.json"""
|
||||||
resp = await client.get(config_url)
|
resp = await client.get(config_url)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue