potiuk commented on code in PR #50716:
URL: https://github.com/apache/airflow/pull/50716#discussion_r2094091812
##########
dev/breeze/src/airflow_breeze/utils/github.py:
##########
@@ -55,21 +55,21 @@ def download_file_from_github(
"""
import requests
- url = f"https://raw.githubusercontent.com/apache/airflow/{tag}/{path}"
+ url =
f"https://api.github.com/repos/apache/airflow/contents/{path}?ref={tag}"
Review Comment:
Indeed @gopidesupavan is right - this API
https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28 does not
return the content itself, it returns JSON where you can retrieve download URL
(with signed download_url that is time-limited) to download the actual content.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]