Skip to content

Commit 10af896

Browse files
committed
chore: replace Mergeable with Carson's welcome, template-enforcer, and no-response-closer
1 parent 744e717 commit 10af896

3 files changed

Lines changed: 59 additions & 70 deletions

File tree

.github/carson.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ version: 1
44
subscribers:
55
- auto-labeler
66
- conflicts-notifier
7+
- no-response-closer
78
- pr-title-linter
89
- signed-commits
10+
- template-enforcer
11+
- welcome
912
settings:
1013
auto-labeler:
1114
sync_labels: true
@@ -35,6 +38,15 @@ settings:
3538
You may want to sync :arrows_counterclockwise: your branch with upstream!
3639
3740
Ref: [Syncing Your Branch](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#updating-your-branch)
41+
no-response-closer:
42+
rules:
43+
- label: needs template
44+
only: issues
45+
days_until_close: 2
46+
close_message: |-
47+
Closing this issue: the description still does not follow the bug report template after {{days_until_close}} days.
48+
49+
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).
3850
pr-title-linter:
3951
name: 'Carson / pr-title-linter'
4052
rules:
@@ -44,3 +56,46 @@ settings:
4456
signed-commits:
4557
name: 'Carson / signed-commits'
4658
treat_unsigned_as: failure
59+
template-enforcer:
60+
label: needs template
61+
exempt_roles: [admin, maintain, write, triage]
62+
message: |-
63+
Hi there, @{{user}}! :wave:
64+
65+
It looks like you opened an issue without following the bug report template:
66+
67+
{{violations}}
68+
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+
72+
Please update the description to follow the template. The `{{label}}` label will be removed automatically once it does.
73+
issues:
74+
required_sections:
75+
- '### PHP Version'
76+
- '### CodeIgniter4 Version'
77+
welcome:
78+
first_time:
79+
pull_request: |-
80+
Hi there, @{{user}}! :wave:
81+
82+
Thank you for sending this PR!
83+
84+
We expect the following in all Pull Requests (PRs).
85+
- PRs must be sent to the [appropriate branch](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#branching)
86+
- All git commits must be [GPG-signed](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#signing)
87+
- Must follow our [style guide](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#php-style)
88+
- Be [commented](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#comments) in the PHP source file
89+
- Be documented in the [user guide](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#user-guide)
90+
- Be [unit tested](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#unit-testing)
91+
- Pass all checks in GitHub Actions
92+
93+
> [!IMPORTANT]
94+
> 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.
95+
96+
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
97+
on the framework than you do. Please make it as painless for your contributions to be included as possible.
98+
99+
See https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md
100+
issue: false
101+
returning: false

.github/mergeable.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/run-carson.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- synchronize
99
- reopened
1010
- labeled
11+
- ready_for_review
1112
issues:
1213
types:
1314
- opened
@@ -17,6 +18,8 @@ on:
1718
branches:
1819
- develop
1920
- '4.*'
21+
schedule:
22+
- cron: '0 0 * * *'
2023

2124
permissions: {}
2225

@@ -25,7 +28,7 @@ jobs:
2528
runs-on: ubuntu-24.04
2629
steps:
2730
- name: Run Carson
28-
uses: NexusPHP/carson@44db1c01ff55b596cabec251fec6307dabd0852e # v1.4.3
31+
uses: NexusPHP/carson@e4b2fde33f32c47455df218cf1765702c15c3b8b # v1.6.0
2932
with:
3033
app_id: ${{ secrets.CARSON_APP_ID }}
3134
private_key: ${{ secrets.CARSON_PRIVATE_KEY }}

0 commit comments

Comments
 (0)