Track bugs in GitHub Issues: Learn to set up repos, create bug reports, label issues, link commits, and streamline bug tracking with our guide.
Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
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.
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
Step 3: Enable and Configure Issue Settings
By default, Issues are enabled on new repositories. To customize settings:
Step 4: Create a New Bug Issue
Use the Issues tab to log a bug:
bug
, and link to a milestone.
Step 5: Use Labels, Assignees, and Milestones
Organize your issues to track priority and progress:
bug
, high priority
, needs info
.
Step 6: Commenting and Discussing the Issue
Communication happens in the issue’s comment thread:
# Example of a shell command in a bug report
npm install
npm test
@username
to notify them.#123
or user/repo#123
.
Step 7: Link Commits and Pull Requests to the Issue
When you start working on a fix:
git checkout -b fix/login-error
git add src/login.js
git commit -m "Fix login null pointer error. Fixes #42"
git push --set-upstream origin fix/login-error
Fixes #42
will close the issue when merged.
Step 8: Review and Merge the Pull Request
In your PR:
Once approved:
Step 9: Monitor Closed and Open Issues
Use filters and views to track bug status:
is:issue is:open label:bug
.
Step 10: Best Practices for Bug Tracking
bug
, enhancement
).When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.