1
0
Commit Graph

6 Commits

Author SHA1 Message Date
kasimeka
4d9b9e6ace feat(update_mod_versions.py): add support for last-updated field 2025-05-27 13:23:54 +03:00
janw4ld
a66eb063a2 feat: add auto-update support for tags with no release assets 2025-04-20 18:53:40 +02:00
Breezebuilder
3521106098 Improvements to mod version checking and GitHub API rate limit checking
- Check if download url links to latest head, and if so, use version of latest commit hash instead of release version
- Merge `get_latest_release` and `get_latest_commit` into `get_version_string` for less duplicate code
- Check and print GitHub API rate limit details including api resource, remaining calls, and reset time
- On exceeding rate limit or 403 error, check if primary or secondary rate limit has been reached
    - On primary rate limit breach, wait until hourly rate reset time
    - On secondary rate limit breach, wait for `retry-after` response time or an exponential time, starting at 60 seconds and doubling for each attempt, following GitHub API docs
- Prevent program waiting for more than 30 minutes for API rate reset time
2025-03-11 23:51:46 +11:00
Breezebuilder
d574e1e072 Fix mod version updater failing for mods with repos ending with characters 'g', 'i', or 't'
`rstrip` removes any matched characters from the end of the string until an unmatched character is found
2025-03-11 13:34:02 +11:00
Ö. Efe D.
a3420f5d31 Make script executable 2025-03-09 19:39:53 +01:00
Ö. Efe D.
f532231f52 Add automatic version updating feature 2025-03-09 19:36:28 +01:00