Learn GitHub
$ gh ghprofessional.ghassessment

Final Assessment and Capstone

4 learning objectives · 4 key terms · 6 commands · 2 diagrams · 10 quiz questions

$objectives

Final Assessment and Capstone

Professional Practice

Module 5 of 5 · lesson 24 in this module

What you'll be able to do

  • Check your understanding across every module of the course
  • Revisit the topics where your answers went wrong
  • Plan and execute a capstone project that uses the whole workflow
  • Earn the course-completion state
$concept

The idea, in plain language

This assessment covers all fifteen modules. Answer the questions below without looking back at the lessons; every answer shows an explanation, and a wrong answer is the most useful thing that can happen here because it tells you exactly which module to re-read. You need 80% to pass, and your answers are saved so you can close the tab and come back.

The capstone brief that follows is the practical half. It asks for one repository that demonstrates the whole arc of the course: a clean history with meaningful commits, work delivered through reviewed pull requests, at least one conflict resolved deliberately, automation that gates the merge, a security posture that keeps credentials out of the repository, and a versioned release that a stranger could install. The marking guide is simply what a maintainer would look for, so treat the repository as the deliverable rather than the exercise.

When both parts are done — every lesson marked complete in the curriculum and at least 80% on this assessment — the completion state appears at the top of this lesson.

$key terms

Key terms

Capstone
The final project that demonstrates every skill the course taught.
Pass mark
80% correct on this assessment.
Completion state
Shown once every lesson is marked complete and the assessment is passed.
Marking guide
The maintainer’s-eye checklist applied to the capstone repository.
$steps

How it works, step by step

  1. 1
    Take the assessment once, honestly

    No notes. The explanations are the teaching material — a wrong answer you understand is worth more than a right answer you guessed.

  2. 2
    Re-read the modules your wrong answers pointed at

    Each question maps to one module by its topic. Mark the lesson complete as you go, which is also what unlocks the completion state.

  3. 3
    Read the capstone brief and plan it

    Write the issue list before writing any code: setup and conventions, the feature, the pipeline, the security pass, and the release.

  4. 4
    Build the capstone through reviewed pull requests

    One pull request per issue, each with a description and a linked issue. No direct commits to main.

  5. 5
    Prove the gates work

    Break a test and confirm the merge is blocked; attempt a direct push to main and confirm it is refused; attempt a push containing a credential-shaped string and confirm push protection blocks it.

  6. 6
    Release, then write the retrospective

    Tag v1.0.0, publish the release with notes, and add a short section to the README listing what you would do differently — that reflection is what turns a project into learning.

$commands

Commands worth memorising

Every block below is copy-ready — use the Copy button, then paste it into your terminal. Expected output is shown underneath so you know what “working” looks like.

read the whole history as evidencebash
git log --oneline --graph --all
Output
*   9d2f4c1 (HEAD -> main, tag: v1.0.0) Merge pull request #4
|\
| * 8c1d2ab feat: add release workflow
|/
* 4f1c2ab feat: add landing page

A capstone history should show reviewed merges and one resolved conflict, not a single enormous commit.

prove the work was reviewedbash
gh pr list --state merged --limit 20
Output
4  feat: add release workflow       merged
3  feat: add CI pipeline            merged
2  feat: add footer                 merged

Merged pull requests with linked issues are the evidence that the workflow was followed.

prove the gate is realbash
gh api repos/:owner/:repo/branches/main/protection --jq '.required_status_checks.contexts'
Output
["test"]

If this returns nothing, main is not gated — and the check name must match the job name exactly.

prove CI runs on every pushbash
gh run list --limit 10 --json displayTitle,conclusion --jq '.[] | "\(.conclusion)  \(.displayTitle)"'
Output
success  feat: add release workflow
success  feat: add CI pipeline

Every commit in the capstone should have a run behind it.

confirm nothing secret is trackedbash
git ls-files | grep -E "(^|/)\.env$|\.pem$|\.key
quot;
Output
(no output — good)

Together with secret scanning enabled, this is the security evidence for the capstone.

confirm the release existsbash
gh release list --limit 3
Output
v1.0.0  Latest  First complete version  an hour ago

A tagged release with notes is what makes the capstone installable by a stranger.

$diagrams

Workflow diagrams

Diagram 1What the capstone must demonstrate

Every row is something a maintainer would check. Evidence means it is visible in the repository, not just claimed.

Reading the diagram
  1. Every requirement is evidenced by something visible in the repository history or settings.
  2. If a requirement cannot be seen, it does not count — that is exactly how a reviewer will judge it.
Diagram 2How the completion state is earned

Progress is stored in your browser, so the state survives a reload on this device.

Reading the diagram
  1. Use the Mark this lesson complete button on each lesson, or the tick in the curriculum menu.
  2. Answer this assessment; the score is derived from your saved answers.
  3. When both conditions hold, the completion state appears above the quiz.
$example

Worked example

A capstone repository tree, which is also a reasonable template for any professional project.

capstone structuremarkdown
.github/
  CODEOWNERS
  pull_request_template.md
  ISSUE_TEMPLATE/bug_report.yml
  workflows/ci.yml
  workflows/release.yml
src/
  app.js
tests/
  app.test.js
CONTRIBUTING.md
CHANGELOG.md
LICENSE
README.md
.env.example
.gitignore
Output
Clone it, read README.md, run the tests, follow CONTRIBUTING.md to propose a change, and install the released version — no questions needed.
1.github/ holds everything that changes how the repository behaves: review templates, ownership, issue forms and automation, all versioned with the code.
2ci.yml runs the tests; release.yml publishes on a tag, so releases are automated rather than manual.
3src/ and tests/ keep the unit of review obvious — a pull request changing behaviour should normally change a test too.
4CONTRIBUTING.md, CHANGELOG.md and LICENSE answer the three questions every visitor has: how do I contribute, what changed, and what am I allowed to do with this?
5.env.example documents required configuration without containing values, and .gitignore keeps the real .env file out of history — the pattern from Module 11.
$use cases

Where you'll use it

▸Deciding whether you are ready to contribute to a professional team.
▸Producing a portfolio repository that demonstrates process as well as code.
▸Interview preparation, where process questions are common and specific.
▸Creating a personal template repository for all future projects.
▸Checking which modules to revisit before a certification or assessment.
$mistakes

Common mistakes

  • Skipping questions to reach the capstone quickly — the explanations are the point.
  • Claiming requirements in the README without them existing in history or settings.
  • Building the capstone as one enormous commit, which demonstrates none of the workflow skills.
  • Leaving branch protection unproven, so nobody can tell it works.
  • Treating 79% as close enough instead of re-reading the modules the questions pointed at.
$best practices

Best practices

  • Take the assessment honestly and read every explanation, right or wrong.
  • Plan the capstone as issues before writing code.
  • Deliver it through reviewed pull requests, one issue at a time.
  • Prove the gates by deliberately triggering and fixing a failure.
  • Finish with a tagged release and a short retrospective in the README.
$exercise

Hands-on exercise

Capstone: a production-ready repository

One repository that demonstrates the whole course. The brief, marking guide and evidence table are below and above.

  1. Create a repository with a description, a license, a README and a .gitignore covering .env before the first commit.
  2. Enable CI in .github/workflows/ that runs your tests on push and pull request to main.
  3. Enable branch protection on main requiring one approval, the CI check to pass, and conversation resolution.
  4. File three issues and deliver each through its own branch and pull request with a linked issue and a filled template.
  5. Deliberately create and resolve one merge conflict, and record in the pull request what you chose and why.
  6. Enable secret scanning with push protection and Dependabot, and confirm no credential is tracked.
  7. Tag v1.0.0, publish the release with generated notes and an attached artefact, then add a retrospective section to the README.
  8. Break a test, confirm the merge is blocked, and fix it — then take a screenshot or note in the README that the gate works.

💡 Hint: If you are short on time, a static site or a small CLI is enough: the workflow is the deliverable, not the product. Depth of process beats breadth of features.

Done when: A stranger can clone the repository, run the tests, follow the contribution process, see a protected main branch with green checks, and install your v1.0.0 release.

$quiz

Checkpoint quiz

0 of 10 answered · 0 correct

  1. Multiple choiceQ1

    Which sequence correctly moves a change from your editor to GitHub?

  2. Multiple choiceQ2

    Your teammate pushes a commit to main. You have three local commits on your feature branch. What is the cleanest way to get current before opening a pull request?

  3. TroubleshootingQ3

    A workflow fails on every pull request with "permission denied" when publishing a package. Tests pass. What should you check first?

  4. Multiple choiceQ4

    Which file makes a specific team automatically requested to review changes under /api/?

  5. Multiple choiceQ5

    Which command rewrites history and therefore requires a force-push afterwards?

  6. True or falseQ6

    True or false: a commit that undoes an earlier one on main should be made with git reset followed by a force-push.

  7. Command outputQ7

    What does this status mean, and what should you do?

    ## main...origin/main
  8. TroubleshootingQ8

    You committed a database password and pushed it two hours ago. Order the response correctly.

  9. Multiple choiceQ9

    A pull request is approved and all checks pass. Which merge method gives main exactly one commit for the whole change?

  10. Multiple choiceQ10

    What must be true before you can merge into a repository you forked?

$certificate

Course completion

Lessons finished: 0/24 · course progress 0%

Final assessment: 0/10 correct (80% needed to pass)

Finish every lesson and score at least 80% on the final assessment below to earn the completion state.

$summary

Module summary

  • The assessment covers all fifteen modules; 80% is the pass mark and every answer is explained.
  • Your answers and lesson ticks are stored in your browser, so progress survives a reload.
  • The capstone is one production-ready repository: reviewed pull requests, a proven CI gate, no secrets, and a tagged release.
  • Evidence has to be visible in history or settings — a claim in the README does not count.
  • Complete every lesson and pass the assessment to unlock the course-completion state.

Next up: There is no next module — this is the end of the GitHub course. A good next step is to take a repository you already have and apply the capstone checklist to it.

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Classic DSA interview booksThe reference books interviewers themselves learned from — great next to the visualizers.See the books

Practice what you learned

Put the GitHub course to work: open one of the company-wise repositories and follow the workflow you just learned, branch to release.