Skip to content

Add option to add custom html header tags via gitlab.yml config

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do and why?

Add option to add custom html header tags via gitlab.yml config

In some cases such as adding the EU cookie consent, custom tags within the html header are needed.

Closes #444193

Changelog: added

🛠 with at Siemens

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Add the following to the gitlab.yml within the gitlab section: custom_html_header_tags: <script src="https://example.com/cookie-consent.js"></script>
  2. Start GDK
  3. Check source of any html site for this additional header tag
Edited by 🤖 GitLab Bot 🤖

Merge request reports