Skip to content

Commit 514b9f4

Browse files
authored
chore: enforce PR bodies follow the PR template (#10577)
1 parent 81af068 commit 514b9f4

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
@@ -71,18 +71,24 @@ settings:
7171
message: |-
7272
Hi there, @{{user}}! :wave:
7373
74-
It looks like you opened an issue without following the bug report template:
74+
It looks like this {{type}} does not follow our template:
7575
7676
{{violations}}
7777
78-
* Bug report ([open an issue](https://github.com/codeigniter4/CodeIgniter4/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml&title=Bug%3A+))
79-
* For feature request or support question, please use the [forums](https://forum.codeigniter.com/forum-30.html).
80-
8178
Please update the description to follow the template. The `{{label}}` label will be removed automatically once it does.
8279
issues:
83-
required_sections:
84-
- '### PHP Version'
85-
- '### CodeIgniter4 Version'
80+
rules:
81+
- pattern: '### PHP Version[\s\S]*### CodeIgniter4 Version'
82+
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).'
83+
pull_requests:
84+
rules:
85+
- pattern: '\*\*Description\*\*'
86+
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.'
87+
- pattern: '\*\*Checklist:?\*\*'
88+
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).'
89+
- pattern: 'Explain what you have changed, and why\.'
90+
description: 'Replace the placeholder text under **Description** with your own explanation.'
91+
mode: forbid
8692
welcome:
8793
first_time:
8894
pull_request: |-

0 commit comments

Comments
 (0)