stable

Clone or download

Read-only

fix: pull-requests badge should redirect to correct homepage

part of story #35825 Pull request new home page - Filter on labels The badge showing the number of open pull-requests displayed on repositories always point to the old pull-requests dashboard. It should take into account the value of feature_flag_display_old_pull_requests_dashboard How to test: - When the feature flag is disabled --> It points to the new homepage - When it is enabled --> It points to the old dashboard Change-Id: Ic632940582689d9aa2275900743896980585d327

Modified Files

Name
A plugins/git/include/Events/GetPullRequestDashboardViewEvent.php +46 −0 Go to diff View file
M plugins/git/include/Git/RepositoryList/GitRepositoryListPresenter.php +1 −0 Go to diff View file
M plugins/git/include/Git/RepositoryList/ListPresenterBuilder.php +6 −1 Go to diff View file
M plugins/git/scripts/repositories-list/package.json +1 −0 Go to diff View file
M plugins/git/scripts/repositories-list/pnpm-lock.yaml +7 −4 Go to diff View file
M plugins/git/scripts/repositories-list/src/components/PullRequestBadge.vue +12 −4 Go to diff View file
M plugins/git/scripts/repositories-list/src/components/__snapshots__/PullRequestBadge.test.ts.snap +1 −1 Go to diff View file
A plugins/git/scripts/repositories-list/src/helpers/pull-requests-homepage-url-builder.test.ts +52 −0 Go to diff View file
A plugins/git/scripts/repositories-list/src/helpers/pull-requests-homepage-url-builder.ts +50 −0 Go to diff View file
M plugins/git/scripts/repositories-list/src/index.ts +29 −87 Go to diff View file
M plugins/git/scripts/repositories-list/src/repository-list-presenter.ts +7 −0 Go to diff View file
M plugins/git/templates/repositories/repository-list.mustache +1 −0 Go to diff View file
M plugins/pullrequest/include/pullrequestPlugin.php +7 −0 Go to diff View file