Closed AntonyBishop closed 2 years ago
Long list of badges: https://naereen.github.io/badges/
Badge generator: https://michaelcurrin.github.io/badge-generator/#/data
Add this code to a README.md repo, replace the repo name ![repo standards badge](https://img.shields.io/badge/dynamic/json?color=blue&label=MoJ%20Organisation%20GH%20Repository%20Standards%20Compliant&query=%24.data%5B%3F%28%40.name%20%3D%3D%20%22<repo_name>%22%29%5D.status&url=https%3A%2F%2Foperations-engineering-reports.cloud-platform.service.justice.gov.uk%2Fgithub_repositories)
The above command will query the operations eng report to get the pass/fail status of the named repo
There are further options and styles can apply here: https://shields.io/
[![repo standards badge](https://img.shields.io/badge/dynamic/json?color=blue&label=MoJ%20Organisation%20GH%20Repository%20Standards%20Compliant&query=%24.data%5B%3F%28%40.name%20%3D%3D%20%22<repo_name>%22%29%5D.status&url=https%3A%2F%2Foperations-engineering-reports.cloud-platform.service.justice.gov.uk%2Fgithub_repositories)](https://operations-engineering-reports.cloud-platform.service.justice.gov.uk/github_repositories#<repo_name> "Link to report")
The code above now is a html link to the report when a user clicks on the badge
To make the right side pass, fail and show different colour requires a service written in Javascript as seen here: https://github.com/badges/shields/tree/master/services/
[![repo standards badge](https://img.shields.io/badge/dynamic/json?color=blue&style=for-the-badge&logo=github&label=MoJ%20Compliant&query=%24.data%5B%3F%28%40.name%20%3D%3D%20%22operations-engineering%22%29%5D.status&url=https%3A%2F%2Foperations-engineering-reports.cloud-platform.service.justice.gov.uk%2Fgithub_repositories)](https://operations-engineering-reports.cloud-platform.service.justice.gov.uk/github_repositories#operations-engineering "Link to report")
Background
Proposed user journey
Approach
Questions / Assumptions
Acceptance Criteria
Reference
How to write good user stories