Skip to content

Commit 67cca42

Browse files
committed
chore: enforce PR bodies follow the PR template
1 parent c21d575 commit 67cca42

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

‎.github/carson.yml‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,24 @@ settings:
6262
message: |-
6363
Hi there, @{{user}}! :wave:
6464
65-
It looks like you opened an issue without following the bug report template:
65+
It looks like this {{type}} does not follow our template:
6666
6767
{{violations}}
6868
69-
* Bug report ([open an issue](https://github.com/codeigniter4/CodeIgniter4/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml&title=Bug%3A+))
70-
* For feature request or support question, please use the [forums](https://forum.codeigniter.com/forum-30.html).
71-
7269
Please update the description to follow the template. The `{{label}}` label will be removed automatically once it does.
7370
issues:
74-
required_sections:
75-
- '### PHP Version'
76-
- '### CodeIgniter4 Version'
71+
rules:
72+
- pattern: '### PHP Version[\s\S]*### CodeIgniter4 Version'
73+
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).'
74+
pull_requests:
75+
rules:
76+
- pattern: '\*\*Description\*\*'
77+
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.'
78+
- pattern: '\*\*Checklist:?\*\*'
79+
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).'
80+
- pattern: 'Explain what you have changed, and why\.'
81+
description: 'Replace the placeholder text under **Description** with your own explanation.'
82+
mode: forbid
7783
welcome:
7884
first_time:
7985
pull_request: |-

0 commit comments

Comments
 (0)