ENVIRONMENT: Ubuntu 20.04
TASK: Mine all closed bug reports (issues) with the label ‘incorrect’ from the repository Ansible.
SOLUTIONS: I have tried using Github’s REST API via the curl command. However, curl is either stalling or simply producing a server error. I have not seen much usage of how to include multiple parameters or working with large requests even from the documentation
First thing I tried was to mine just the closed issues, below mines all the closed issues or so it seems. It looks like it only includes a couple which leads me to think there are ‘pages’ to large requests?
curl "https://api.github.com/repos/ansible/ansible/issues?state=closed" > closed_issues
However the ‘labels’ is not working for me neither is combining the two. I get a “server_error” and it stops there.
curl "https://api.github.com/repos/ansible/ansible/issues?state=closed&labels=incorrect" > labeled_closed_issues