From 67cca42be9f623b9aeb378b2d5e42073c91f5c86 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Mon, 21 Sep 2026 21:23:14 +0800 Subject: [PATCH] chore: enforce PR bodies follow the PR template --- .github/carson.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/carson.yml b/.github/carson.yml index 37cf003c5e9c..a9d92dda08ab 100644 --- a/.github/carson.yml +++ b/.github/carson.yml @@ -62,18 +62,24 @@ settings: message: |- Hi there, @{{user}}! :wave: - It looks like you opened an issue without following the bug report template: + It looks like this {{type}} does not follow our template: {{violations}} - * Bug report ([open an issue](https://github.com/codeigniter4/CodeIgniter4/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml&title=Bug%3A+)) - * For feature request or support question, please use the [forums](https://forum.codeigniter.com/forum-30.html). - Please update the description to follow the template. The `{{label}}` label will be removed automatically once it does. issues: - required_sections: - - '### PHP Version' - - '### CodeIgniter4 Version' + rules: + - pattern: '### PHP Version[\s\S]*### CodeIgniter4 Version' + description: 'Use the [bug report form](https://github.com/codeigniter4/CodeIgniter4/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml&title=Bug%3A+), which asks for your PHP and CodeIgniter4 versions. For a feature request or support question, please use the [forums](https://forum.codeigniter.com/forum-30.html).' + pull_requests: + rules: + - pattern: '\*\*Description\*\*' + description: 'Keep the **Description** heading from the [pull request template](https://github.com/codeigniter4/CodeIgniter4/blob/develop/.github/PULL_REQUEST_TEMPLATE.md) and explain what you have changed, and why.' + - pattern: '\*\*Checklist:?\*\*' + description: 'Keep the **Checklist** from the pull request template and tick the items that apply. See [what we expect in a pull request](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md).' + - pattern: 'Explain what you have changed, and why\.' + description: 'Replace the placeholder text under **Description** with your own explanation.' + mode: forbid welcome: first_time: pull_request: |-