Skip to content

Commit

Permalink
Don't process draft releases
Browse files Browse the repository at this point in the history
  • Loading branch information
JanisV committed Oct 29, 2024
1 parent 61411db commit 5b16032
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/repo_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def store_latest_release(session, repo, repo_obj):

try:
release = repo.get_latest_release()
if release.draft:
release = None
except github.GithubException as e:
# Repo has no releases yet
if repo.get_tags().totalCount > 0:
Expand Down

0 comments on commit 5b16032

Please sign in to comment.