Added TODO
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Martin Slot 2022-11-14 16:43:36 +01:00
parent 5fbb26ccd2
commit 4745b6d8d5
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ impl<'a> RequestHandler<'a> {
None => &current.api_root_url,
};
// TODO: only latest release is supported now, but it needs to be modified so we can roll from our current release to the upstream current, and maybe gather all fixes, so it can be sent if versions is out of sync. Maybe just max it out to the last 10 if upstream and local current differs with more than 10 (if that is possible to make without enumerating all pages that /releases brings back to get the span between upstream and current)
let latest_release_api_url = format!(
"{}repos/{}/{}/releases/latest", // api_root_url contains protocol - this is very much hard coded to Github right now, so i wont make any fancy factory or something. When there is added another provider i will think on how to do this the correct way
api_url, current.owner_name, current.repo_name