Activity ‐ Pull Requests - accentient/github-copilot-devs GitHub Wiki

Use GitHub Copilot to Assist with Pull Requests

Objective

The objective of this activity is to demonstrate how GitHub Copilot can efficiently assist in generating accurate pull request descriptions.

Prerequisites

  • Signed into GitHub.com
  • Active GitHub Copilot subscription

Steps

Step 1: Fork the Repository

  • Browse to https://github.com/accentient/github-copilot-devs
  • Fork the repository using the default name

Step 2: Improve README.md

  • In your forked branch, edit the README.md file
  • Replace the content with the following:
*Star Wars: A New Hope* follows young Luke Skywalker, who discovers a hidden message in a droid, leading him to the wise Jedi Knight Obi-Wan Kenobi.
Together, they join smuggler Han Solo, his co-pilot Chewbacca, and Princess Leia to fight the tyrannical Galactic Empire. The Empire, led by the
menacing Darth Vader, has built a planet-destroying superweapon called the Death Star. After rescuing Leia and escaping the Death Star,
the heroes deliver vital plans to the Rebel Alliance. In a climactic space battle, Luke, guided by the Force, destroys the Death Star,
delivering a significant victory for the Rebellion and igniting hope across the galaxy.
  • Commit the changes

Step 3: Create a Pull Request

  • Create a new pull request
  • Click the Copilot icon and have it generate the description
  • Cancel the pull request

Step 4: Clean Up (Optional)

  • Delete the forked repository

Summary

In this activity, you learned how to use GitHub Copilot to efficiently generate accurate and well-structured pull request descriptions, transforming what is often a tedious and overlooked task into an effortless click of a button.