fix: #24 remove baseurl field

This commit is contained in:
IJustDev 2021-03-12 21:13:48 +01:00
parent 47303acffb
commit 023e189caa
2 changed files with 2 additions and 13 deletions

View File

@ -79,19 +79,9 @@
"http://example.com:3000",
"https://gitea.com"
],
"description": "The remote gitea instance's url. Should not end with a slash.",
"description": "The remote gitea instance's url. Append base url to this string eg. http://localhost:8080 or http://localhost/gitea",
"pattern": "^(https|http)://"
},
"gitea.baseURL": {
"scope": "resource",
"type": "string",
"default": "",
"examples": [
"/gitea"
],
"description": "The base url of the Gitea instance.",
"pattern": ""
},
"gitea.owner": {
"scope": "resource",
"type": "string",

View File

@ -77,8 +77,7 @@ export class Config implements ConfigTypes {
}
public get repoApiUrl(): string {
return this.instanceURL.replace(/\/$/, "") + "/" +
this.baseURL.replace(/\/$/, "") +
return this.instanceURL.replace(/\/$/, "") +
'/api/v1/repos/' +
this.owner +
'/' + this.repo + '/issues';