Skip to content

Commit 742d4b0

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 0b5e5c7 commit 742d4b0

File tree

29 files changed

+158
-141
lines changed

29 files changed

+158
-141
lines changed

app/services/ci/create_pipeline_service.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def build_logger
161161
pipeline_includes_count = observations['pipeline_includes_count']
162162
next false unless pipeline_includes_count
163163

164-
pipeline_includes_count.to_i > Gitlab::Ci::Config::External::Context::MAX_INCLUDES
164+
pipeline_includes_count.to_i > Gitlab::Ci::Config::External::Context::TEMP_MAX_INCLUDES
165165
end
166166
end
167167
end

config/feature_flags/development/ci_includes_count_duplicates.yml

-8
This file was deleted.

data/whats_new/20230222001_15_09.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
self-managed: false
7070
gitlab-com: true
7171
available_in: [Ultimate]
72-
documentation_link: https://release-15-9.about.gitlab-review.app/direction/modelops/ai_assisted/code_suggestions/
72+
documentation_link: https://about.gitlab.com/releases/2023/02/22/gitlab-15-9-released/#code-suggestions-available-in-closed-beta
7373
image_url: https://about.gitlab.com/images/15_9/DemoFastApi.gif
7474
published_at: 2023-02-02 # YYYY-MM-DD
7575
release: 15.9

doc/api/discussions.md

+17
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ GET /projects/:id/issues/:issue_iid/discussions
6565
"system": false,
6666
"noteable_id": 3,
6767
"noteable_type": "Issue",
68+
"project_id": 5,
6869
"noteable_iid": null
6970
},
7071
{
@@ -85,6 +86,7 @@ GET /projects/:id/issues/:issue_iid/discussions
8586
"system": false,
8687
"noteable_id": 3,
8788
"noteable_type": "Issue",
89+
"project_id": 5,
8890
"noteable_iid": null,
8991
"resolvable": false
9092
}
@@ -112,6 +114,7 @@ GET /projects/:id/issues/:issue_iid/discussions
112114
"system": false,
113115
"noteable_id": 3,
114116
"noteable_type": "Issue",
117+
"project_id": 5,
115118
"noteable_iid": null,
116119
"resolvable": false
117120
}
@@ -279,6 +282,7 @@ GET /projects/:id/snippets/:snippet_id/discussions
279282
"system": false,
280283
"noteable_id": 3,
281284
"noteable_type": "Snippet",
285+
"project_id": 5,
282286
"noteable_iid": null
283287
},
284288
{
@@ -299,6 +303,7 @@ GET /projects/:id/snippets/:snippet_id/discussions
299303
"system": false,
300304
"noteable_id": 3,
301305
"noteable_type": "Snippet",
306+
"project_id": 5,
302307
"noteable_iid": null,
303308
"resolvable": false
304309
}
@@ -326,6 +331,7 @@ GET /projects/:id/snippets/:snippet_id/discussions
326331
"system": false,
327332
"noteable_id": 3,
328333
"noteable_type": "Snippet",
334+
"project_id": 5,
329335
"noteable_iid": null,
330336
"resolvable": false
331337
}
@@ -491,6 +497,7 @@ GET /groups/:id/epics/:epic_id/discussions
491497
"system": false,
492498
"noteable_id": 3,
493499
"noteable_type": "Epic",
500+
"project_id": 5,
494501
"noteable_iid": null,
495502
"resolvable": false
496503
},
@@ -512,6 +519,7 @@ GET /groups/:id/epics/:epic_id/discussions
512519
"system": false,
513520
"noteable_id": 3,
514521
"noteable_type": "Epic",
522+
"project_id": 5,
515523
"noteable_iid": null,
516524
"resolvable": false
517525
}
@@ -539,6 +547,7 @@ GET /groups/:id/epics/:epic_id/discussions
539547
"system": false,
540548
"noteable_id": 3,
541549
"noteable_type": "Epic",
550+
"project_id": 5,
542551
"noteable_iid": null,
543552
"resolvable": false
544553
}
@@ -705,6 +714,7 @@ GET /projects/:id/merge_requests/:merge_request_iid/discussions
705714
"system": false,
706715
"noteable_id": 3,
707716
"noteable_type": "Merge request",
717+
"project_id": 5,
708718
"noteable_iid": null,
709719
"resolved": false,
710720
"resolvable": true,
@@ -729,6 +739,7 @@ GET /projects/:id/merge_requests/:merge_request_iid/discussions
729739
"system": false,
730740
"noteable_id": 3,
731741
"noteable_type": "Merge request",
742+
"project_id": 5,
732743
"noteable_iid": null,
733744
"resolved": false,
734745
"resolvable": true,
@@ -758,6 +769,7 @@ GET /projects/:id/merge_requests/:merge_request_iid/discussions
758769
"system": false,
759770
"noteable_id": 3,
760771
"noteable_type": "Merge request",
772+
"project_id": 5,
761773
"noteable_iid": null,
762774
"resolved": false,
763775
"resolvable": true,
@@ -794,6 +806,7 @@ Diff comments also contain position:
794806
"system": false,
795807
"noteable_id": 3,
796808
"noteable_type": "Merge request",
809+
"project_id": 5,
797810
"noteable_iid": null,
798811
"commit_id": "4803c71e6b1833ca72b8b26ef2ecd5adc8a38031",
799812
"position": {
@@ -1137,6 +1150,7 @@ GET /projects/:id/repository/commits/:commit_id/discussions
11371150
"system": false,
11381151
"noteable_id": 3,
11391152
"noteable_type": "Commit",
1153+
"project_id": 5,
11401154
"noteable_iid": null,
11411155
"resolvable": false
11421156
},
@@ -1158,6 +1172,7 @@ GET /projects/:id/repository/commits/:commit_id/discussions
11581172
"system": false,
11591173
"noteable_id": 3,
11601174
"noteable_type": "Commit",
1175+
"project_id": 5,
11611176
"noteable_iid": null,
11621177
"resolvable": false
11631178
}
@@ -1185,6 +1200,7 @@ GET /projects/:id/repository/commits/:commit_id/discussions
11851200
"system": false,
11861201
"noteable_id": 3,
11871202
"noteable_type": "Commit",
1203+
"project_id": 5,
11881204
"noteable_iid": null,
11891205
"resolvable": false
11901206
}
@@ -1219,6 +1235,7 @@ Diff comments contain also position:
12191235
"system": false,
12201236
"noteable_id": 3,
12211237
"noteable_type": "Commit",
1238+
"project_id": 5,
12221239
"noteable_iid": null,
12231240
"position": {
12241241
"base_sha": "b5d6e7b1613fca24d250fa8e5bc7bcc3dd6002ef",

doc/api/notes.md

+27-12
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ GET /projects/:id/issues/:issue_iid/notes?sort=asc&order_by=updated_at
7878
"system": true,
7979
"noteable_id": 377,
8080
"noteable_type": "Issue",
81+
"project_id": 5,
8182
"noteable_iid": 377,
8283
"resolvable": false,
8384
"confidential": false,
@@ -100,6 +101,7 @@ GET /projects/:id/issues/:issue_iid/notes?sort=asc&order_by=updated_at
100101
"system": true,
101102
"noteable_id": 121,
102103
"noteable_type": "Issue",
104+
"project_id": 5,
103105
"noteable_iid": 121,
104106
"resolvable": false,
105107
"confidential": true,
@@ -239,9 +241,9 @@ Parameters:
239241

240242
```json
241243
{
242-
"id": 52,
243-
"title": "Snippet",
244-
"file_name": "snippet.rb",
244+
"id": 302,
245+
"body": "closed",
246+
"attachment": null,
245247
"author": {
246248
"id": 1,
247249
"username": "pipin",
@@ -250,9 +252,16 @@ Parameters:
250252
"state": "active",
251253
"created_at": "2013-09-30T13:46:01Z"
252254
},
253-
"expires_at": null,
254-
"updated_at": "2013-10-02T07:34:20Z",
255-
"created_at": "2013-10-02T07:34:20Z"
255+
"created_at": "2013-10-02T09:22:45Z",
256+
"updated_at": "2013-10-02T10:22:45Z",
257+
"system": true,
258+
"noteable_id": 377,
259+
"noteable_type": "Issue",
260+
"project_id": 5,
261+
"noteable_iid": 377,
262+
"resolvable": false,
263+
"confidential": false,
264+
"internal": false
256265
}
257266
```
258267

@@ -379,6 +388,7 @@ Parameters:
379388
"system": false,
380389
"noteable_id": 2,
381390
"noteable_type": "MergeRequest",
391+
"project_id": 5,
382392
"noteable_iid": 2,
383393
"resolvable": false,
384394
"confidential": false,
@@ -501,9 +511,9 @@ Parameters:
501511

502512
```json
503513
{
504-
"id": 52,
505-
"title": "Epic",
506-
"file_name": "epic.rb",
514+
"id": 302,
515+
"body": "Epic note",
516+
"attachment": null,
507517
"author": {
508518
"id": 1,
509519
"username": "pipin",
@@ -512,9 +522,14 @@ Parameters:
512522
"state": "active",
513523
"created_at": "2013-09-30T13:46:01Z"
514524
},
515-
"expires_at": null,
516-
"updated_at": "2013-10-02T07:34:20Z",
517-
"created_at": "2013-10-02T07:34:20Z",
525+
"created_at": "2013-10-02T09:22:45Z",
526+
"updated_at": "2013-10-02T10:22:45Z",
527+
"system": true,
528+
"noteable_id": 11,
529+
"noteable_type": "Epic",
530+
"project_id": 5,
531+
"noteable_iid": 11,
532+
"resolvable": false,
518533
"confidential": false,
519534
"internal": false
520535
}

doc/api/search.md

+3
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ Example response:
407407
"system": false,
408408
"noteable_id": 22,
409409
"noteable_type": "Issue",
410+
"project_id": 6,
410411
"noteable_iid": 2
411412
}
412413
]
@@ -796,6 +797,7 @@ Example response:
796797
"system": false,
797798
"noteable_id": 22,
798799
"noteable_type": "Issue",
800+
"project_id": 6,
799801
"noteable_iid": 2
800802
}
801803
]
@@ -1046,6 +1048,7 @@ Example response:
10461048
"system": false,
10471049
"noteable_id": 22,
10481050
"noteable_type": "Issue",
1051+
"project_id": 6,
10491052
"noteable_iid": 2
10501053
}
10511054
]

doc/ci/pipelines/downstream_pipelines.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ Use:
281281
- The `project` keyword to specify the full path to the downstream project.
282282
In [GitLab 15.3 and later](https://gitlab.com/gitlab-org/gitlab/-/issues/367660),
283283
you can use [variable expansion](../variables/where_variables_can_be_used.md#gitlab-ciyml-file).
284-
- The `branch` keyword to specify the name of a branch or [tag](../../topics/git/tags.md)
284+
- The `branch` keyword to specify the name of a branch or [tag](../../user/project/repository/tags/index.md)
285285
in the project specified by `project`. You can use variable expansion.
286286

287287
## Trigger a multi-project pipeline by using the API

doc/topics/git/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following resources can help you get started with Git:
4343
- [Git stash](stash.md)
4444
- [Git file blame](../../user/project/repository/git_blame.md)
4545
- [Git file history](../../user/project/repository/git_history.md)
46-
- [Git tags](tags.md)
46+
- [Git tags](../../user/project/repository/tags/index.md)
4747

4848
### Concepts
4949

doc/topics/git/tags.md

+7-37
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,11 @@
11
---
2-
stage: Create
3-
group: Source Code
4-
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2+
redirect_to: '../../user/project/repository/tags/index.md'
3+
remove_date: '2023-05-27'
54
---
65

7-
# Tags **(FREE)**
6+
This document was moved to [another location](../../user/project/repository/tags/index.md).
87

9-
Tags help you mark certain deployments and releases for later
10-
reference. Git supports two types of tags:
11-
12-
- Annotated tags: An unchangeable part of Git history.
13-
- Lightweight (soft) tags: Tags that can be set and removed as needed.
14-
15-
Many projects combine an annotated release tag with a stable branch. Consider
16-
setting deployment or release tags automatically.
17-
18-
## Tags sample workflow
19-
20-
1. Create a lightweight tag.
21-
1. Create an annotated tag.
22-
1. Push the tags to the remote repository.
23-
24-
```shell
25-
git checkout master
26-
27-
# Lightweight tag
28-
git tag my_lightweight_tag
29-
30-
# Annotated tag
31-
git tag -a v1.0 -m 'Version 1.0'
32-
33-
# Show list of the existing tags
34-
git tag
35-
36-
git push origin --tags
37-
```
38-
39-
## Related topics
40-
41-
- [Tagging](https://git-scm.com/book/en/v2/Git-Basics-Tagging) Git reference page
8+
<!-- This redirect file can be deleted after <2023-05-27>. -->
9+
<!-- Redirects that point to other docs in the same project expire in three months. -->
10+
<!-- Redirects that point to docs in a different project or site (for example, link is not relative and starts with `https:`) expire in one year. -->
11+
<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/redirects.html -->

doc/user/group/settings/group_access_tokens.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ or API. However, administrators can use a workaround:
8484
# Set the group group you want to create a token for. For example, group with ID 109.
8585
group = Group.find(109)
8686

87-
# Create the group bot user. For further group access tokens, the username should be group_#{group.id}_bot#{bot_count}. For example, group_109_bot2 and email address group_109_bot_{random_string}@example.com.
88-
bot = Users::CreateService.new(admin, { name: 'group_token', username: "group_#{group.id}_bot", email: "group_#{group.id}[email protected]", user_type: :project_bot }).execute
87+
# Create the group bot user. For further group access tokens, the username should be `group_{group_id}_bot_{random_string}` and email address `group_{group_id}_bot_{random_string}@noreply.{Gitlab.config.gitlab.host}`.
88+
random_string = SecureRandom.hex(8)
89+
bot = Users::CreateService.new(admin, { name: 'group_token', username: "group_#{group.id}_bot_#{random_string}", email: "group_#{group.id}_bot_#{random_string}@noreply.#{Gitlab.config.gitlab.host}", user_type: :project_bot }).execute
8990

9091
# Confirm the group bot.
9192
bot.confirm
@@ -169,8 +170,8 @@ to groups instead of projects. Bot users for groups:
169170
- Do not count as licensed seats.
170171
- Can have a maximum role of Owner for a group. For more information, see
171172
[Create a group access token](../../../api/group_access_tokens.md#create-a-group-access-token).
172-
- Have a username set to `group_{group_id}_bot_{random_string}`. For example, `group_123_bot_4ffca233d8298ea1`.
173-
- Have an email set to `group{group_id}_bot_{random_string}@noreply.{Gitlab.config.gitlab.host}`. For example, `group123_bot_4ffca233d8298ea1@noreply.example.com`.
173+
- Have a username set to `group_{group_id}_bot_{random_string}`. For example, `group_123_bot_4ffca233d8298ea1`.
174+
- Have an email set to `group_{group_id}_bot_{random_string}@noreply.{Gitlab.config.gitlab.host}`. For example, `group_123_bot_4ffca233d8298ea1@noreply.example.com`.
174175

175176
All other properties are similar to [bot users for projects](../../project/settings/project_access_tokens.md#bot-users-for-projects).
176177

doc/user/project/protected_tags.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
66

77
# Protected tags **(FREE)**
88

9-
Protected tags:
9+
Protected [tags](repository/tags/index.md):
1010

1111
- Allow control over who has permission to create tags.
1212
- Prevent accidental update or deletion once created.
@@ -106,6 +106,11 @@ Protected tags can only be deleted by using GitLab either from the UI or API.
106106
These protections prevent you from accidentally deleting a tag through local
107107
Git commands or third-party Git clients.
108108

109+
## Related topics
110+
111+
- [Protected Tags API](../../api/protected_tags.md)
112+
- [Tags API](../../api/tags.md)
113+
109114
<!-- ## Troubleshooting
110115
111116
Include any troubleshooting steps that you can foresee. If you know beforehand what issues

doc/user/project/releases/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ To create a release in the Releases page:
8888
- [Title](release_fields.md#title).
8989
- [Milestones](#associate-milestones-with-a-release).
9090
- [Release notes](release_fields.md#release-notes-description).
91-
- Whether or not to include the [Tag message](../../../topics/git/tags.md).
91+
- Whether or not to include the [Tag message](../repository/tags/index.md).
9292
- [Asset links](release_fields.md#links).
9393
1. Select **Create release**.
9494

0 commit comments

Comments
 (0)