Thank you for considering contributing to Webhook Reporter! We welcome contributions of all kinds, including bug reports, feature suggestions, code improvements, and documentation enhancements.
To contribute, you'll need:
- Basic understanding of Git and Python.
- A webhook URL to test your changes (e.g., for Discord, Slack, or Teams).
If you're new to open-source contributions, check out this guide to learn the basics.
If you've found a bug or have a feature request:
- Check Existing Issues: Look through open issues to see if your concern has already been addressed.
- Open a New Issue: Provide a clear and descriptive title and include as much relevant information as possible:
- Steps to reproduce (for bugs).
- Expected behavior.
- Screenshots, logs, or other helpful context.
- Check if a similar suggestion already exists in open issues.
- If not, create a new feature request issue.
We appreciate code contributions that fix bugs, introduce new features, or improve the project. Follow these steps to get started:
- Fork the repository to your own GitHub account.
- Clone your forked repository:
git clone https://github.com/Moeh-Jama/webhook-reporter.git
- Create a new
.env
file using the provided .env.sample:cp .env.sample .env
- Install dependencies:
pip install -r requirements.txt
-
Create a new branch for your work:
git checkout -b feature/your-feature-name
Example:
git checkout -b feature/coverage-parser-jest
-
Make your changes in the codebase.
-
Test your changes:
- Ensure all existing tests pass.
- Add new tests for any new functionality you've introduced.
- Use the
.env
file to test with a webhook URL for Discord, Slack, or Teams.
-
Commit your changes:
git add . git commit -m "Describe your changes"
- Write clear, concise, and descriptive commit messages.
- Follow best practices for writing commit messages:
- Use the imperative mood (e.g., "Add feature" instead of "Added feature").
- Be concise but informative.
- Explain the "what" and "why" of the change, not just the "how."
- For detailed guidance, refer to this excellent resource: How to Write a Git Commit Message by cbeams.
- Push your branch to your forked repository:
git push origin feature/your-feature-name
- Open a pull request:
- Go to the original repository on GitHub.
- Click Pull Requests and then New Pull Request.
- Select your branch and describe your changes in detail.
- Follow PEP 8 guidelines for Python code.
- Use meaningful variable and function names.
- Write concise and clear comments where necessary.
- Ensure existing tests pass before submitting your PR:
pytest
- Write tests for new functionality using Pytest.
- Use clear and descriptive commit messages:
- ✅ Good:
Add coverage parser for Jest framework
- ❌ Bad:
Fix stuff
- ✅ Good:
When opening a pull request:
- Ensure your branch is up to date with the latest changes from
main
. - Provide a clear and detailed description of the changes.
- Reference any relevant issues (e.g.,
Closes #123
).
For major changes, open an issue first to discuss your proposal.
Thank you for your contribution! 🎉