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
1×
Become a member
to unlock all features

Level Up!

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

Autoplay

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

    bashBash

    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.