From e516fe05baeb4fdfe5387c365a08217717c05c89 Mon Sep 17 00:00:00 2001
From: Vasilii Iakliushin <viakliushin@gitlab.com>
Date: Thu, 25 May 2023 16:57:59 +0200
Subject: [PATCH] Update push rules documentation

Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/411901

Add a note about text limit for regular expressions.
---
 doc/user/project/repository/push_rules.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/user/project/repository/push_rules.md b/doc/user/project/repository/push_rules.md
index 28afba375fc037..4d05ea701b723d 100644
--- a/doc/user/project/repository/push_rules.md
+++ b/doc/user/project/repository/push_rules.md
@@ -19,6 +19,7 @@ can and can't be pushed to your repository. While GitLab offers
 
 GitLab uses [RE2 syntax](https://github.com/google/re2/wiki/Syntax) for regular expressions
 in push rules. You can test them at the [regex101 regex tester](https://regex101.com/).
+Each regular expression is limited to 255 characters.
 
 For custom push rules use [server hooks](../../../administration/server_hooks.md).
 
-- 
GitLab