Compliance Badges
Embed a live compliance badge in your repository README to show your GitGrit compliance score.
How it works
Each project has a public badge endpoint that returns an SVG image:
The badge shows your project's score (its newest fully checked commit on the default branch) as a letter, in the letter's colour:
- A+ / A — green: healthy
- B / C — yellow: needs attention
- D — orange: needs attention
- F — red: a Required standard failed
- — — gray: no score yet
Adding a badge
- Go to your project detail page in GitGrit
- Find the Badge card in the sidebar
- Copy the Markdown or HTML snippet
- Paste it in your repository's README
Markdown
[](https://app.gitgrit.dev/projects/<project-id>/)
HTML
<a href="https://app.gitgrit.dev/projects/<project-id>/">
<img src="https://app.gitgrit.dev/badge/<project-id>.svg" alt="gitgrit">
</a>
Caching
Badges are cached for 5 minutes. After a standard evaluation updates the score, the badge will reflect the new score within 5 minutes.