Git & GitHub Course
Git & GitHub
/
Intermediate

Milestones

Definition

A tool for tracking progress on groups of issues or pull requests in a repository. They represent significant points in a project's development timeline, like an upcoming version release.

Explain Like I'm New

A folder that holds a bunch of Issues together with a Due Date. If you are releasing 'Version 2.0' next month, you create a Milestone called 'v2.0 Launch'. You take all the bugs and features needed for Version 2.0 and attach them to that Milestone. GitHub gives you a beautiful progress bar showing '60% Complete'.

Real World Example

Organizing development work into 2-week 'Sprints' (Agile methodology). You name the milestone 'Sprint 42' and put all the work for the next two weeks into it.

Common Use Cases

  • •Release planning
  • •Agile Sprints
  • •Tracking progress metrics

Terminal Output

bash / terminal
/* Example Milestone Setup: Milestone Name: MVP Launch (Due: Dec 1st) Progress: [████████░░░░░░░░░] 50% Attached Issues: - [CLOSED] Design the logo - [CLOSED] Setup database schema - [OPEN] Build login page - [OPEN] Deploy to AWS (When you close 'Build login page', the progress bar instantly updates to 75%!) */

Interview Questions

basic

  • What visual indicator does GitHub provide for a Milestone?

intermediate

  • What happens to the progress bar when you close an issue attached to the Milestone?

Flash Cards

Question

Visual indicator?

Click to reveal answer
Answer

A progress bar (e.g., 5 closed, 5 open = 50% complete).

Question

Progress bar updates?

Click to reveal answer
Answer

The progress bar automatically fills up! Once all issues attached to the milestone are closed, the milestone hits 100% and can be closed itself.