Skip to content

Commit 1111ea7

Browse files
Add a field for AI policy compliance in the issues/PRs templates (#5803)
* Convert issue templates to Issue Forms with AI policy disclosure Convert the 3 markdown issue templates (.md) to GitHub Issue Forms (.yml) to enable interactive form elements, and add an AI disclosure section per the AI Policy (AI_POLICY.md): - Required checkbox to acknowledge having read the AI Policy - Required dropdown for AI usage (none / fully / partially with explanation) - Optional input for model(s) used (open-weight examples in placeholder) - Optional input for tool(s) used (FOSS examples in placeholder) - Optional textarea to explain how AI was used (for the partial option) The existing template content and structure is preserved, only converted from markdown to the Issue Forms schema. * Align pull request template with AI policy disclosure Update the pull request template to match the AI disclosure standards introduced in the issue templates: - Use relative link to AI_POLICY.md instead of absolute GitHub URL - Update dropdown wording to match issue forms - Use open-weight models in placeholder examples - Use FOSS tools in placeholder examples - Add 'How was AI used?' section for the partial-usage explanation * Fix assignees field type in issue templates Use an empty array instead of an empty string for the assignees field, as required by the GitHub Issue Forms schema. * Enhance the PR template * Reword the issue templates to be consistent with the PR template * Enhance the PR template * Typo coming from the original template Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Better wording for what comes from the original templates Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Switch to full URLs since relative URL break inconsistently --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 9e8d102 commit 1111ea7

7 files changed

Lines changed: 291 additions & 92 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: Bug report
2+
description: Create a bug report to help us improve Invidious
3+
title: "[Bug] "
4+
labels: ["bug"]
5+
assignees: []
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
BEFORE TRYING TO REPORT A BUG:
11+
12+
* Read the FAQ: https://docs.invidious.io/faq/!
13+
* Use the search function to check if there is already an issue open for your problem: https://github.com/search?q=repo%3Aiv-org%2Finvidious+replace+me+with+your+bug&type=issues!
14+
15+
MAKE SURE TO FOLLOW THE TWO STEPS ABOVE BEFORE REPORTING A BUG. A BUG THAT ALREADY EXISTS WILL BE IMMEDIATELY CLOSED.
16+
17+
If you want to suggest a new feature please use "Feature request" instead
18+
If you want to suggest an enhancement to an existing feature please use "Enhancement" instead
19+
- type: textarea
20+
id: describe-bug
21+
attributes:
22+
label: Describe the bug
23+
description: A clear and concise description of what the bug is.
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: steps
28+
attributes:
29+
label: Steps to Reproduce
30+
description: Steps to reproduce the behavior.
31+
placeholder: |
32+
1. Go to '...'
33+
2. Click on '....'
34+
3. Scroll down to '....'
35+
4. See error
36+
validations:
37+
required: true
38+
- type: textarea
39+
id: logs
40+
attributes:
41+
label: Logs
42+
description: If applicable, copy the logs that appear on the page where the error is reported.
43+
render: shell
44+
validations:
45+
required: false
46+
- type: textarea
47+
id: screenshots
48+
attributes:
49+
label: Screenshots
50+
description: If applicable, add screenshots to help explain your problem.
51+
validations:
52+
required: false
53+
- type: textarea
54+
id: context
55+
attributes:
56+
label: Additional context
57+
description: Add any other context about the problem here.
58+
placeholder: |
59+
- Browser (if applicable):
60+
- OS (if applicable):
61+
validations:
62+
required: false
63+
- type: checkboxes
64+
id: ai-policy
65+
attributes:
66+
label: AI Policy
67+
options:
68+
- label: I have read the [AI Policy](https://github.com/iv-org/invidious/blob/master/AI_POLICY.md) and understand the disclosure requirements
69+
required: true
70+
- type: dropdown
71+
id: ai-usage
72+
attributes:
73+
label: AI usage
74+
description: Did you use AI to help create this issue?
75+
options:
76+
- AI was not used to write this issue
77+
- AI was used to fully write this issue
78+
- AI was used to partially create this issue (explain how)
79+
validations:
80+
required: true
81+
- type: input
82+
id: ai-models
83+
attributes:
84+
label: Model(s) used
85+
description: If you used AI, list the EXACT model(s) used. Leave empty if you did not use AI.
86+
placeholder: "e.g. Llama 3.1, Mistral, Qwen 2.5, DeepSeek-R1"
87+
validations:
88+
required: false
89+
- type: input
90+
id: ai-tools
91+
attributes:
92+
label: Tool(s) used
93+
description: If you used AI, list the tool(s) used to interact with it. Leave empty if you did not use AI.
94+
placeholder: "e.g. Ollama, Open WebUI, Continue"
95+
validations:
96+
required: false
97+
- type: textarea
98+
id: ai-explanation
99+
attributes:
100+
label: How was AI used?
101+
description: If you selected "AI was used to partially create this issue (explain how)" above, explain how AI was used here. Leave empty otherwise.
102+
validations:
103+
required: false

.github/ISSUE_TEMPLATE/enhancement.md

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Enhancement
2+
description: Suggest an enhancement for an existing feature
3+
title: "[Enhancement] "
4+
labels: ["enhancement"]
5+
assignees: []
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Please use the search function to check if the desired function has already been requested by someone else
11+
If you want to suggest a new feature please use "Feature request" instead
12+
If you want to report a bug, please use "Bug report" instead
13+
- type: textarea
14+
id: problem
15+
attributes:
16+
label: Is your enhancement request related to a problem? Please describe.
17+
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
18+
validations:
19+
required: true
20+
- type: textarea
21+
id: solution
22+
attributes:
23+
label: Describe the solution you'd like
24+
description: A clear and concise description of what you want to happen.
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: alternatives
29+
attributes:
30+
label: Describe alternatives you've considered
31+
description: A clear and concise description of any alternative solutions or features you've considered.
32+
validations:
33+
required: false
34+
- type: textarea
35+
id: context
36+
attributes:
37+
label: Additional context
38+
description: Add any other context or screenshots about the enhancement here.
39+
validations:
40+
required: false
41+
- type: checkboxes
42+
id: ai-policy
43+
attributes:
44+
label: AI Policy
45+
options:
46+
- label: I have read the [AI Policy](https://github.com/iv-org/invidious/blob/master/AI_POLICY.md) and understand the disclosure requirements
47+
required: true
48+
- type: dropdown
49+
id: ai-usage
50+
attributes:
51+
label: AI usage
52+
description: Did you use AI to help create this issue?
53+
options:
54+
- AI was not used to write this issue
55+
- AI was used to fully write this issue
56+
- AI was used to partially create this issue (explain how)
57+
validations:
58+
required: true
59+
- type: input
60+
id: ai-models
61+
attributes:
62+
label: Model(s) used
63+
description: If you used AI, list the EXACT model(s) used. Leave empty if you did not use AI.
64+
placeholder: "e.g. Llama 3.1, Mistral, Qwen 2.5, DeepSeek-R1"
65+
validations:
66+
required: false
67+
- type: input
68+
id: ai-tools
69+
attributes:
70+
label: Tool(s) used
71+
description: If you used AI, list the tool(s) used to interact with it. Leave empty if you did not use AI.
72+
placeholder: "e.g. Ollama, Open WebUI, Continue"
73+
validations:
74+
required: false
75+
- type: textarea
76+
id: ai-explanation
77+
attributes:
78+
label: How was AI used?
79+
description: If you selected "AI was used to partially create this issue (explain how)" above, explain how AI was used here. Leave empty otherwise.
80+
validations:
81+
required: false

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
title: "[Feature request] "
4+
labels: ["feature-request"]
5+
assignees: []
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Please use the search function to check if the desired function has already been requested by someone else
11+
If you want to suggest an enhancement to an existing feature please use "Enhancement" instead
12+
If you want to report a bug, please use "Bug report" instead
13+
- type: textarea
14+
id: problem
15+
attributes:
16+
label: Is your feature request related to a problem? Please describe.
17+
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
18+
validations:
19+
required: true
20+
- type: textarea
21+
id: solution
22+
attributes:
23+
label: Describe the solution you'd like
24+
description: A clear and concise description of what you want to happen.
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: alternatives
29+
attributes:
30+
label: Describe alternatives you've considered
31+
description: A clear and concise description of any alternative solutions or features you've considered.
32+
validations:
33+
required: false
34+
- type: textarea
35+
id: context
36+
attributes:
37+
label: Additional context
38+
description: Add any other context or screenshots about the feature request here.
39+
validations:
40+
required: false
41+
- type: checkboxes
42+
id: ai-policy
43+
attributes:
44+
label: AI Policy
45+
options:
46+
- label: I have read the [AI Policy](https://github.com/iv-org/invidious/blob/master/AI_POLICY.md) and understand the disclosure requirements
47+
required: true
48+
- type: dropdown
49+
id: ai-usage
50+
attributes:
51+
label: AI usage
52+
description: Did you use AI to help create this issue?
53+
options:
54+
- AI was not used to write this issue
55+
- AI was used to fully write this issue
56+
- AI was used to partially create this issue (explain how)
57+
validations:
58+
required: true
59+
- type: input
60+
id: ai-models
61+
attributes:
62+
label: Model(s) used
63+
description: If you used AI, list the EXACT model(s) used. Leave empty if you did not use AI.
64+
placeholder: "e.g. Llama 3.1, Mistral, Qwen 2.5, DeepSeek-R1"
65+
validations:
66+
required: false
67+
- type: input
68+
id: ai-tools
69+
attributes:
70+
label: Tool(s) used
71+
description: If you used AI, list the tool(s) used to interact with it. Leave empty if you did not use AI.
72+
placeholder: "e.g. Ollama, Open WebUI, Continue"
73+
validations:
74+
required: false
75+
- type: textarea
76+
id: ai-explanation
77+
attributes:
78+
label: How was AI used?
79+
description: If you selected "AI was used to partially create this issue (explain how)" above, explain how AI was used here. Leave empty otherwise.
80+
validations:
81+
required: false

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Checklist
2+
3+
- [] I have read the [AI Policy](https://github.com/iv-org/invidious/blob/master/AI_POLICY.md) and understand the disclosure requirements
4+
5+
6+
## AI Disclosure
7+
8+
<!-- Tick exactly one -->
9+
10+
- [] AI was not used to write this pull request
11+
- [] AI was used to fully write this pull request
12+
- [] AI was used to partially create this pull request (explain how)
13+
14+
<!-- Leave this whole section blank if you didn't use AI -->
15+
16+
**Model(s) used:**
17+
<!-- e.g. Llama 3.1, Mistral, Qwen 2.5, DeepSeek-R1 -->
18+
19+
**Tool(s) used:**
20+
<!-- e.g. Ollama, Open WebUI, Continue -->
21+
22+
**How was AI used?**
23+
<!-- If you selected "AI was used to partially create this pull request (explain how)" above, explain how AI was used here. Leave empty otherwise. -->
24+
25+
26+
## Pull request description

0 commit comments

Comments
 (0)