Skip to content

Commit 20d3e87

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 6c20a11 commit 20d3e87

File tree

43 files changed

+532
-159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+532
-159
lines changed

.gitlab/ci/reports.gitlab-ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,23 @@ pajamas_adoption:
143143
extends:
144144
- .default-retry
145145
- .reports:rules:pajamas_adoption
146-
allow_failure: true
146+
allow_failure:
147+
# The scanner exits with status:
148+
# - 0 when no errors occur, and no blocking findings are found;
149+
# - 1 when unexpected errors occur;
150+
# - 2 when blocking findings are found.
151+
# We only want to block the merge request in this last case.
152+
exit_codes: 1
147153
image: ${REGISTRY_HOST}/${REGISTRY_GROUP}/frontend/pajamas-adoption-scanner:latest
148154
stage: lint
149155
needs: []
156+
variables:
157+
FF_USE_NEW_BASH_EVAL_STRATEGY: 'true'
150158
script:
151-
- EE_APP=$(test -d ee/app/ && echo 'ee/app/' || true)
152-
- scan_gitlab_code_quality app/ $EE_APP
159+
- scan_gitlab_code_quality {,ee/}app/
153160
artifacts:
154161
name: pajamas-adoption
162+
when: always
155163
paths:
156164
- gl-code-quality-report.json
157165
- pas-findings.json

.gitlab/ci/rules.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2727,7 +2727,8 @@
27272727
- <<: *if-merge-request
27282728
changes:
27292729
- '{,ee/}app/**/*.{js,vue,rb,haml}'
2730-
- <<: *if-default-refs
2730+
- <<: *if-default-branch-refs
2731+
allow_failure: true
27312732

27322733
################
27332734
# Review rules #

.rubocop_todo/layout/empty_line_after_magic_comment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ Layout/EmptyLineAfterMagicComment:
126126
- 'config/routes/merge_requests.rb'
127127
- 'danger/ce_ee_vue_templates/Dangerfile'
128128
- 'danger/feature_flag/Dangerfile'
129-
- 'danger/pajamas/Dangerfile'
130129
- 'ee/app/controllers/concerns/epics_actions.rb'
131130
- 'ee/app/controllers/concerns/saml_authorization.rb'
132131
- 'ee/app/controllers/ee/projects/analytics/cycle_analytics/stages_controller.rb'

.rubocop_todo/layout/line_length.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,6 @@ Layout/LineLength:
668668
- 'danger/ci_config/Dangerfile'
669669
- 'danger/documentation/Dangerfile'
670670
- 'danger/feature_flag/Dangerfile'
671-
- 'danger/pajamas/Dangerfile'
672671
- 'danger/roulette/Dangerfile'
673672
- 'danger/vue_shared_documentation/Dangerfile'
674673
- 'ee/app/controllers/admin/elasticsearch_controller.rb'

.rubocop_todo/lint/missing_cop_enable_directive.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ Lint/MissingCopEnableDirective:
5959
- 'app/services/projects/container_repository/third_party/delete_tags_service.rb'
6060
- 'app/services/search/global_service.rb'
6161
- 'danger/feature_flag/Dangerfile'
62-
- 'danger/pajamas/Dangerfile'
6362
- 'ee/app/controllers/ee/admin/dashboard_controller.rb'
6463
- 'ee/app/controllers/ee/admin/groups_controller.rb'
6564
- 'ee/app/controllers/ee/admin/users_controller.rb'

app/assets/javascripts/emoji/components/picker.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default {
145145
<gl-button
146146
v-gl-tooltip
147147
:title="$options.i18n.addReaction"
148-
:class="toggleClass"
148+
:class="[toggleClass, { 'is-active': isVisible }]"
149149
class="gl-relative gl-h-full"
150150
data-testid="add-reaction-button"
151151
>
@@ -154,10 +154,16 @@ export default {
154154
<gl-icon class="award-control-icon-neutral gl-button-icon" name="slight-smile" />
155155
</span>
156156
<span class="reaction-control-icon reaction-control-icon-positive">
157-
<gl-icon class="award-control-icon-positive gl-button-icon" name="smiley" />
157+
<gl-icon
158+
class="award-control-icon-positive gl-button-icon gl-left-3!"
159+
name="smiley"
160+
/>
158161
</span>
159162
<span class="reaction-control-icon reaction-control-icon-super-positive">
160-
<gl-icon class="award-control-icon-super-positive gl-button-icon" name="smile" />
163+
<gl-icon
164+
class="award-control-icon-super-positive gl-button-icon gl-left-3!"
165+
name="smile"
166+
/>
161167
</span>
162168
</slot>
163169
</gl-button>

app/assets/javascripts/packages_and_registries/settings/project/components/packages_protection_rules.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ export default {
135135
:fields="$options.fields"
136136
show-empty
137137
stacked="md"
138+
class="mb-3"
139+
:aria-label="$options.i18n.settingBlockTitle"
138140
:busy="isLoadingPackageProtectionRules"
139141
>
140142
<template #table-busy>

app/assets/javascripts/repository/components/commit_info.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,21 @@ export default {
112112
</div>
113113
<div
114114
class="committer gl-flex-basis-full"
115-
:class="truncateAuthorName ? 'gl-display-inline-flex' : ''"
115+
:class="{ 'gl-display-inline-flex': truncateAuthorName }"
116116
data-testid="committer"
117117
>
118118
<gl-link
119119
v-if="commit.author"
120120
:href="commit.author.webPath"
121121
class="commit-author-link js-user-link"
122-
:class="truncateAuthorName ? 'gl-display-inline-block gl-text-truncate' : ''"
122+
:class="{ 'gl-display-inline-block gl-text-truncate': truncateAuthorName }"
123123
>
124124
{{ commit.author.name }}</gl-link
125125
>
126126
<template v-else>
127127
{{ commit.authorName }}
128128
</template>
129-
{{ $options.i18n.authored }}&nbsp;
129+
{{ $options.i18n.authored }}
130130
<timeago-tooltip :time="commit.authoredDate" tooltip-placement="bottom" />
131131
</div>
132132
<pre

app/assets/stylesheets/framework/files.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ span.idiff {
413413
}
414414

415415
.version-link {
416+
display: inline-block;
416417
align-self: center;
417418
margin-top: $gl-spacing-scale-2;
418419
width: $gl-spacing-scale-5;

app/assets/stylesheets/pages/commits.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,12 @@
137137
color: $gl-text-color;
138138
}
139139

140+
&.gl-display-inline-flex {
141+
gap: 0.5ch;
142+
}
143+
140144
.commit-author-link.gl-text-truncate {
141-
max-width: 20ch;
145+
max-width: 19ch;
142146
}
143147
}
144148
}

0 commit comments

Comments
 (0)