OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Do not use the whole work package's href as a base URL
Oliver Güntherf561bda09a03
diff --git a/modules/github_integration/frontend/module/state/github-pull-request.service.ts b/modules/github_integration/frontend/module/state/github-pull-request.service.tsindex 0d1e24a3bcf..4529f1e74f3 100644--- a/modules/github_integration/frontend/module/state/github-pull-request.service.ts+++ b/modules/github_integration/frontend/module/state/github-pull-request.service.ts@@ -37,7 +37,8 @@ import { Observable } from 'rxjs';@Injectable()export class GithubPullRequestResourceService extends ResourceStoreService<IGithubPullRequest> {ofWorkPackage(workPackage:WorkPackageResource):Observable<IGithubPullRequest[]> {- return this.requireCollection(`${workPackage.href as string}/github_pull_requests`);+ const path = this.workPackagePullRequestsPath(workPackage.id as string);+ return this.requireCollection(path);}requireSingle(id:ID):Observable<IGithubPullRequest> {@@ -52,6 +53,10 @@ export class GithubPullRequestResourceService extends ResourceStoreService<IGithreturn this.apiV3Service.github_pull_requests.id(id).path;}+ protected workPackagePullRequestsPath(id:ID):string {+ return this.apiV3Service.work_packages.id(id).github_pull_requests.path;+ }+protected createStore():ResourceStore<IGithubPullRequest> {return new GithubPullRequestsStore();}