From a35ba614218b8d6c0624f21eff08343d9b0224c8 Mon Sep 17 00:00:00 2001 From: Georgi Hristov Date: Sun, 17 May 2026 00:25:06 +0300 Subject: [PATCH] docs: add commit and pull request convention guidelines added Conventional Commits guidelines documented recommended pull request title format added branch naming examples documented common commit types and usage examples improved contributor workflow documentation --- CONTRIBUTING.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 892fec6..ada0c2b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,7 +5,7 @@ Thank you for your interest in contributing to DebugProbe.AspNetCore. ## Getting Started Clone the repository and open the solution: - +co ```bash git clone https://github.com/georgidhristov/DebugProbe.AspNetCore.git ``` @@ -30,23 +30,69 @@ Run the sample API project to test DebugProbe functionality and UI behavior duri ## Branch Naming -Use descriptive lowercase branch names: +Use descriptive lowercase branch names. -Example: +Examples: ```text feature/add-request-filtering +fix/handle-empty-response-body +refactor/split-compare-engine +ci/update-github-actions +docs/update-contributing-guide +``` + +## Commit Message Convention + +This repository follows the [Conventional Commits](https://www.conventionalcommits.org/) specification. + +Format: + +```text +type: short description +``` + +Examples: + +```text +feat: add payload type badges +fix: handle empty compare bodies +refactor: split compare engine +docs: update README screenshots +ci: run automated tests in GitHub Actions +test: add request persistence tests ``` +Common commit types: + +- `feat` → new feature +- `fix` → bug fix +- `refactor` → internal code restructuring +- `docs` → documentation changes +- `test` → automated tests +- `ci` → CI/CD and GitHub Actions +- `chore` → maintenance and tooling updates + ## Pull Requests Before opening a pull request: - Ensure the project builds successfully +- Ensure all automated tests pass - Keep pull requests focused and small - Provide a clear description of the change - Link related issues when applicable +Pull request titles should also follow Conventional Commits. + +Examples: + +```text +feat: add request filtering +fix: persist requests on unhandled exceptions +docs: improve contributing guidelines +``` + ## Coding Style - Keep implementations simple and maintainable