Skip to content

Invidious is an alternative front-end to YouTube

Add a field for AI policy compliance in the issues/PRs templates (#5803)

TheFrenchGhosty1111ea72947e
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
deleted file mode 100644
index 02bc3795..00000000
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-name: Bug report
-about: Create a bug report to help us improve Invidious
-title: '[Bug] '
-labels: bug
-assignees: ''
-
----
-
-<!--
- BEFORE TRYING TO REPORT A BUG:
-
- * Read the FAQ: https://docs.invidious.io/faq/!
- * 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!
-
- MAKE SURE TO FOLLOW THE TWO STEPS ABOVE BEFORE REPORTING A BUG. A BUG THAT ALREADY EXIST WILL IMMEDIATELY CLOSED.
-
- If you want to suggest a new feature please use "Feature request" instead
- If you want to suggest an enhancement to an existing feature please use "Enhancement" instead
--->
-
-
-**Describe the bug**
-<!-- A clear and concise description of what the bug is. -->
-
-**Steps to Reproduce**
-<!-- Steps to reproduce the behavior:
-1. Go to '...'
-2. Click on '....'
-3. Scroll down to '....'
-4. See error
--->
-
-**Logs**
-<!-- If applicable, copy the log that appear in the browser page where the error is reported. -->
-
-**Screenshots**
-<!-- If applicable, add screenshots to help explain your problem. -->
-
-**Additional context**
-<!-- Add any other context about the problem here.
- - Browser (if applicable):
- - OS (if applicable):
--->
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 00000000..8ed18d49
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,103 @@
+name: Bug report
+description: Create a bug report to help us improve Invidious
+title: "[Bug] "
+labels: ["bug"]
+assignees: []
+body:
+ - type: markdown
+ attributes:
+ value: |
+ BEFORE TRYING TO REPORT A BUG:
+
+ * Read the FAQ: https://docs.invidious.io/faq/!
+ * 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!
+
+ MAKE SURE TO FOLLOW THE TWO STEPS ABOVE BEFORE REPORTING A BUG. A BUG THAT ALREADY EXISTS WILL BE IMMEDIATELY CLOSED.
+
+ If you want to suggest a new feature please use "Feature request" instead
+ If you want to suggest an enhancement to an existing feature please use "Enhancement" instead
+ - type: textarea
+ id: describe-bug
+ attributes:
+ label: Describe the bug
+ description: A clear and concise description of what the bug is.
+ validations:
+ required: true
+ - type: textarea
+ id: steps
+ attributes:
+ label: Steps to Reproduce
+ description: Steps to reproduce the behavior.
+ placeholder: |
+ 1. Go to '...'
+ 2. Click on '....'
+ 3. Scroll down to '....'
+ 4. See error
+ validations:
+ required: true
+ - type: textarea
+ id: logs
+ attributes:
+ label: Logs
+ description: If applicable, copy the logs that appear on the page where the error is reported.
+ render: shell
+ validations:
+ required: false
+ - type: textarea
+ id: screenshots
+ attributes:
+ label: Screenshots
+ description: If applicable, add screenshots to help explain your problem.
+ validations:
+ required: false
+ - type: textarea
+ id: context
+ attributes:
+ label: Additional context
+ description: Add any other context about the problem here.
+ placeholder: |
+ - Browser (if applicable):
+ - OS (if applicable):
+ validations:
+ required: false
+ - type: checkboxes
+ id: ai-policy
+ attributes:
+ label: AI Policy
+ options:
+ - label: I have read the [AI Policy](https://github.com/iv-org/invidious/blob/master/AI_POLICY.md) and understand the disclosure requirements
+ required: true
+ - type: dropdown
+ id: ai-usage
+ attributes:
+ label: AI usage
+ description: Did you use AI to help create this issue?
+ options:
+ - AI was not used to write this issue
+ - AI was used to fully write this issue
+ - AI was used to partially create this issue (explain how)
+ validations:
+ required: true
+ - type: input
+ id: ai-models
+ attributes:
+ label: Model(s) used
+ description: If you used AI, list the EXACT model(s) used. Leave empty if you did not use AI.
+ placeholder: "e.g. Llama 3.1, Mistral, Qwen 2.5, DeepSeek-R1"
+ validations:
+ required: false
+ - type: input
+ id: ai-tools
+ attributes:
+ label: Tool(s) used
+ description: If you used AI, list the tool(s) used to interact with it. Leave empty if you did not use AI.
+ placeholder: "e.g. Ollama, Open WebUI, Continue"
+ validations:
+ required: false
+ - type: textarea
+ id: ai-explanation
+ attributes:
+ label: How was AI used?
+ description: If you selected "AI was used to partially create this issue (explain how)" above, explain how AI was used here. Leave empty otherwise.
+ validations:
+ required: false
diff --git a/.github/ISSUE_TEMPLATE/enhancement.md b/.github/ISSUE_TEMPLATE/enhancement.md
deleted file mode 100644
index 7823e1df..00000000
--- a/.github/ISSUE_TEMPLATE/enhancement.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-name: Enhancement
-about: Suggest an enhancement for an existing feature
-title: '[Enhancement] '
-labels: enhancement
-assignees: ''
-
----
-
-<!-- Please use the search function to check if the desired function has already been requested by someone else -->
- <!-- If you want to suggest a new feature please use "Feature request" instead -->
-<!-- If you want to report a bug, please use "Bug report" instead -->
-
-**Is your enhancement request related to a problem? Please describe.**
-<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
-
-**Describe the solution you'd like**
-<!-- A clear and concise description of what you want to happen. -->
-
-**Describe alternatives you've considered**
-<!-- A clear and concise description of any alternative solutions or features you've considered. -->
-
-**Additional context**
-<!-- Add any other context or screenshots about the enhancement here. -->
diff --git a/.github/ISSUE_TEMPLATE/enhancement.yml b/.github/ISSUE_TEMPLATE/enhancement.yml
new file mode 100644
index 00000000..10b4faa5
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/enhancement.yml
@@ -0,0 +1,81 @@
+name: Enhancement
+description: Suggest an enhancement for an existing feature
+title: "[Enhancement] "
+labels: ["enhancement"]
+assignees: []
+body:
+ - type: markdown
+ attributes:
+ value: |
+ Please use the search function to check if the desired function has already been requested by someone else
+ If you want to suggest a new feature please use "Feature request" instead
+ If you want to report a bug, please use "Bug report" instead
+ - type: textarea
+ id: problem
+ attributes:
+ label: Is your enhancement request related to a problem? Please describe.
+ description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+ validations:
+ required: true
+ - type: textarea
+ id: solution
+ attributes:
+ label: Describe the solution you'd like
+ description: A clear and concise description of what you want to happen.
+ validations:
+ required: true
+ - type: textarea
+ id: alternatives
+ attributes:
+ label: Describe alternatives you've considered
+ description: A clear and concise description of any alternative solutions or features you've considered.
+ validations:
+ required: false
+ - type: textarea
+ id: context
+ attributes:
+ label: Additional context
+ description: Add any other context or screenshots about the enhancement here.
+ validations:
+ required: false
+ - type: checkboxes
+ id: ai-policy
+ attributes:
+ label: AI Policy
+ options:
+ - label: I have read the [AI Policy](https://github.com/iv-org/invidious/blob/master/AI_POLICY.md) and understand the disclosure requirements
+ required: true
+ - type: dropdown
+ id: ai-usage
+ attributes:
+ label: AI usage
+ description: Did you use AI to help create this issue?
+ options:
+ - AI was not used to write this issue
+ - AI was used to fully write this issue
+ - AI was used to partially create this issue (explain how)
+ validations:
+ required: true
+ - type: input
+ id: ai-models
+ attributes:
+ label: Model(s) used
+ description: If you used AI, list the EXACT model(s) used. Leave empty if you did not use AI.
+ placeholder: "e.g. Llama 3.1, Mistral, Qwen 2.5, DeepSeek-R1"
+ validations:
+ required: false
+ - type: input
+ id: ai-tools
+ attributes:
+ label: Tool(s) used
+ description: If you used AI, list the tool(s) used to interact with it. Leave empty if you did not use AI.
+ placeholder: "e.g. Ollama, Open WebUI, Continue"
+ validations:
+ required: false
+ - type: textarea
+ id: ai-explanation
+ attributes:
+ label: How was AI used?
+ description: If you selected "AI was used to partially create this issue (explain how)" above, explain how AI was used here. Leave empty otherwise.
+ validations:
+ required: false
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
deleted file mode 100644
index 59692a51..00000000
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-name: Feature request
-about: Suggest an idea for this project
-title: '[Feature request] '
-labels: feature-request
-assignees: ''
-
----
-
-<!-- Please use the search function to check if the desired function has already been requested by someone else -->
-<!-- If you want to suggest an enhancement to an existing feature please use "Enhancement" instead -->
-<!-- If you want to report a bug, please use "Bug report" instead -->
-
-**Is your feature request related to a problem? Please describe.**
-<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
-
-**Describe the solution you'd like**
-<!-- A clear and concise description of what you want to happen. -->
-
-**Describe alternatives you've considered**
-<!-- A clear and concise description of any alternative solutions or features you've considered. -->
-
-**Additional context**
-<!-- Add any other context or screenshots about the feature request here. -->
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml
new file mode 100644
index 00000000..03e156d5
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.yml
@@ -0,0 +1,81 @@
+name: Feature request
+description: Suggest an idea for this project
+title: "[Feature request] "
+labels: ["feature-request"]
+assignees: []
+body:
+ - type: markdown
+ attributes:
+ value: |
+ Please use the search function to check if the desired function has already been requested by someone else
+ If you want to suggest an enhancement to an existing feature please use "Enhancement" instead
+ If you want to report a bug, please use "Bug report" instead
+ - type: textarea
+ id: problem
+ attributes:
+ label: Is your feature request related to a problem? Please describe.
+ description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+ validations:
+ required: true
+ - type: textarea
+ id: solution
+ attributes:
+ label: Describe the solution you'd like
+ description: A clear and concise description of what you want to happen.
+ validations:
+ required: true
+ - type: textarea
+ id: alternatives
+ attributes:
+ label: Describe alternatives you've considered
+ description: A clear and concise description of any alternative solutions or features you've considered.
+ validations:
+ required: false
+ - type: textarea
+ id: context
+ attributes:
+ label: Additional context
+ description: Add any other context or screenshots about the feature request here.
+ validations:
+ required: false
+ - type: checkboxes
+ id: ai-policy
+ attributes:
+ label: AI Policy
+ options:
+ - label: I have read the [AI Policy](https://github.com/iv-org/invidious/blob/master/AI_POLICY.md) and understand the disclosure requirements
+ required: true
+ - type: dropdown
+ id: ai-usage
+ attributes:
+ label: AI usage
+ description: Did you use AI to help create this issue?
+ options:
+ - AI was not used to write this issue
+ - AI was used to fully write this issue
+ - AI was used to partially create this issue (explain how)
+ validations:
+ required: true
+ - type: input
+ id: ai-models
+ attributes:
+ label: Model(s) used
+ description: If you used AI, list the EXACT model(s) used. Leave empty if you did not use AI.
+ placeholder: "e.g. Llama 3.1, Mistral, Qwen 2.5, DeepSeek-R1"
+ validations:
+ required: false
+ - type: input
+ id: ai-tools
+ attributes:
+ label: Tool(s) used
+ description: If you used AI, list the tool(s) used to interact with it. Leave empty if you did not use AI.
+ placeholder: "e.g. Ollama, Open WebUI, Continue"
+ validations:
+ required: false
+ - type: textarea
+ id: ai-explanation
+ attributes:
+ label: How was AI used?
+ description: If you selected "AI was used to partially create this issue (explain how)" above, explain how AI was used here. Leave empty otherwise.
+ validations:
+ required: false
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 00000000..4ed4fd52
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,26 @@
+## Checklist
+
+- [] I have read the [AI Policy](https://github.com/iv-org/invidious/blob/master/AI_POLICY.md) and understand the disclosure requirements
+
+
+## AI Disclosure
+
+<!-- Tick exactly one -->
+
+- [] AI was not used to write this pull request
+- [] AI was used to fully write this pull request
+- [] AI was used to partially create this pull request (explain how)
+
+<!-- Leave this whole section blank if you didn't use AI -->
+
+**Model(s) used:**
+<!-- e.g. Llama 3.1, Mistral, Qwen 2.5, DeepSeek-R1 -->
+
+**Tool(s) used:**
+<!-- e.g. Ollama, Open WebUI, Continue -->
+
+**How was AI used?**
+<!-- If you selected "AI was used to partially create this pull request (explain how)" above, explain how AI was used here. Leave empty otherwise. -->
+
+
+## Pull request description