From 847cd3fb62638a45027e6133511c9925c3aac63f Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Thu, 3 Dec 2026 09:28:46 +0100 Subject: [PATCH 1/3] chore: add a form for proposals to change the Spec --- .github/DISCUSSION_TEMPLATE/proposals.yml | 58 +++++++++++++++++++ .github/ISSUE_TEMPLATE/bug_or_enhancement.yml | 2 +- .github/ISSUE_TEMPLATE/config.yml | 8 +-- .github/pull_request_template.md | 4 ++ CONTRIBUTING.md | 17 ++++++ 5 files changed, 84 insertions(+), 5 deletions(-) create mode 100644 .github/DISCUSSION_TEMPLATE/proposals.yml diff --git a/.github/DISCUSSION_TEMPLATE/proposals.yml b/.github/DISCUSSION_TEMPLATE/proposals.yml new file mode 100644 index 0000000..1a531fc --- /dev/null +++ b/.github/DISCUSSION_TEMPLATE/proposals.yml @@ -0,0 +1,58 @@ +labels: [waiting-for-triage] +body: + - type: markdown + attributes: + value: | + A change to a stable version of the Spec cannot be breaking. + Every valid publiccode.yml file stays valid. At most a key or a + value gets deprecated and the tools show a deprecation message. + + The pull request of a change is merged only after the pull + requests in the affected core tools are approved. Read + [how to propose a change](https://github.com/publiccodeyml/publiccode.yml/blob/main/CONTRIBUTING.md#i-want-to-propose-a-change-to-the-spec) + and the + [AI tools policy](https://github.com/publiccodeyml/publiccode.yml/blob/main/AI_POLICY.md) + before you submit. + - type: textarea + id: proposal + attributes: + label: Proposal + description: The problem and the keys or values you want to add, change or deprecate. + validations: + required: true + - type: dropdown + id: compatibility + attributes: + label: Compatibility impact + options: + - No compatibility impact + - Deprecation + validations: + required: true + - type: textarea + id: deprecations + attributes: + label: Deprecations + description: The keys or values that get deprecated and what replaces them. Leave it empty if there are none. + - type: checkboxes + id: core-tools + attributes: + label: Affected core tools + description: See the [core tools](https://github.com/publiccodeyml/publiccode.yml#core-tools). + options: + - label: libpubliccode + - label: JSON Schema + - label: publiccode-crawler + - label: open-catalog-api + - label: publiccode-issueopener + - type: checkboxes + id: policy + attributes: + label: Commitments + options: + - label: I checked that every valid publiccode.yml file stays valid + required: true + - label: I will open the pull requests in the affected core tools + required: true + - label: I understand every line I submit and can explain it without an AI tool + required: true diff --git a/.github/ISSUE_TEMPLATE/bug_or_enhancement.yml b/.github/ISSUE_TEMPLATE/bug_or_enhancement.yml index 4e0a23f..87c3916 100644 --- a/.github/ISSUE_TEMPLATE/bug_or_enhancement.yml +++ b/.github/ISSUE_TEMPLATE/bug_or_enhancement.yml @@ -6,7 +6,7 @@ body: attributes: value: | To propose a change to the Spec, open a - [discussion](https://github.com/publiccodeyml/publiccode.yml/discussions/new?category=general) + [proposal](https://github.com/publiccodeyml/publiccode.yml/discussions/new?category=proposals) instead. - type: textarea id: description diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 6974280..4479d1e 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,11 +1,11 @@ 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 - about: I want to propose a change to the Standard + - name: Proposal to change the Spec + url: https://github.com/publiccodeyml/publiccode.yml/discussions/new?category=proposals + about: I want to propose a change to the Spec - name: New question url: https://github.com/publiccodeyml/publiccode.yml/discussions/new?category=Q-A - about: I have a question about the code or the Standard + about: I have a question about the code or the Spec - name: New idea url: https://github.com/publiccodeyml/publiccode.yml/discussions/new?category=ideas about: I have a new idea I want to share diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index a0fa205..d9f2691 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,6 +1,10 @@ - [ ] 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/CONTRIBUTING.md b/CONTRIBUTING.md index 52e5785..07f5c29 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,6 +20,23 @@ The best ways to do so are: * [Participate in discussions](https://github.com/publiccodeyml/publiccode.yml/discussions) * Once you know your contribution is ready, [open a pull request](https://github.com/publiccodeyml/publiccode.yml/pulls) +## I want to propose a change to the Spec + +A change to a stable version of the Spec cannot be breaking. Every valid +`publiccode.yml` file stays valid and its maintainers do not have to +change it. At most a key or a value gets deprecated and the tools show +a deprecation message. + +Propose the change in the +[Proposals](https://github.com/publiccodeyml/publiccode.yml/discussions/categories/proposals) +category and fill in its form: what gets deprecated, if anything, and +which [core tools](README.md#core-tools) have to implement the change. + +A pull request that changes the Spec is merged only after its pull +requests in the affected core tools are approved, +[libpubliccode](https://github.com/publiccodeyml/libpubliccode) and the +JSON Schema at least. Opening them is part of the proposal. + ## I am a Free Software developer Help us bring new Free Software into governments! From e5bf2a7d9e4786ad06ed9a9e24adfd72f6568438 Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Thu, 3 Dec 2026 11:03:07 +0000 Subject: [PATCH 2/3] fix: allow proposals for breaking changes in new major versions --- .github/DISCUSSION_TEMPLATE/proposals.yml | 11 +++++++---- CONTRIBUTING.md | 9 +++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/DISCUSSION_TEMPLATE/proposals.yml b/.github/DISCUSSION_TEMPLATE/proposals.yml index 1a531fc..acde1a5 100644 --- a/.github/DISCUSSION_TEMPLATE/proposals.yml +++ b/.github/DISCUSSION_TEMPLATE/proposals.yml @@ -3,9 +3,11 @@ body: - type: markdown attributes: value: | - A change to a stable version of the Spec cannot be breaking. - Every valid publiccode.yml file stays valid. At most a key or a - value gets deprecated and the tools show a deprecation message. + Breaking changes are allowed when introducing a new major version + of the Spec, including version 1. Changes within a stable major + version must keep every valid publiccode.yml file valid. At most a + key or a value gets deprecated and the tools show a deprecation + message. The pull request of a change is merged only after the pull requests in the affected core tools are approved. Read @@ -27,6 +29,7 @@ body: options: - No compatibility impact - Deprecation + - Breaking change for a new major version (including version 1) validations: required: true - type: textarea @@ -50,7 +53,7 @@ body: attributes: label: Commitments options: - - label: I checked that every valid publiccode.yml file stays valid + - label: I checked that every valid publiccode.yml file stays valid, or my proposal introduces a new major version (including version 1) required: true - label: I will open the pull requests in the affected core tools required: true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 07f5c29..5172e31 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -22,10 +22,11 @@ The best ways to do so are: ## I want to propose a change to the Spec -A change to a stable version of the Spec cannot be breaking. Every valid -`publiccode.yml` file stays valid and its maintainers do not have to -change it. At most a key or a value gets deprecated and the tools show -a deprecation message. +Breaking changes are allowed when introducing a new major version of the +Spec, including version 1. Changes within a stable major version must keep +every valid `publiccode.yml` file valid, so its maintainers do not have to +change it. At most a key or a value gets deprecated and the tools show a +deprecation message. Propose the change in the [Proposals](https://github.com/publiccodeyml/publiccode.yml/discussions/categories/proposals) From 3eed5c30c75c715902ad2b6f05a402925679b83f Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Thu, 3 Dec 2026 14:00:35 +0000 Subject: [PATCH 3/3] doc: explain the lasting maintenance cost of Spec changes --- CONTRIBUTING.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5172e31..74241e0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -22,11 +22,9 @@ The best ways to do so are: ## I want to propose a change to the Spec -Breaking changes are allowed when introducing a new major version of the -Spec, including version 1. Changes within a stable major version must keep -every valid `publiccode.yml` file valid, so its maintainers do not have to -change it. At most a key or a value gets deprecated and the tools show a -deprecation message. +Keep in mind that changes to the Spec will need to be maintained +indefinitely. Each proposal must be carefully evaluated for its long term +impact on users and tools. Propose the change in the [Proposals](https://github.com/publiccodeyml/publiccode.yml/discussions/categories/proposals)