From 0fe4bd0ca24125c79976ce4f305070d7d231c9b7 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Tue, 31 Dec 2024 16:49:06 +0800 Subject: [PATCH] chore: clean up issue templates (#9355) --- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/ISSUE_TEMPLATE/feature_request.md | 11 ------ .github/ISSUE_TEMPLATE/planned-work.md | 4 +-- .github/mergeable.yml | 41 +++++++++++++++++++++++ 4 files changed, 44 insertions(+), 14 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/mergeable.yml diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 9bec3b2d3431..d399e41dca3e 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -2,7 +2,7 @@ blank_issues_enabled: false contact_links: - name: CodeIgniter Forum url: https://forum.codeigniter.com/forum-30.html - about: Please ask your support questions in the forums. Thanks! + about: Please ask your support questions and/or feature requests in the forums. Thanks! - name: CodeIgniter Slack channel url: https://codeigniterchat.slack.com diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 3bd2d0a6c44f..000000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Feature request -about: How to submit a feature request -title: '' -labels: '' -assignees: '' - ---- - -Please submit feature requests to our [forum](https://forum.codeigniter.com/forum-29.html). -We use github issues to track bugs and planned work. diff --git a/.github/ISSUE_TEMPLATE/planned-work.md b/.github/ISSUE_TEMPLATE/planned-work.md index 4faa45ed874e..3da11a7dbc58 100644 --- a/.github/ISSUE_TEMPLATE/planned-work.md +++ b/.github/ISSUE_TEMPLATE/planned-work.md @@ -1,10 +1,10 @@ --- name: Planned work -about: Approved work planning +about: Maintainers' space. DO NOT use this for your bug reports! title: 'Dev: ' labels: dev assignees: '' --- -Repo maintainers will create "issues" for planned work, so it can be tracked. +Maintainers will create "issues" for planned work, so it can be tracked. diff --git a/.github/mergeable.yml b/.github/mergeable.yml new file mode 100644 index 000000000000..d23053efa3e2 --- /dev/null +++ b/.github/mergeable.yml @@ -0,0 +1,41 @@ +# https://mergeable.readthedocs.io/en/latest/configuration.html + +version: 2 +mergeable: + - when: issues.opened + validate: + - do: description + and: + - must_include: + regex: '^### PHP Version' + - must_include: + regex: '^### CodeIgniter4 Version' + - do: author + and: + - must_exclude: + regex: 'kenjis' + - must_exclude: + regex: 'lonnieezell' + - must_exclude: + regex: 'MGatner' + - must_exclude: + regex: 'michalsn' + - must_exclude: + regex: 'paulbalandan' + - must_exclude: + regex: 'samsonasik' + fail: + - do: comment + payload: | + Hi there! :wave: + + It looks like you opened an issue without following the bug report template: + + Bug report ([open an issue](https://github.com/codeigniter4/CodeIgniter4/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml&title=Bug%3A+)) + + If you are opening a feature request or support question, please do so in the [forums](https://forum.codeigniter.com/forum-30.html). + + The current issue will be closed. This is a precaution to save maintainers' time, I hope you'll understand. + + Sincerely, the mergeable bot 🤖 + - do: close