Use the GitHub API to close an issue from the command line
After completing this assignment, you should…
- Better understand how to interact with external APIs
- Understand how an API call might be authenticated
After completing this assignment, you be able to effectively use
- cURL to make raw HTTP calls
- Headers to authenticate API requests
A closed GitHub issue.
You will be assigned an issue on GitHub. Close it from the command line, and then paste the command you used in as a comment.
Instead write a script (using e.g. system
or backticks) that posts itself as a comment while closing.
- GitHub's API documentation for authentication and issue handling.
- httpkit for a quick rundown of the most important cURL options.
man curl
for alllll of the options.