Перейти к содержанию
НОВОЕМаркетплейс и ваша команда: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / Код, Git и инструменты разработчика

Код, Git и инструменты разработчика

Block inaccessible merge requests with GitLab commit statuses

When something happens in a connected app, it automates developer work using GitLab.

Что делает

## Block merge requests that break EU Accessibility Act basics Since 28 June 2025 the European Accessibility Act covers online shops, banking and ticketing sold in the EU. This workflow puts an accessibility check into every GitLab merge request. ### How it works 1. GitLab reports each opened or updated merge request. 2. The changed web files are read at the merge request's own commit. Only the lines it adds can block; problems already on the target branch are counted, never blamed. 3. Fixed rules check what markup can prove: image alt text, form labels, page language, empty buttons and links, frame titles, inline colour contrast, tabindex and autoplay. Each finding names its WCAG 2.1 criterion. 4. A commit status passes or fails, and one comment lists every problem with its fix. The comment is edited on every push, never repeated. 5. A file that cannot be read fails the check. The waiver label passes it on purpose. ### Setup 1. Connect GitLab, and type the group and project in the trigger. 2. Activate the workflow, so the trigger registers its webhook. 3. To block merging, turn on "Pipelines must succeed" in the project's merge request settings. ### Good to know This reads source, not the rendered page. It is a floor for code review, not an audit.

Шаги

  1. Merge Request Opened Or Updated
  2. Accessibility Rules
  3. A Change To Check?
  4. List Changed Files
  5. GitLab Listed The Files?
  6. Stop: GitLab Did Not List The Files
  7. Keep Web Files And Added Lines
  8. Closed Or Merged: Nothing To Do
  9. Any Web File Changed?
  10. Read File At Source Commit
  11. Check Alt, Labels, Lang And Contrast
  12. Nothing To Check
  13. Decide Pass Or Block
  14. Set The Commit Status

Всего шагов: 19.

Похожие автоматизации