Skip to content

Accept "plaintext" immediately following triple backticks

Graham Keeth requested to merge gkeeth/gitlab-webhook:plaintext-tag into master

Gitlab seems to sometimes add a plaintext tag right after the opening triple backticks, even if you didn't type it in yourself. The bot doesn't expect the plaintext tag and thinks the version info isn't in a code block.

This change teaches the bot that properly-formatted version info can start with ```plaintext, and prevents the bot from mangling the version info in that case.

Haven't tried on real issues, obviously, but the unit tests pass and I added a new test for the ```plaintext form.

Reference: kicad/code/kicad#15686 (closed)

Edited by Graham Keeth

Merge request reports