/github-for-non-tech

How to track bugs using GitHub Issues?

Track bugs in GitHub Issues: Learn to set up repos, create bug reports, label issues, link commits, and streamline bug tracking with our guide.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to track bugs using GitHub Issues?

 

Step 1: Introduction to GitHub Issues for Bug Tracking

 

GitHub Issues is a built-in issue tracker that helps you manage and track bugs, feature requests, and tasks in your project. It provides a simple web interface where collaborators can report bugs, discuss solutions, and follow progress.

  • Issues can be labeled, assigned, and organized with milestones.
  • They support Markdown for rich formatting and linking to commits or pull requests.
  • Issues can be automatically closed by referencing them in commit messages.

 

Step 2: Create or Prepare Your GitHub Repository

 

Before you can track bugs, you need a repository. If you already have one, skip to the next step.


# Initialize a new Git repository locally
git init

# Add your remote origin (replace URL with your repository URL)
git remote add origin https://github.com/your-username/your-repo.git

# Create an initial commit
git add .
git commit -m "Initial commit"

# Push to the default branch (often 'main')
git push -u origin main
  • Open your GitHub repository in the browser to confirm it exists.
  • Ensure the “Issues” tab is visible; it’s enabled by default on public repositories.

 

Step 3: Enable and Configure Issue Settings

 

By default, Issues are enabled on new repositories. To customize settings:

  1. Navigate to your repository.
  2. Click on Settings > Features.
  3. Ensure Issues is checked.
  4. (Optional) Customize issue templates under Issues > Templates.
  • Issue templates help standardize the bug report format (e.g., steps to reproduce, expected vs actual behavior).
  • Create a “Bug report” template to guide contributors.

 

Step 4: Create a New Bug Issue

 

Use the Issues tab to log a bug:

  1. Go to the Issues tab.
  2. Click New issue.
  3. Select the “Bug report” template (if available).
  4. Fill in:
    • Title: A concise summary of the bug.
    • Description: Detailed steps, environment, screenshots or logs.
    • Assignees, Labels, Milestone: Assign to team members, label as bug, and link to a milestone.
  5. Click Submit new issue.

 

Step 5: Use Labels, Assignees, and Milestones

 

Organize your issues to track priority and progress:

  • Labels: Create labels like bug, high priority, needs info.
  • Assignees: Assign team members responsible for fixing the bug.
  • Milestones: Group issues under a release or sprint milestone.
  • To add a label or milestone, open an issue and use the sidebar controls.
  • You can also bulk-edit issues from the Issues list view.

 

Step 6: Commenting and Discussing the Issue

 

Communication happens in the issue’s comment thread:

  • Ask for additional information, logs, or steps if needed.
  • Use code blocks to share snippets:

# Example of a shell command in a bug report
npm install
npm test
  • Mention users with @username to notify them.
  • Reference commits or other issues with #123 or user/repo#123.

 

Step 7: Link Commits and Pull Requests to the Issue

 

When you start working on a fix:

  • Create a new branch:

git checkout -b fix/login-error
  • Work on your code and commit changes, referencing the issue number:

git add src/login.js
git commit -m "Fix login null pointer error. Fixes #42"
git push --set-upstream origin fix/login-error
  • Create a Pull Request (PR) on GitHub. The issue will be automatically linked.
  • Commits containing Fixes #42 will close the issue when merged.

 

Step 8: Review and Merge the Pull Request

 

In your PR:

  • Ensure automated tests pass and CI checks are green.
  • Add reviewers and request feedback.
  • Discuss any changes directly in the PR’s conversation.

Once approved:

  • Click Merge pull request.
  • Confirm merge and delete the branch if desired.
  • The referenced issue will close automatically if you used the “Fixes #” syntax.

 

Step 9: Monitor Closed and Open Issues

 

Use filters and views to track bug status:

  • Go to Issues > Open or Closed.
  • Use the search bar with queries like is:issue is:open label:bug.
  • Save custom filters as “Saved replies” or bookmarks.

 

Step 10: Best Practices for Bug Tracking

 

  • Encourage detailed bug reports with clear reproduction steps.
  • Use labels consistently (e.g., bug, enhancement).
  • Prioritize issues with a triage workflow (e.g., weekly review).
  • Automate closing issues via commit messages and PR merges.
  • Utilize GitHub Projects or Milestones for release planning.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022