Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 03:10:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 03:10:11 +0300
commitb5452c76b5b35884482214dbf6fe9971e0276d3b (patch)
tree45eaee5a27650a3c63a742398054cb666838aae3 /doc/api/groups.md
parentaf969ba2792f5d872f446398abcf9895573bd292 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/groups.md')
-rw-r--r--doc/api/groups.md43
1 files changed, 43 insertions, 0 deletions
diff --git a/doc/api/groups.md b/doc/api/groups.md
index 79ac10d4ac6..07b2738f2d3 100644
--- a/doc/api/groups.md
+++ b/doc/api/groups.md
@@ -1164,3 +1164,46 @@ DELETE /groups/:id/share/:group_id
| --------- | -------------- | -------- | ----------- |
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) |
| `group_id` | integer | yes | The ID of the group to share with |
+
+## Push Rules **(STARTER)**
+
+### Get group push rules
+
+Get the [push rules](../user/group/index.md#group-push-rules-starter) of a group.
+
+```plaintext
+GET /groups/:id/push_rule
+```
+
+| Attribute | Type | Required | Description |
+| --------- | ---- | -------- | ----------- |
+| `id` | integer/string | yes | The ID of the group or [URL-encoded path of the group](README.md#namespaced-path-encoding) |
+
+```json
+{
+ "id": 2,
+ "created_at": "2020-08-17T19:09:19.580Z",
+ "commit_message_regex": "[a-zA-Z]",
+ "commit_message_negative_regex": "[x+]",
+ "branch_name_regex": "[a-z]",
+ "deny_delete_tag": true,
+ "member_check": true,
+ "prevent_secrets": true,
+ "author_email_regex": "^[A-Za-z0-9.]+@gitlab.com$",
+ "file_name_regex": "(exe)$",
+ "max_file_size": 100
+}
+```
+
+Users on GitLab [Premium, Silver, or higher](https://about.gitlab.com/pricing/) will also see
+the `commit_committer_check` and `reject_unsigned_commits` parameters:
+
+```json
+{
+ "id": 2,
+ "created_at": "2020-08-17T19:09:19.580Z",
+ "commit_committer_check": true,
+ "reject_unsigned_commits": false,
+ ...
+}
+```