From 9d0d9a1f99b5dc9ac1450a9f4944589e9d543d74 Mon Sep 17 00:00:00 2001 From: gagik Date: Wed, 14 May 2025 11:01:58 +0200 Subject: [PATCH 1/2] chore(ci): add a PR title check workflow To make our commit messages more consistent, adds a PR check without enforcing Jira tickets being included for the time being. --- .github/workflows/check-pr-title.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/check-pr-title.yml diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml new file mode 100644 index 0000000..f6785dd --- /dev/null +++ b/.github/workflows/check-pr-title.yml @@ -0,0 +1,29 @@ +name: "Check PR Title" +on: + pull_request: + types: + [ + opened, + synchronize, + reopened, + ready_for_review, + labeled, + unlabeled, + converted_to_draft, + edited, + ] + +permissions: + pull-requests: read # to read PR title and labels + +jobs: + check-pr-title: + name: Check PR Title + runs-on: ubuntu-latest + steps: + - name: Enforce conventional commit style + uses: realm/ci-actions/title-checker@d6cc8f067474759d38e6d24e272027b4c88bc0a9 + with: + regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|ops){1}(\([\w\-\.]+\))?(!)?: .*' + error-hint: 'Invalid PR title. Make sure it follows the conventional commit specification (i.e. "(): ") or add the no-title-validation label' + ignore-labels: "no-title-validation" From b99e3f7214410256a083fd4067e992debc9d57ba Mon Sep 17 00:00:00 2001 From: Wojciech Trocki Date: Wed, 14 May 2025 11:06:34 +0200 Subject: [PATCH 2/2] chore: add contributing note --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9eb3620..b35e5f4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -55,7 +55,7 @@ This project implements a Model Context Protocol (MCP) server for MongoDB and Mo npm run inspect ``` -4. Commit your changes with a descriptive commit message +4. Commit your changes using [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) format. ## Adding tests to the MCP Server