[go: up one dir, main page]

Skip to content

Validate web-UI-relevant push rules before user submits input (commit message, branch name, etc.)

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Release notes

Currently/Previously, the regular expression used in Push Rules were used to check the submitted content of input fields for commit message, branch name, etc. This led to awkward workflows in case an input was not accepted: refreshing a page and trying again without the previous error message being visible anymore.

Now, the regular expressions / commit message rules are executed immediately after the input is provided, and any mismatches are visible and can be corrected before submitting.

Problem to solve

See above, but also push-rule-related UI issues like:

Proposal

Tools like https://regex101.com/, https://regexr.com/ and others can interactively highlight user input that matches a reg-ex. Can we do the reverse: A warning-colored highlight of user input, in case the relevant push rule does not match / rejects the input?

Edited by 🤖 GitLab Bot 🤖