fix(api): correct extraction of commit date from gitea branches api
This commit is contained in:
@@ -104,8 +104,8 @@ async def check_for_updates(config: Any) -> dict:
|
|||||||
"tag": latest_tag,
|
"tag": latest_tag,
|
||||||
"commit": short_sha,
|
"commit": short_sha,
|
||||||
"commit_full": full_sha,
|
"commit_full": full_sha,
|
||||||
"message": latest_commit.get("commit", {}).get("message", "").split("\n")[0],
|
"message": latest_commit.get("commit", {}).get("message", "").split("\n")[0] if latest_commit.get("commit") else "",
|
||||||
"date": latest_commit.get("commit", {}).get("committer", {}).get("date", ""),
|
"date": latest_commit.get("timestamp", ""),
|
||||||
"branch": branch,
|
"branch": branch,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user