Skip to content

Commit ea0a8ad

Browse files
committed
chore(actions): update templates
1 parent 6c4e759 commit ea0a8ad

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ body:
7777
required: true
7878
- label: I have removed my token from display, if visible.
7979
required: true
80+
- label: I have read the [Contributing Guidelines](https://github.com/Pycord-Development/pycord/blob/master/CONTRIBUTING.md).
81+
required: true
8082
- type: textarea
8183
attributes:
8284
label: Additional Context

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,13 @@ body:
5050
attributes:
5151
label: Additional Context
5252
description: If there is anything else to say, please do so here.
53+
- type: checkboxes
54+
attributes:
55+
label: Checklist
56+
description: >
57+
Let's make sure you've properly done due diligence when requesting this feature!
58+
options:
59+
- label: I have searched the open issues for duplicates.
60+
required: true
61+
- label: I have read the [Contributing Guidelines](https://github.com/Pycord-Development/pycord/blob/master/CONTRIBUTING.md).
62+
required: true

.github/workflows/enforce-pr-template.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
const problems = [];
9191
9292
// Basic length check – tune as needed
93-
if (body.length < 150) {
93+
if (body.length < 200) {
9494
problems.push('PR description is too short (expected more content based on the template).');
9595
}
9696
@@ -107,6 +107,11 @@ jobs:
107107
}
108108
}
109109
110+
// Enforce Contribution reading line
111+
if (!body.includes('I have read the [Contributing Guidelines](https://github.com/Pycord-Development/pycord/blob/master/CONTRIBUTING.md)')) {
112+
problems.push('The line "I have read the [Contributing Guidelines](https://github.com/Pycord-Development/pycord/blob/master/CONTRIBUTING.md)" is missing.');
113+
}
114+
110115
// Enforce AI disclosure line
111116
if (!body.includes('AI Usage has been disclosed')) {
112117
problems.push('The line "AI Usage has been disclosed." is missing.');

0 commit comments

Comments
 (0)