Skip to content

Commit

Permalink
fix: handling of the publiccode.yml changed case
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio committed Jul 25, 2024
1 parent 28bc703 commit 229aa17
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,11 @@ def run(gh, since, dry_run, lang):

issue = has_issue(iss)
repo = gh.get_repo(f"{repo_path}", lazy=True)

if publiccodeyml_last_change(repo) >= log.datetime:
print(f"⌛ publiccode.yml was changed in the repo after our log, doing nothing ({url})")
continue

if not issue:
print(f"➕ Creating issue for {url}...")
if not dry_run:
Expand All @@ -245,10 +250,6 @@ def run(gh, since, dry_run, lang):
)

issues_created += 1
elif publiccodeyml_last_change(repo) >= log.datetime:
print(
f"⌛ publiccode.yml was changed in the repo after our log, doing nothing ({url})"
)
elif should_update_issue(sha1sum, issue):
print(f"🔄 Updating issue for {url}...")
if not dry_run:
Expand Down

0 comments on commit 229aa17

Please sign in to comment.