You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/carson.yml
+77Lines changed: 77 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,12 @@ version: 1
4
4
subscribers:
5
5
- auto-labeler
6
6
- conflicts-notifier
7
+
- no-merge-commits
8
+
- no-response-closer
7
9
- pr-title-linter
8
10
- signed-commits
11
+
- template-enforcer
12
+
- welcome
9
13
settings:
10
14
auto-labeler:
11
15
sync_labels: true
@@ -35,6 +39,30 @@ settings:
35
39
You may want to sync :arrows_counterclockwise: your branch with upstream!
36
40
37
41
Ref: [Syncing Your Branch](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#updating-your-branch)
42
+
no-merge-commits:
43
+
name: 'Carson / no-merge-commits'
44
+
treat_merge_commits_as: failure
45
+
exempt_branches:
46
+
- head: '^develop$'
47
+
base: '^master$'
48
+
- head: '^4\.\d+$'
49
+
base: '^develop$'
50
+
no-response-closer:
51
+
rules:
52
+
- label: needs template
53
+
only: issues
54
+
days_until_close: 2
55
+
close_message: |-
56
+
Closing this issue: the description still does not follow the bug report template after {{days_until_close}} days.
57
+
58
+
Please open a new issue using the [bug report form](https://github.com/codeigniter4/CodeIgniter4/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml&title=Bug%3A+). For feature requests or support questions, please use the [forums](https://forum.codeigniter.com/forum-30.html).
59
+
- label: waiting for info
60
+
days_until_close: 14
61
+
unlabel_on_response: true
62
+
close_message: |-
63
+
Closing this {{type}}: there has been no response for {{days_until_close}} days after more information was requested.
64
+
65
+
If you can provide the requested details, leave a comment and a maintainer can reopen it.
38
66
pr-title-linter:
39
67
name: 'Carson / pr-title-linter'
40
68
rules:
@@ -44,3 +72,52 @@ settings:
44
72
signed-commits:
45
73
name: 'Carson / signed-commits'
46
74
treat_unsigned_as: failure
75
+
template-enforcer:
76
+
label: needs template
77
+
exempt_roles: [admin, maintain, write, triage]
78
+
message: |-
79
+
Hi there, @{{user}}! :wave:
80
+
81
+
It looks like this {{type}} does not follow our template:
82
+
83
+
{{violations}}
84
+
85
+
Please update the description to follow the template. The `{{label}}` label will be removed automatically once it does.
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).'
90
+
pull_requests:
91
+
rules:
92
+
- pattern: '\*\*Description\*\*'
93
+
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.'
94
+
- pattern: '\*\*Checklist:?\*\*'
95
+
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).'
96
+
- pattern: 'Explain what you have changed, and why\.'
97
+
description: 'Replace the placeholder text under **Description** with your own explanation.'
98
+
mode: forbid
99
+
welcome:
100
+
first_time:
101
+
pull_request: |-
102
+
Hi there, @{{user}}! :wave:
103
+
104
+
Thank you for sending this PR!
105
+
106
+
We expect the following in all Pull Requests (PRs).
107
+
- PRs must be sent to the [appropriate branch](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#branching)
108
+
- All git commits must be [GPG-signed](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#signing)
109
+
- Must follow our [style guide](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#php-style)
110
+
- Be [commented](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#comments) in the PHP source file
111
+
- Be documented in the [user guide](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#user-guide)
112
+
- Be [unit tested](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#unit-testing)
113
+
- Pass all checks in GitHub Actions
114
+
115
+
> [!IMPORTANT]
116
+
> We expect all code changes or bug-fixes to be accompanied by one or more tests added to our test suite to prove the code works.
117
+
118
+
If pull requests do not comply with the above, they will likely be closed. Since we are a team of volunteers, we don't have any more time to work
119
+
on the framework than you do. Please make it as painless for your contributions to be included as possible.
120
+
121
+
See https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md
0 commit comments