Skip to content

Instantly share code, notes, and snippets.

@kingcons
Created March 7, 2016 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kingcons/c0d7588c6f40c3eb4308 to your computer and use it in GitHub Desktop.
Save kingcons/c0d7588c6f40c3eb4308 to your computer and use it in GitHub Desktop.

closing-time

Description

Use the GitHub API to close an issue from the command line

Objectives

Learning Objectives

After completing this assignment, you should…

  • Better understand how to interact with external APIs
  • Understand how an API call might be authenticated

Performance Objectives

After completing this assignment, you be able to effectively use

  • cURL to make raw HTTP calls
  • Headers to authenticate API requests

Details

Deliverables

A closed GitHub issue.

Normal Mode

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.

Hard Mode

Instead write a script (using e.g. system or backticks) that posts itself as a comment while closing.

Additional Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment