Filing a good GitHub issue helps developers understand and reproduce your problem efficiently, increasing the chances of a quick resolution. Here’s a step-by-step guide on how to file a GitHub issue properly:
✅ Before You Open an Issue
-
Check the existing issues
Use the search bar (e.g., "is:issue is:open [your keyword]") to make sure your problem hasn’t already been reported.
-
Check the documentation / FAQs
Sometimes the answer is in the project’s README, docs, or FAQ section.
-
Try to reproduce the bug
Ensure the issue is consistent and can be reproduced with minimal steps.
📝 How to Write a Good GitHub Issue
Use a clear and descriptive title. For example:
❌ "It doesn't work"
✅ "Button click crashes app on Android 13"
🧩 Template Structure (when available)
Many repositories provide an issue template. If so, follow it! It usually includes:
1. Title
A concise summary of the issue.
2. Description
Explain what you expected to happen and what happened instead.
Expected behavior:
The user should be redirected after login.
Actual behavior:
User sees an error message: “Session expired.”
3. Steps to Reproduce
List the exact steps someone else can take to recreate the issue.
1. Go to Login page
2. Enter valid credentials
3. Click "Login"
4. Observe error
4. Environment / Context
Include relevant technical details:
- OS: Windows 11 / macOS Ventura / Ubuntu 22.04
- Browser: Chrome 114 / Firefox / Safari
- Device: iPhone 14 / Pixel 7
- Library/Software version: v2.5.1
- Any relevant config files or code snippets
5. Screenshots / Logs / Errors
Attach screenshots, console logs, stack traces, or error messages that help diagnose the issue.
6. Additional context
Any other information that might be useful:
- Recent changes
- Related issues
- Workarounds you’ve tried
🙋 Example of a Well-Written Issue
Title:
Login button throws "Session expired" error on Android 13
Body:
Description
When attempting to log in using Android 13, users receive a "Session expired" error immediately after clicking the login button, even with valid credentials.
Steps to Reproduce
- Open app on Android 13 device
- Navigate to Login screen
- Enter email and password
- Tap Login
Expected Behavior
User should be redirected to the home screen upon successful login.
Actual Behavior
Error dialog appears: "Session expired"
Environment
- OS: Android 13
- App Version: 2.5.1
- Device: Samsung Galaxy S22
Screenshots / Logs
[image: screenshot] open
E/LoginActivity: Session token invalid (code 401)
Additional Info
This issue does not occur on iOS or older Android versions. Clearing cache temporarily resolves it.
✅ Final Tips
- Be polite and constructive.
- Avoid posting duplicate issues.
- If reporting a security vulnerability, follow the project’s secure disclosure policy.
By following these guidelines, you’ll make it easier for maintainers to help you—and contribute to a healthier open-source community 🚀