- Issue created by @hestenet
- π¬π§United Kingdom jonathan1055
I am sure yesterday I saw in my GitLab repo a place where the 'badges' were displayed, along with the code snippet for embedding. But now when I look through again I can't find it! It is there, somewhere.
- π¬π§United Kingdom jonathan1055
Here is the documenttaion on GitLab bagdes https://docs.gitlab.com/ee/user/project/badges.html
The general form of the pipeline badge url is
https://gitlab.example.com/<namespace>/<project>/badges/<branch>/pipeline.svg
so the gitlab_templates pipeline badge ishttps://git.drupalcode.org/project/gitlab_templates/badges/1.0.x/pipeline.svg
and can be seen hereThis image cannot be displayed within these comments, as it is not hosted on drupal.org. Maybe we can request that images on git.drupalcode.org allowed to be inserted here?
- π¬π§United Kingdom jonathan1055
Found it now: In your GitLab project -> Settings -> CI/CD -> General Pipelines -> Expand
- Status changed to Closed: outdated
about 1 year ago 4:38pm 2 November 2023 - πͺπΈSpain fjgarlin
The magic URL works and also note that the pipeline status is now displayed in both project pages (for the main branches) and the issue pages (for the MRs).
I think this issue is no longer needed, but feel free to re-open if you think we should do something.
- Status changed to Fixed
5 months ago 12:27pm 20 July 2024 - π¬π§United Kingdom jonathan1055
There is nothing to do in the gitlab_templates code, but the original question was about displaying the badge on other sites, and that can be done via the info in #4 and #5.
And for bonus points, if you want to display the badge and a link to the scheduled pipelines here in git.drupalcode.org, you can add this in the README.md file:
[![Build Status](https://git.drupalcode.org/project/my_module/badges/2.x/pipeline.svg)](https://git.drupalcode.org/project/my_module/-/pipeline_schedules)
Automatically closed - issue fixed for 2 weeks with no activity.