In recent years, the trend of adding badges to a repository’s README file, became very popular. Many possibilities exist; license, continuos integration, passing tests, peer reviewed, chat, release date, and much more…
We are happy to introduce the Software Heritage badges (swh-badges), that you can use to link to the archived source code.
There are three types of badges:
- The archived repository: a link to the location of a repository as archived in Software Heritage.
which contains all snapshots from SWH visits and is updated frequently, here the link to the archived Unipisa/CMM
- A release: a link to the persistent location of a specific release.
The badge shows the tag used for the release, here version 1.9 of the CMM repository.
- A source code artifact (e.g snapshot, revision, directory or file): a link to the persistent location of the artifact using the SWH-ID
Here the target revision of the 1.9 CMM release.
A very simple way of getting the badge you want is to browse your archived code in Software Heritage, and navigate to the location you are interested in. Click then on the permalinks vertical red tab that is present on all pages of the archive, and in the tab that opens up you select the artifact for which you need the badge. The archived repository badge is always available:
Then, you can click on the badge itself and you will find the text for inserting a badge in HTML, Markdown or reStructuredText.
That’s it !
We invite you to use these new badges, providing an easy access to the archived versions of your source code.