Commit 47eb26ba authored by Sean McGivern's avatar Sean McGivern

Merge branch '261441-capitalize-auto-generated-package-name-in-graphql-api' into 'master'

Resolve "Capitalize auto generated package name in graphQL api"

See merge request gitlab-org/gitlab!44247
parents 08f942a1 aa087785
......@@ -2,8 +2,14 @@
module Types
class PackageTypeEnum < BaseEnum
PACKAGE_TYPE_NAMES = {
pypi: 'PyPI',
npm: 'NPM'
}.freeze
::Packages::Package.package_types.keys.each do |package_type|
value package_type.to_s.upcase, "Packages from the #{package_type.capitalize} package manager", value: package_type.to_s
type_name = PACKAGE_TYPE_NAMES.fetch(package_type.to_sym, package_type.capitalize)
value package_type.to_s.upcase, "Packages from the #{type_name} package manager", value: package_type.to_s
end
end
end
......@@ -12464,7 +12464,7 @@ enum PackageTypeEnum {
MAVEN
"""
Packages from the Npm package manager
Packages from the NPM package manager
"""
NPM
......@@ -12474,7 +12474,7 @@ enum PackageTypeEnum {
NUGET
"""
Packages from the Pypi package manager
Packages from the PyPI package manager
"""
PYPI
}
......
......@@ -36751,7 +36751,7 @@
},
{
"name": "NPM",
"description": "Packages from the Npm package manager",
"description": "Packages from the NPM package manager",
"isDeprecated": false,
"deprecationReason": null
},
......@@ -36769,7 +36769,7 @@
},
{
"name": "PYPI",
"description": "Packages from the Pypi package manager",
"description": "Packages from the PyPI package manager",
"isDeprecated": false,
"deprecationReason": null
},
......@@ -3458,9 +3458,9 @@ Values for sorting projects.
| `GENERIC` | Packages from the Generic package manager |
| `GOLANG` | Packages from the Golang package manager |
| `MAVEN` | Packages from the Maven package manager |
| `NPM` | Packages from the Npm package manager |
| `NPM` | Packages from the NPM package manager |
| `NUGET` | Packages from the Nuget package manager |
| `PYPI` | Packages from the Pypi package manager |
| `PYPI` | Packages from the PyPI package manager |
### PipelineConfigSourceEnum
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment