mik-laj edited a comment on issue #19154: URL: https://github.com/apache/airflow/issues/19154#issuecomment-950043189
Each release has a separate tag, so when you switch to a specific tag, you can see the code from a specific version. <img width="421" alt="Screenshot 2021-10-23 at 04 24 27" src="https://user-images.githubusercontent.com/12058428/138539113-51494607-08b5-4798-867e-039d2086afb0.png"> Next, you have to go to the file and find the "Raw" button to see the plain file. <img width="432" alt="Screenshot 2021-10-23 at 04 25 00" src="https://user-images.githubusercontent.com/12058428/138539282-baaa84bb-0f96-4d16-bf3d-c8a2a652e30d.png"> ``` https://github.com/apache/airflow/blob/2.0.2/airflow/api_connexion/openapi/v1.yaml ``` When you have one link, you can generate the rest with a simple Bash script. Information about Airflow versions can be downloaded most easily from pypi. The code below fetch all 2.* versions: ```shell $ curl -s 'https://pypi.org/pypi/apache-airflow/json' | jq '.releases|to_entries|.[]|.key' -r | grep "^2." | grep -v "b\|rc" 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.2.0 ``` To generate link, run: ```shell $ curl -s 'https://pypi.org/pypi/apache-airflow/json' | jq '.releases|to_entries|.[]|.key' -r | grep "^2." | grep -v "b\|rc" | xargs -I {} -n 1 echo https://raw.githubusercontent.com/apache/airflow/\{\}/airflow/api_connexion/openapi/v1.yaml https://raw.githubusercontent.com/apache/airflow/2.0.0/airflow/api_connexion/openapi/v1.yaml https://raw.githubusercontent.com/apache/airflow/2.0.1/airflow/api_connexion/openapi/v1.yaml https://raw.githubusercontent.com/apache/airflow/2.0.2/airflow/api_connexion/openapi/v1.yaml https://raw.githubusercontent.com/apache/airflow/2.1.0/airflow/api_connexion/openapi/v1.yaml https://raw.githubusercontent.com/apache/airflow/2.1.1/airflow/api_connexion/openapi/v1.yaml https://raw.githubusercontent.com/apache/airflow/2.1.2/airflow/api_connexion/openapi/v1.yaml https://raw.githubusercontent.com/apache/airflow/2.1.3/airflow/api_connexion/openapi/v1.yaml https://raw.githubusercontent.com/apache/airflow/2.1.4/airflow/api_connexion/openapi/v1.yaml https://raw.githubusercontent.com/apache/airflow/2.2.0/airflow/api_connexion/openapi/v1.yaml ``` -- 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]
