World map

 

BM: Baca dalam Bahasa Melayu

World 9: Power Tools

GitHub Copilot

You will learn: the ways Copilot can help, and why you stay in charge.

The problem

You type function wordCount(. Grey text appears and finishes the whole function. Magic! But who is responsible for that code?

Pick one answer.

Watch

Tap each point on the timeline.

GitHub Copilot: GitHub's AI helper. It suggests code, answers questions and can work on small tasks. is GitHub’s AI helper. It turns up in five places. Tap each one.

Try it

Which Copilot helper fits each job?

Drag a card into a box. Or tap the card, then tap the box.

        Try it

        The coding agent: An AI helper that works on a task by itself, then opens a pull request for you to review. turns an issue into a pull request. Put the steps in order.

        First step at the top. Put these in order. Use the arrows, or drag.

        • You review, test and decide
        • It opens a pull request
        • You assign the issue to Copilot
        • It works on a branch in the cloud
        • You write a clear issue

        Try it

        The agent opened pull request #8. It adds a word counter, but no test. Ask for a test in a comment.

        Practice repo — not a real website
        aina-codes / diary
        My little diary website.
        Add word count to entries #8
        Open coding-agent wants to merge agent/word-count into main
        1. coding-agent

          Adds a wordCount function and shows it under each entry.

          Fixes #7

        Checks
        • Passed build
        Merging this closes #7.
        How to merge
        Ready to merge.
        Your review

        Predict

        The agent’s pull request passes every check. What should happen next?

        Pick one answer.

        Check

        Safe to paste into an AI chat? Swipe each one.

        Swipe right for good, left for needs work. Or use the buttons.

        1 / 4

        An error message from your tests

        An error message from your tests

        You did it!

        You can now use Copilot as a helper, and stay in charge.

        Go deeper (optional)

        Copilot changes fast. Check docs.github.com for what you can use today. Your school or company may switch some parts off. Copilot can also review a pull request when asked. By default, its review does not count as an approval. Look at wordCount("") in that pull request. It returns 1, not 0. A test would catch that!