Skip to content
Visual explainer 2h to learn 3 steps

Repos, issues, labels & Projects

Plan work with issues and a Projects board.

By Invicly Tech, , in Git, GitHub & GitHub Actions. About 10 minutes to read.

Topic 5 of 18

In short

A well-run repo explains itself with a README and license, captures work as issues, and shows progress on a Projects board. Templates and labels keep issues consistent and easy to triage.

Explained simply

A repository (repo) on GitHub is more than a folder of code. It is also the place where a team talks about work, tracks bugs and plans what comes next. A new visitor should understand what the project is and how to help within a minute of landing on it.

The README is the front page. It says what the project does, how to install and run it, and where to ask questions. The LICENSE file says what others are allowed to do with the code. Without one, nobody else may legally copy or change it, even if the repo is public.

Issues are the to-do list. Each issue is one bug, task or idea, with a discussion thread under it. Labels are colored tags like bug or good first issue that help you sort and filter. Templates turn the "New issue" button into a short form, so reporters give you the details you need.

Projects is GitHub's planning tool. It pulls issues and pull requests from one or more repos into a board or table, where you can drag cards between columns like Todo, In progress and Done, or add your own fields like priority or sprint.

Press Play on a diagram to walk through it one step at a time.

MapWhat a tidy repo contains
acme/api
  • README.md
    • What it does
    • How to run it
    • How to contribute
  • LICENSE
    • Says how others may use it
  • .github/ISSUE_TEMPLATE
    • bug_report.yml
    • feature_request.yml
  • Labels
    • bug
    • enhancement
    • good first issue
  • Projects board
    • Todo
    • In progress
    • Done
CycleLife of an issue
  1. 1
    Reported

    Issue form fills in the details

  2. 2
    Triaged

    Labels, priority, milestone added

  3. 3
    Planned

    Added to the project, assigned

  4. 4
    In progress

    A linked pull request is opened

  5. 5
    Closed

    Fixes #N closes it on merge

  6. Back to step 1

In depth

Community health files

GitHub recognises a set of standard files and links to them in the right places. README.md shows on the repo home page. LICENSE is detected and shown in the sidebar. CONTRIBUTING.md is linked when someone opens an issue or pull request. SECURITY.md tells people how to report a vulnerability privately instead of in a public issue. CODE_OF_CONDUCT.md sets the rules for behaviour.

These files can live in the repo root, in docs/ or in .github/. An organization can also create a repository named .github and put default versions there; every repo in the org without its own copy then uses those defaults. That is the easy way to give 50 repos the same issue templates and security policy.

  • MIT: short and permissive
  • Apache-2.0: permissive plus an explicit patent grant
  • GPL-3.0: changes must stay open source when distributed
  • choosealicense.com compares licenses in plain words

Issue forms instead of blank issues

An issue form is a YAML file in .github/ISSUE_TEMPLATE/, for example bug_report.yml. It defines a name, description, default title, default labels and a body made of fields. Field types are markdown (help text), input (one line), textarea (long text, can render logs as code), dropdown and checkboxes. Any field can be marked required, so nobody can submit a bug without steps to reproduce.

A config.yml in the same folder controls the chooser page. blank_issues_enabled: false removes the free-text option, and contact_links can send questions to Discussions or a support site instead of the issue tracker. Labels named in a form should already exist in the repo.

Labels and triage that people actually use

GitHub creates default labels such as bug, documentation, duplicate, enhancement, good first issue, help wanted, invalid, question and wontfix. Keep the set small and give each label one clear meaning. A common pattern is prefixed groups: type: bug, priority: high, area: api, status: needs-triage.

Triage is the habit of looking at new issues regularly, adding labels, asking for missing details and closing duplicates. Issue forms can add needs-triage automatically, so the triage queue is simply that label's filter. Milestones group issues for a release and show a progress bar. Large pieces of work can be broken into sub-issues, which show their progress on the parent issue.

How Projects works under the hood

A project belongs to a user or an organization, not to a single repo, so it can track work from many repos at once. Each item is an issue, a pull request or a draft issue that lives only in the project. Items keep their real state: closing the issue updates the project.

You add custom fields: single select (like Status or Priority), text, number, date and iteration (repeating time boxes such as two-week sprints). Views are saved layouts of the same items: a table for planning, a board grouped by Status, or a roadmap on a timeline. Built-in workflows automate the boring parts, for example setting Status to Done when an issue is closed or a PR is merged, and auto-adding new issues that match a filter.

LayersProjects from data to views
  1. 1
    Views

    Table, board and roadmap layouts

  2. 2
    Workflows

    Auto-add items, set Status on close or merge

  3. 3
    Custom fields

    Status, Priority, Iteration, Estimate

  4. 4
    Items

    Issues, pull requests and draft issues

  5. 5
    Repositories

    One or many repos feed the same project

Learn it in 3 short steps

About 40m each. Track them with a timer in your plan.

  1. 1
    Create a repo with README and license~40m
  2. 2
    Write issues with templates and labels~40m
  3. 3
    Plan work on a Projects board~40m

Key points

  • A README answers what this is, how to run it and how to contribute.
  • Without a license, others have no legal right to reuse your code.
  • Issue forms ask the right questions up front, like steps to reproduce.
  • Projects boards track issues and PRs across columns, fields and views.

Key terms

Tap a card to flip it. 0/5 known

Examples

bash
gh repo create acme/api --public --add-readme --license mit
gh label create needs-triage --color FBCA04
gh issue create --title "Health check returns 500" --label bug
gh issue list --label bug
gh project create --owner acme --title "API roadmap"

Set up a repo, labels, an issue and a project with the GitHub CLI.

A bug report form that gets useful reports

Your issues keep arriving as one line: "the API is broken". Step 1: create .github/ISSUE_TEMPLATE/bug_report.yml. Step 2: add required fields for steps to reproduce and the version, plus a dropdown for the environment. Step 3: set default labels so every new bug lands in the triage queue. Step 4: add config.yml with blank_issues_enabled: false so the form cannot be skipped.

yaml
name: Bug report
description: Something is not working
title: "[Bug]: "
labels: ["bug", "needs-triage"]
body:
  - type: textarea
    id: steps
    attributes: { label: Steps to reproduce }
    validations: { required: true }
  - type: input
    id: version
    attributes: { label: Version, placeholder: "1.4.2" }
  - type: dropdown
    id: env
    attributes: { label: Environment, options: [production, staging, local] }

Set up a sprint board from the terminal

You want a board for the next release. Step 1: give gh the project scope (Projects need it). Step 2: create a project in the organization. Step 3: add existing issues to it by URL. Step 4: open it in the browser to add a Priority field and a board view grouped by Status. From then on, the built-in workflow moves merged and closed items to Done.

bash
gh auth refresh -s project
gh project create --owner acme --title "Release 2.0"
gh project list --owner acme          # note the project number, e.g. 7
gh project item-add 7 --owner acme --url https://github.com/acme/api/issues/12
gh project item-add 7 --owner acme --url https://github.com/acme/api/issues/15
gh project view 7 --owner acme --web

Quick reference

  • Issue forms go in .github/ISSUE_TEMPLATE/*.yml; config.yml controls the chooser
  • blank_issues_enabled: false forces reporters to use a template
  • A repo named .github holds default community files for a whole organization
  • Fixes #12 in a PR closes issue 12 when the PR merges into the default branch
  • gh label create area:api --color 1D76DB --description "API work" adds a label
  • gh issue list --label bug --state open filters issues from the terminal
  • gh project item-add NUMBER --owner ORG --url ISSUE_URL adds an issue to a project
  • SECURITY.md tells people how to report vulnerabilities privately

Common mistakes

  • Vague issues like 'it's broken' with no steps, logs or expected result.
  • Dozens of overlapping labels that nobody applies consistently.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1A public repo has no LICENSE file. What may others do with the code?

Question 2

2Where do issue forms live?

Question 3

3Which statement about GitHub Projects is true?

Question 4

4A PR description says Closes #40, but the issue stays open after merge. What is the most likely reason?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Create a new public repo with a README, an MIT license and a Python .gitignore, all from the terminal.

  2. Exercise 2medium

    Replace the default labels with a small prefixed set: type: bug, type: feature, priority: high, status: needs-triage.

  3. Exercise 3hard

    Add a feature request form with a required problem field and a checkbox confirming the user searched existing issues, and disable blank issues.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

What is the difference between Issues and Discussions?
Issues are for actionable work that can be closed, like bugs and tasks. Discussions are for open-ended questions, ideas and announcements that do not need a fix.
Is GitHub Projects free?
Yes, Projects is available on the free plan for both personal accounts and organizations.
Which license should I pick for an open source project?
MIT is the most common simple choice. Apache-2.0 adds an explicit patent grant, which companies often prefer. GPL-3.0 requires that distributed changes stay open source.
What is the difference between a milestone and a project?
A milestone groups issues in one repo toward a release or date and shows percent complete. A project is a flexible planning view across repos with custom fields and layouts.

Go deeper

ShareXLinkedInWhatsApp