This repository records codebases that are in compliance with the Standard for Public Code.
The record consists by three files, a Markdown file, a JSON file and a SVG file, all named with the hash of the commit which was assessed by the codebase stewards at the Foundation for Public Code.
Through the website published, compliance for a specific commit can be verified, and commits not in compliance will result in a 404 Page not found
error.
The folder structure is based on the URL to the repository of a codebase; commonly it shows the platform, organization name and repository name.
For example, the path for the Standard for Public Code assessment would be github.com/publiccodenet/standard
.
In that directory all files that records the compliance with the Standard for Public Code would be found.
This file contains what version of the Standard for Public Code the codebase was assessed against. It also contains the link to the assessment and a list of who the codebase stewards approved it were. This file is used for building the website standard-compliant.publiccode.net.
The JSON file contains the same information as the Markdown file but in a structured format. The keys are as follows:
approved_by
- list of codebase stewards approving the assessmentassessment_url
- has the URL to the full assessmentcommit_id
- the hash or other unique id of the commitcommit_tag
- the version name that people would userepository_name
- the name of the repositoryrepository_url
- has the URL to the main repositorystandard_version
- indicates what version of the Standard the codebase was assessed againststatus
- always with the valuecompliant
Currently, we are not using this file for anything.
The SVG file contains the short hash of the assessed codebase. It is a badge that can be used by the codebase community wherever they want. Ideally, it should link to the rendered file on the standard-compliance website with the same hash so that it can be verified by anyone.
To create a badge, run script/make-compliance-badge.sh
and provide the repository, the hash of the assessed commit of the codebase and optionally the version of the standard as parameters. For example:
script/make-compliance-badge.sh https://github.com/publiccodenet/standard 3cff7d0cbff22d40c180550ff05e9d05136fb69c 0.7.1
On the site standard-compliant.publiccode.net we publish a list of all codebases (and the corresponding commits) that have been assessed as compliant with the Standard for Public Code by the codebases stewards.
Additionally, on the same site, we host a list of codebases have made a public commitment to meet the Standard for Public Code. If you use a commitment badge on a codebase, and aim to meet the Standard for Public Code, you are welcome to make a pull request here to add that codebase to this list.
If you have made an assessment of your codebase and think that you are ready to be added here, please send an email to the codebase stewards so that they can verify it. Send it to [email protected].
This project is licensed under the CC 0 License, see the LICENSE file for details.