Skip to content

Commit d3f14c5

Browse files
committed
Make AI use required in templates & update automated PR reply
1 parent 89f2894 commit d3f14c5

File tree

10 files changed

+70
-47
lines changed

10 files changed

+70
-47
lines changed

.github/ISSUE_TEMPLATE/bug_issue.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type: Bug
99
<!--
1010
Instructions:
1111
* Fill out the sections below, replace …'s with information about your issue
12+
* REQUIRED: Always fill in the AI usage section at the bottom
1213
* Use the 'preview' function above this text box to verify formatting before submitting
1314
-->
1415

@@ -69,10 +70,11 @@ Tell us about your environment, including:
6970
7071

7172
<!--
72-
AI USAGE - DEEP guidelines
73+
AI USAGE - REQUIRED
7374
74-
If AI was used in preparing this issue, please fill in the section below.
75-
Our DEEP guidelines ask that when using AI you:
75+
State explicitly whether you didn't use or used AI & how.
76+
77+
If you used it, ensure that the issue is aligned with [Using AI](https://learningequality.org/contributing-to-our-open-code-base/#using-generative-ai as well) as well as our DEEP framework. DEEP asks you:
7678
7779
Disclose - Be open about when you've used AI for support.
7880
Engage critically - Question what is generated. Verify claims and sources.
@@ -89,7 +91,6 @@ Examples of good disclosures:
8991
cross-checked the key points against the original feedback and rewrote
9092
the requirements in my own words."
9193
92-
If AI was not used, delete the section below.
9394
-->
9495

9596
## AI usage

.github/ISSUE_TEMPLATE/enhancement_issue.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Note that anything written between these symbols will not appear in the actual,
1010
1111
Instructions:
1212
- Start by replacing the content in "[Title]" and give a "[Brief description]" of the issue above
13+
- REQUIRED: Always fill in the AI usage section at the bottom
1314
- Please remove any unused, optional sections below.
1415
1516
-->
@@ -31,10 +32,11 @@ Instructions:
3132

3233

3334
<!--
34-
AI USAGE - DEEP guidelines
35+
AI USAGE - REQUIRED
3536
36-
If AI was used in preparing this issue, please fill in the section below.
37-
Our DEEP guidelines ask that when using AI you:
37+
State explicitly whether you didn't use or used AI & how.
38+
39+
If you used it, ensure that the issue is aligned with [Using AI](https://learningequality.org/contributing-to-our-open-code-base/#using-generative-ai as well) as well as our DEEP framework. DEEP asks you:
3840
3941
Disclose - Be open about when you've used AI for support.
4042
Engage critically - Question what is generated. Verify claims and sources.
@@ -51,7 +53,6 @@ Examples of good disclosures:
5153
cross-checked the key points against the original feedback and rewrote
5254
the requirements in my own words."
5355
54-
If AI was not used, delete the section below.
5556
-->
5657

5758
## AI usage

.github/ISSUE_TEMPLATE/feature_issue.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ type: Tracking Issue
77

88
---
99

10+
<!--
11+
12+
- REQUIRED: Always fill in the AI usage section at the bottom
13+
14+
-->
15+
1016
## Requirements
1117

1218
### What problem are we solving?
@@ -56,10 +62,11 @@ type: Tracking Issue
5662
- [Link]
5763

5864
<!--
59-
AI USAGE - DEEP guidelines
65+
AI USAGE - REQUIRED
66+
67+
State explicitly whether you didn't use or used AI & how.
6068
61-
If AI was used in preparing this issue, please fill in the section below.
62-
Our DEEP guidelines ask that when using AI you:
69+
If you used it, ensure that the issue is aligned with [Using AI](https://learningequality.org/contributing-to-our-open-code-base/#using-generative-ai as well) as well as our DEEP framework. DEEP asks you:
6370
6471
Disclose - Be open about when you've used AI for support.
6572
Engage critically - Question what is generated. Verify claims and sources.
@@ -76,7 +83,6 @@ Examples of good disclosures:
7683
cross-checked the key points against the original feedback and rewrote
7784
the requirements in my own words."
7885
79-
If AI was not used, delete the section below.
8086
-->
8187

8288
## AI usage

.github/ISSUE_TEMPLATE/other_issue.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,22 @@ name: Other issue
33
about: For issues that don't fit any other category
44
---
55

6+
<!--
7+
8+
- REQUIRED: Always fill in the AI usage section at the bottom
9+
10+
-->
11+
612
## Description
713

814

915

1016
<!--
11-
AI USAGE - DEEP guidelines
17+
AI USAGE - REQUIRED
18+
19+
State explicitly whether you didn't use or used AI & how.
1220
13-
If AI was used in preparing this issue, please fill in the section below.
14-
Our DEEP guidelines ask that when using AI you:
21+
If you used it, ensure that the issue is aligned with [Using AI](https://learningequality.org/contributing-to-our-open-code-base/#using-generative-ai as well) as well as our DEEP framework. DEEP asks you:
1522
1623
Disclose - Be open about when you've used AI for support.
1724
Engage critically - Question what is generated. Verify claims and sources.
@@ -28,7 +35,6 @@ Examples of good disclosures:
2835
cross-checked the key points against the original feedback and rewrote
2936
the requirements in my own words."
3037
31-
If AI was not used, delete the section below.
3238
-->
3339

3440
## AI usage

.github/ISSUE_TEMPLATE/product_issue.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ about: Create a product issue
44
type: Tracking Issue
55
---
66

7+
<!--
8+
9+
- REQUIRED: Always fill in the AI usage section at the bottom
10+
11+
-->
12+
713
_[General guidance: Product issues should describe the feature, but are not actually technically specced for dev work.]_
814

915
## Overview
@@ -23,10 +29,11 @@ _[Then, more detail. Provide a short summary and/or list key outcomes that the u
2329

2430

2531
<!--
26-
AI USAGE - DEEP guidelines
32+
AI USAGE - REQUIRED
33+
34+
State explicitly whether you didn't use or used AI & how.
2735
28-
If AI was used in preparing this issue, please fill in the section below.
29-
Our DEEP guidelines ask that when using AI you:
36+
If you used it, ensure that the issue is aligned with [Using AI](https://learningequality.org/contributing-to-our-open-code-base/#using-generative-ai as well) as well as our DEEP framework. DEEP asks you:
3037
3138
Disclose - Be open about when you've used AI for support.
3239
Engage critically - Question what is generated. Verify claims and sources.
@@ -43,7 +50,6 @@ Examples of good disclosures:
4350
cross-checked the key points against the original feedback and rewrote
4451
the requirements in my own words."
4552
46-
If AI was not used, delete the section below.
4753
-->
4854

4955
## AI usage

.github/ISSUE_TEMPLATE/technical_task_issue.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ type: Task
66

77
<!--
88
Instructions:
9+
- REQUIRED: Always fill in the AI usage section at the bottom
910
- Fill in Overview, The Change, and Acceptance Criteria (required)
1011
- Delete any optional sections you don't need
1112
- Remove all instructional comments before submitting
@@ -103,10 +104,11 @@ Links to documentation, code references, or relevant libraries.
103104
-->
104105

105106
<!--
106-
AI USAGE - DEEP guidelines
107+
AI USAGE - REQUIRED
107108
108-
If AI was used in preparing this issue, please fill in the section below.
109-
Our DEEP guidelines ask that when using AI you:
109+
State explicitly whether you didn't use or used AI & how.
110+
111+
If you used it, ensure that the issue is aligned with [Using AI](https://learningequality.org/contributing-to-our-open-code-base/#using-generative-ai as well) as well as our DEEP framework. DEEP asks you:
110112
111113
Disclose - Be open about when you've used AI for support.
112114
Engage critically - Question what is generated. Verify claims and sources.
@@ -123,7 +125,6 @@ Examples of good disclosures:
123125
cross-checked the key points against the original feedback and rewrote
124126
the requirements in my own words."
125127
126-
If AI was not used, delete the section below.
127128
-->
128129

129130
## AI usage

.github/ISSUE_TEMPLATE/technical_tracking_issue.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ type: Tracking Issue
77

88
<!--
99
Instructions:
10+
- REQUIRED: Always fill in the AI usage section at the bottom
1011
- Fill in Overview and Scope (required)
1112
- Delete any optional sections you don't need
1213
- Remove all instructional comments before submitting
@@ -53,10 +54,11 @@ Otherwise, leave testing guidance to individual task issues.
5354
-->
5455

5556
<!--
56-
AI USAGE - DEEP guidelines
57+
AI USAGE - REQUIRED
5758
58-
If AI was used in preparing this issue, please fill in the section below.
59-
Our DEEP guidelines ask that when using AI you:
59+
State explicitly whether you didn't use or used AI & how.
60+
61+
If you used it, ensure that the issue is aligned with [Using AI](https://learningequality.org/contributing-to-our-open-code-base/#using-generative-ai as well) as well as our DEEP framework. DEEP asks you:
6062
6163
Disclose - Be open about when you've used AI for support.
6264
Engage critically - Question what is generated. Verify claims and sources.
@@ -73,7 +75,6 @@ Examples of good disclosures:
7375
cross-checked the key points against the original feedback and rewrote
7476
the requirements in my own words."
7577
76-
If AI was not used, delete the section below.
7778
-->
7879

7980
## AI usage

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<!--
2-
1. Following guidance below, replace …'s with your own words
3-
2. After saving the PR, tick of completed checklist items
4-
3. Skip checklist items that are not applicable or not necessary
5-
4. Delete instruction/comment blocks
2+
1. REQUIRED: Always fill in the AI usage section at the bottom
3+
2. Following guidance below, replace …'s with your own words
4+
3. After saving the PR, tick of completed checklist items
5+
4. Skip checklist items that are not applicable or not necessary
6+
5. Delete instruction/comment blocks
67
-->
78

89
## Summary
@@ -31,28 +32,27 @@
3132
3233

3334
<!--
34-
AI USAGE - DEEP guidelines
35+
AI USAGE - REQUIRED
3536
36-
If AI was used in preparing this PR, please fill in the section below.
37-
Our DEEP guidelines ask that when using AI you:
37+
State explicitly whether you didn't use or used AI & how.
38+
39+
If you used it, ensure that the PR is aligned with [Using AI](https://learningequality.org/contributing-to-our-open-code-base/#using-generative-ai as well) as well as our DEEP framework. DEEP asks you:
3840
3941
Disclose - Be open about when you've used AI for support.
40-
Engage critically - Question what is generated. Review code for correctness and unnecessary complexity.
41-
Edit - Review and refine AI output. Remove unnecessary code and verify it still works after your edits.
42+
Engage critically - Question what is generated. Verify claims and sources.
43+
Edit - Digest and refine AI output rather than copy-pasting it.
4244
Process sharing - Explain how you used the AI so others can learn.
4345
4446
Examples of good disclosures:
4547
46-
"I used Claude Code to implement the component, prompting it to follow
47-
the pattern in ComponentX. I reviewed the generated code, removed
48-
unnecessary error handling, and verified the tests pass."
48+
"I used Gemini to help draft this issue from my rough notes. I edited
49+
the description for accuracy, confirmed the reproduction steps myself,
50+
and trimmed the verbose output."
4951
50-
"I brainstormed the approach with Gemini, then had it write failing
51-
tests for the feature. After reviewing the tests, I used Claude Code
52-
to generate the implementation. I refactored the output to reduce
53-
verbosity and ran the full test suite."
52+
"This is based on a Claude summary of clearinghouse feedback. I
53+
cross-checked the key points against the original feedback and rewrote
54+
the requirements in my own words."
5455
55-
If AI was not used, delete the section below.
5656
-->
5757

5858
## AI usage

scripts/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const BOT_MESSAGE_ISSUE_NOT_OPEN = `Hi! 👋 \n\n Thanks so much for your intere
9292

9393
const BOT_MESSAGE_ALREADY_ASSIGNED = `Hi! 👋 \n\n Thanks so much for your interest! **This issue is already assigned. Visit [Contributing guidelines](https://learningequality.org/contributing-to-our-open-code-base) to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.** \n\n We really appreciate your willingness to help. 😊${GSOC_NOTE}`;
9494

95-
const BOT_MESSAGE_PULL_REQUEST = `👋 Thanks for contributing! \n\n We will assign a reviewer within the next two weeks. In the meantime, please ensure that:\n\n- [ ] **You ran \`pre-commit\` locally**\n- [ ] **All issue requirements are satisfied**\n- [ ] **The contribution is aligned with our [Contributing guidelines](https://learningequality.org/contributing-to-our-open-code-base). Pay extra attention to [Using generative AI](https://learningequality.org/contributing-to-our-open-code-base/#using-generative-ai). Pull requests that don't follow the guidelines will be closed.**\n\nWe'll be in touch! 😊`;
95+
const BOT_MESSAGE_PULL_REQUEST = (author) => `👋 Hi @${author}, thanks for contributing! \n\n **For the review process to begin, please verify that the following is satisfied:**\n\n- [ ] **Contribution is aligned with our [contributing guidelines](https://learningequality.org/contributing-to-our-open-code-base)**\n- [ ] **Pull request description has correctly filled _AI usage_ section & follows our AI guidance:**\n\n <details>\n <summary><b><i>AI guidance</i></b></summary>\n\n <br>\n\n **State explicitly whether you didn't use or used AI & how.**\n\n If you used it, ensure that the PR is aligned with [Using AI](https://learningequality.org/contributing-to-our-open-code-base/#using-generative-ai) as well as our DEEP framework. DEEP asks you:\n\n - **Disclose** — Be open about when you've used AI for support.\n - **Engage critically** — Question what is generated. Verify claims and sources.\n - **Edit** — Digest and refine AI output rather than copy-pasting it.\n - **Process sharing** — Explain how you used the AI so others can learn.\n\n <br>\n\n Examples of good disclosures:\n\n > "I used Gemini to help draft this issue from my rough notes. I edited the description for accuracy, confirmed the reproduction steps myself, and trimmed the verbose output."\n\n > "This is based on a Claude summary of clearinghouse feedback. I cross-checked the key points against the original feedback and rewrote the requirements in my own words."\n\n </details>\n\nAlso check that issue requirements are satisfied & you ran \`pre-commit\` locally. \n\n**Pull requests that don't follow the guidelines will be closed.**\n\n**Reviewer assignment can take up to 2 weeks.**`;
9696

9797
const HOLIDAY_MESSAGE = `Season's greetings! 👋 \n\n We'd like to thank everyone for another year of fruitful collaborations, engaging discussions, and for the continued support of our work. **Learning Equality will be on holidays from December 22 to January 5.** We look forward to much more in the new year and wish you a very happy holiday season!${GSOC_NOTE}`;
9898

scripts/contributor-pr-reply.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ module.exports = async ({ github, context, core }) => {
77
const number = context.payload.pull_request.number;
88
const url = context.payload.pull_request.html_url;
99
const title = context.payload.pull_request.title;
10+
const author = context.payload.pull_request.user.login;
1011

11-
const botMessageUrl = await sendBotMessage(number, BOT_MESSAGE_PULL_REQUEST, {
12+
const botMessageUrl = await sendBotMessage(number, BOT_MESSAGE_PULL_REQUEST(author), {
1213
github,
1314
context,
1415
core,

0 commit comments

Comments
 (0)