Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Create a Bash Script to Open a Pull Request on Github using getopts


    In this lesson, we’ll apply our knowledge of getopts and create a script that opens a PR on Github, all without leaving your terminal. We’ll use getopts to take 3 options: username, password or token, and PR title. We’ll use any input after that as the body of the PR. We’ll validate the input and then use curl to POST it to Github.