Bibliothek / Code, Git & Entwicklertools
Code, Git & Entwicklertools
Block inaccessible merge requests with GitLab commit statuses
When something happens in a connected app, it automates developer work using GitLab.
Was sie bewirkt
## 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.
Die Schritte
- Merge Request Opened Or Updated
- Accessibility Rules
- A Change To Check?
- List Changed Files
- GitLab Listed The Files?
- Stop: GitLab Did Not List The Files
- Keep Web Files And Added Lines
- Closed Or Merged: Nothing To Do
- Any Web File Changed?
- Read File At Source Commit
- Check Alt, Labels, Lang And Contrast
- Nothing To Check
- Decide Pass Or Block
- Set The Commit Status
Insgesamt 19 Schritte.
Ähnliche Automatisierungen
Code, Git & EntwicklertoolsGitLab-Merge-Requests prüfen und Risiko mit Claude bewerten14 SchritteCode, Git & EntwicklertoolsGitLab-Merge-Requests mit Claude prüfen und Berichte per E-Mail senden33 SchritteCode, Git & EntwicklertoolsGitLab-Merge-Requests über die API automatisieren10 SchritteCode, Git & EntwicklertoolsGitLab-Merge-Requests automatisch mit ChatGPT prüfen10 Schritte