From 6fa7c133f20e28182622ce96a60c2a3e1a1ef549 Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Thu, 3 Dec 2026 09:28:45 +0100 Subject: [PATCH] chore: add the AI tools policy checkbox to issues and pull requests --- .github/ISSUE_TEMPLATE/blank_issue.md | 7 ------ .github/ISSUE_TEMPLATE/bug_or_enhancement.md | 15 ----------- .github/ISSUE_TEMPLATE/bug_or_enhancement.yml | 25 +++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/pull_request_template.md | 6 +++++ AI_POLICY.md | 1 + 6 files changed, 33 insertions(+), 23 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/blank_issue.md delete mode 100644 .github/ISSUE_TEMPLATE/bug_or_enhancement.md create mode 100644 .github/ISSUE_TEMPLATE/bug_or_enhancement.yml diff --git a/.github/ISSUE_TEMPLATE/blank_issue.md b/.github/ISSUE_TEMPLATE/blank_issue.md deleted file mode 100644 index 453e351a..00000000 --- a/.github/ISSUE_TEMPLATE/blank_issue.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: Blank Issue -about: I want to create a blank issue -labels: waiting-for-triage -assignees: publiccodeyml/maintainers - ---- diff --git a/.github/ISSUE_TEMPLATE/bug_or_enhancement.md b/.github/ISSUE_TEMPLATE/bug_or_enhancement.md deleted file mode 100644 index b683014a..00000000 --- a/.github/ISSUE_TEMPLATE/bug_or_enhancement.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -name: Bug report or enhancement -about: I want to report a bug or a possible enhancement to the repository (not Standard related) -labels: enhancement, waiting-for-triage -assignees: publiccodeyml/maintainers - ---- - diff --git a/.github/ISSUE_TEMPLATE/bug_or_enhancement.yml b/.github/ISSUE_TEMPLATE/bug_or_enhancement.yml new file mode 100644 index 00000000..4e0a23fc --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_or_enhancement.yml @@ -0,0 +1,25 @@ +name: Bug report or enhancement +description: Report a bug or an enhancement to this repository, for example the documentation site (not to the Spec) +labels: [enhancement, waiting-for-triage] +body: + - type: markdown + attributes: + value: | + To propose a change to the Spec, open a + [discussion](https://github.com/publiccodeyml/publiccode.yml/discussions/new?category=general) + instead. + - type: textarea + id: description + attributes: + label: Description + description: What is wrong or missing and where. Include a link or the steps to see it. + validations: + required: true + - type: checkboxes + id: policy + attributes: + label: AI tools policy + description: Read the [AI tools policy](https://github.com/publiccodeyml/publiccode.yml/blob/main/AI_POLICY.md). + options: + - label: I understand every line I submit and can explain it without an AI tool + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 5e65113f..69742808 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,4 @@ -blank_issues_enabled: true +blank_issues_enabled: false contact_links: - name: Proposal to change something in the Standard url: https://github.com/publiccodeyml/publiccode.yml/discussions/new?category=general diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index e69de29b..a0fa2052 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -0,0 +1,6 @@ + + +- [ ] I understand every line I submit and can explain it without an AI tool ([AI tools policy](https://github.com/publiccodeyml/publiccode.yml/blob/main/AI_POLICY.md)) diff --git a/AI_POLICY.md b/AI_POLICY.md index 5ea2fbd1..128737b9 100644 --- a/AI_POLICY.md +++ b/AI_POLICY.md @@ -13,6 +13,7 @@ every line of it. - You understand every line you submit and can explain it in your own words, without an AI tool. +- You fill in the form or the pull request template and check its boxes. - You answer review comments yourself. Do not paste a review comment into an AI tool and post its answer.