forked from gitlabhq/gitlabhq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add latest changes from gitlab-org/gitlab@master
- Loading branch information
GitLab Bot
committed
Jul 21, 2022
1 parent
265a7ce
commit f44215b
Showing
55 changed files
with
603 additions
and
634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
app/assets/javascripts/vue_shared/components/source_viewer/plugins/link_dependencies.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
app/assets/javascripts/vue_shared/components/source_viewer/plugins/utils/gemspec_linker.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { joinPaths } from '~/lib/utils/url_utility'; | ||
import { GEM_URL } from '../../constants'; | ||
import { createLink, generateHLJSOpenTag } from './dependency_linker_util'; | ||
|
||
const methodRegex = '.*add_dependency.*|.*add_runtime_dependency.*|.*add_development_dependency.*'; | ||
const openTagRegex = generateHLJSOpenTag('string', '(&.*;)'); | ||
const closeTagRegex = '&.*</span>'; | ||
|
||
const DEPENDENCY_REGEX = new RegExp( | ||
/* | ||
* Detects gemspec dependencies inside of content that is highlighted by Highlight.js | ||
* Example: s.add_dependency(<span class="hljs-string">'rugged'</span>, <span class="hljs-string">'~> 0.24.0'</span>) | ||
* | ||
* Group 1 (method) : s.add_dependency( | ||
* Group 2 (delimiter) : ' | ||
* Group 3 (packageName): rugged | ||
* Group 4 (closeTag) : '</span> | ||
* Group 5 (rest) : , <span class="hljs-string">'~> 0.24.0'</span>) | ||
*/ | ||
`(${methodRegex})${openTagRegex}(.*)(${closeTagRegex})(.*${closeTagRegex})`, | ||
'gm', | ||
); | ||
|
||
const handleReplace = (method, delimiter, packageName, closeTag, rest) => { | ||
// eslint-disable-next-line @gitlab/require-i18n-strings | ||
const openTag = generateHLJSOpenTag('string linked', delimiter); | ||
const href = joinPaths(GEM_URL, packageName); | ||
const packageLink = createLink(href, packageName); | ||
|
||
return `${method}${openTag}${packageLink}${closeTag}${rest}`; | ||
}; | ||
|
||
export default (result) => { | ||
return result.value.replace( | ||
DEPENDENCY_REGEX, | ||
(_, method, delimiter, packageName, closeTag, rest) => | ||
handleReplace(method, delimiter, packageName, closeTag, rest), | ||
); | ||
}; |
2 changes: 1 addition & 1 deletion
2
app/assets/javascripts/work_items/graphql/create_work_item.mutation.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/assets/javascripts/work_items/graphql/create_work_item_from_task.mutation.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/assets/javascripts/work_items/graphql/local_update_work_item.mutation.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/assets/javascripts/work_items/graphql/update_work_item.mutation.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/assets/javascripts/work_items/graphql/update_work_item_task.mutation.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/assets/javascripts/work_items/graphql/update_work_item_widgets.mutation.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/assets/javascripts/work_items/graphql/work_item.query.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...affected_projects_on_group_membership.yml → ...pment/soft_validation_on_external_url.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
name: refresh_authorizations_via_affected_projects_on_group_membership | ||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/87071 | ||
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/362204 | ||
milestone: '15.0' | ||
name: soft_validation_on_external_url | ||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/91970 | ||
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/367206 | ||
milestone: '15.2' | ||
type: development | ||
group: group::workspace | ||
group: group::release | ||
default_enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.