Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2084bda2
Commit
2084bda2
authored
Jul 09, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
4333f6f2
10576b2b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
24 deletions
+39
-24
changelogs/unreleased/api-doc-negative-commit-message-push-rule.yml
.../unreleased/api-doc-negative-commit-message-push-rule.yml
+5
-0
doc/api/projects.md
doc/api/projects.md
+27
-24
doc/user/project/settings/import_export.md
doc/user/project/settings/import_export.md
+7
-0
No files found.
changelogs/unreleased/api-doc-negative-commit-message-push-rule.yml
0 → 100644
View file @
2084bda2
---
title
:
"
Document
the
negative
commit
message
push
rule
for
the
API."
merge_request
:
14004
author
:
Maikel Vlasman
type
:
added
doc/api/projects.md
View file @
2084bda2
...
...
@@ -1631,6 +1631,7 @@ GET /projects/:id/push_rule
"id"
:
1
,
"project_id"
:
3
,
"commit_message_regex"
:
"Fixes
\d
+
\.
.*"
,
"commit_message_negative_regex"
:
"ssh
\:\/\/
"
,
"branch_name_regex"
:
""
,
"deny_delete_tag"
:
false
,
"created_at"
:
"2012-10-12T17:04:47Z"
,
...
...
@@ -1664,12 +1665,13 @@ POST /projects/:id/push_rule
```
| Attribute | Type | Required | Description |
| -------------------------------------- | -------------- | -------- | ----------- |
| --------------------------------------
-------
| -------------- | -------- | ----------- |
|
`id`
| integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
|
`deny_delete_tag`
**(STARTER)**
| boolean | no | Deny deleting a tag |
|
`member_check`
**(STARTER)**
| boolean | no | Restrict commits by author (email) to existing GitLab users |
|
`prevent_secrets`
**(STARTER)**
| boolean | no | GitLab will reject any files that are likely to contain secrets |
|
`commit_message_regex`
**(STARTER)**
| string | no | All commit messages must match this, e.g.
`Fixed \d+\..*`
|
|
`commit_message_negative_regex`
**(STARTER)**
| string | no | No commit message is allowed to match this, e.g.
`ssh\:\/\/`
|
|
`branch_name_regex`
**(STARTER)**
| string | no | All branch names must match this, e.g.
`(feature|hotfix)\/*`
|
|
`author_email_regex`
**(STARTER)**
| string | no | All commit author emails must match this, e.g.
`@my-company.com$`
|
|
`file_name_regex`
**(STARTER)**
| string | no | All commited filenames must
**not**
match this, e.g.
`(jar|exe)$`
|
...
...
@@ -1685,12 +1687,13 @@ PUT /projects/:id/push_rule
```
| Attribute | Type | Required | Description |
| -------------------------------------- | -------------- | -------- | ----------- |
| --------------------------------------
-------
| -------------- | -------- | ----------- |
|
`id`
| integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
|
`deny_delete_tag`
**(STARTER)**
| boolean | no | Deny deleting a tag |
|
`member_check`
**(STARTER)**
| boolean | no | Restrict commits by author (email) to existing GitLab users |
|
`prevent_secrets`
**(STARTER)**
| boolean | no | GitLab will reject any files that are likely to contain secrets |
|
`commit_message_regex`
**(STARTER)**
| string | no | All commit messages must match this, e.g.
`Fixed \d+\..*`
|
|
`commit_message_negative_regex`
**(STARTER)**
| string | no | No commit message is allowed to match this, e.g.
`ssh\:\/\/`
|
|
`branch_name_regex`
**(STARTER)**
| string | no | All branch names must match this, e.g.
`(feature|hotfix)\/*`
|
|
`author_email_regex`
**(STARTER)**
| string | no | All commit author emails must match this, e.g.
`@my-company.com$`
|
|
`file_name_regex`
**(STARTER)**
| string | no | All commited filenames must
**not**
match this, e.g.
`(jar|exe)$`
|
...
...
doc/user/project/settings/import_export.md
View file @
2084bda2
...
...
@@ -74,6 +74,13 @@ The following items will NOT be exported:
-
CI variables
-
Webhooks
-
Any encrypted tokens
-
Merge Request Approvers
-
Push Rules
-
Awards
NOTE:
**Note:**
For more details on the specific data persisted in a project export, see the
[
`import_export.yml`
](
https://gitlab.com/gitlab-org/gitlab-ee/blob/master/lib/gitlab/import_export/import_export.yml
)
file.
## Exporting a project and its data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment