oss-know / airflow-jobs

Apache License 2.0
6 stars 19 forks source link

Default/Empty github API result #186

Closed crystaldust closed 1 year ago

crystaldust commented 1 year ago

GitHub repos might be removed after downloading. Then the request to that repos will be NotFound. Maybe we should come up with a solution to provide default/empty GitHub resources.

A current example, the get_github_pull_requests function in libs/util/github_api.py (@line 127) will fail if the response is NotFound.

crystaldust commented 1 year ago

There is already an empty github response class, with returns text '[]'(will be parsed as format json list)