Skip to content
Snippets Groups Projects
Unverified Commit 35be4234 authored by Michael Kriese's avatar Michael Kriese Committed by GitHub
Browse files

fix(internal): change url encoding to lowercase (#6879)

parent a13b5957
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ Array [
"user-agent": "https://github.com/renovatebot/renovate",
},
"method": "GET",
"url": "https://gitlab.com/api/v4/projects/meno%2Fdropzone/repository/tags",
"url": "https://gitlab.com/api/v4/projects/meno%2fdropzone/repository/tags",
},
Object {
"headers": Object {
......@@ -260,7 +260,7 @@ Array [
"user-agent": "https://github.com/renovatebot/renovate",
},
"method": "GET",
"url": "https://gitlab.com/api/v4/projects/meno%2Fdropzone/repository/tags",
"url": "https://gitlab.com/api/v4/projects/meno%2fdropzone/repository/tags",
},
Object {
"headers": Object {
......@@ -407,7 +407,7 @@ Array [
"user-agent": "https://github.com/renovatebot/renovate",
},
"method": "GET",
"url": "https://gitlab.com/api/v4/projects/meno%2Fdropzone/repository/tags",
"url": "https://gitlab.com/api/v4/projects/meno%2fdropzone/repository/tags",
},
Object {
"headers": Object {
......
......@@ -84,7 +84,7 @@ describe(getName(__filename), () => {
it('uses GitLab tags', async () => {
httpMock
.scope(baseUrl)
.get('/api/v4/projects/meno%2Fdropzone/repository/tags')
.get('/api/v4/projects/meno%2fdropzone/repository/tags')
.reply(200, [
{ name: 'v5.2.0' },
{ name: 'v5.4.0' },
......@@ -109,7 +109,7 @@ describe(getName(__filename), () => {
it('handles empty GitLab tags response', async () => {
httpMock
.scope(baseUrl)
.get('/api/v4/projects/meno%2Fdropzone/repository/tags')
.get('/api/v4/projects/meno%2fdropzone/repository/tags')
.reply(200, [])
.persist()
.get('/api/v4/projects/meno/dropzone/repository/tree/')
......@@ -127,7 +127,7 @@ describe(getName(__filename), () => {
it('uses GitLab tags with error', async () => {
httpMock
.scope(baseUrl)
.get('/api/v4/projects/meno%2Fdropzone/repository/tags')
.get('/api/v4/projects/meno%2fdropzone/repository/tags')
.replyWithError('Unknown GitLab Repo')
.persist()
.get('/api/v4/projects/meno/dropzone/repository/tree/')
......
......@@ -21,7 +21,7 @@ async function getTagsInner(
): Promise<string[]> {
logger.trace('getTags() from gitlab');
let url = endpoint;
const repoid = repository.replace(/\//g, '%2F');
const repoid = repository.replace(/\//g, '%2f');
url += `projects/${repoid}/repository/tags`;
try {
const res = await gitlabHttp.getJson<{ name: string }[]>(url, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment