Merge branch 'master' of https://github.com/backstage/backstage into marley/7678-pull-request-custom-filters-2
This commit is contained in:
@@ -27,8 +27,6 @@ import { createApiRef } from '@backstage/core-plugin-api';
|
||||
|
||||
export const azureDevOpsApiRef = createApiRef<AzureDevOpsApi>({
|
||||
id: 'plugin.azure-devops.service',
|
||||
description:
|
||||
'Used by the Azure DevOps plugin to make requests to accompanying backend',
|
||||
});
|
||||
|
||||
export interface AzureDevOpsApi {
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
|
||||
/**
|
||||
* Filters a reviewer based on vote status and if the reviewer is required.
|
||||
* @param reviewer a reviewer to filter.
|
||||
* @param reviewer - a reviewer to filter.
|
||||
* @returns whether or not to filter the `reviewer`.
|
||||
*/
|
||||
export function reviewerFilter(reviewer: Reviewer): boolean {
|
||||
@@ -39,8 +39,8 @@ export function reviewerFilter(reviewer: Reviewer): boolean {
|
||||
|
||||
/**
|
||||
* Removes values from the provided array and returns them.
|
||||
* @param arr the array to extract values from.
|
||||
* @param filter a filter used to extract values from the provided array.
|
||||
* @param arr - the array to extract values from.
|
||||
* @param filter - a filter used to extract values from the provided array.
|
||||
* @returns the values that were extracted from the array.
|
||||
*
|
||||
* @example
|
||||
@@ -80,8 +80,8 @@ export function arrayExtract<T>(arr: T[], filter: (value: T) => unknown): T[] {
|
||||
|
||||
/**
|
||||
* Creates groups of pull requests based on a list of `PullRequestGroupConfig`.
|
||||
* @param pullRequests all pull requests to be split up into groups.
|
||||
* @param configs the config used for splitting up the pull request groups.
|
||||
* @param pullRequests - all pull requests to be split up into groups.
|
||||
* @param configs - the config used for splitting up the pull request groups.
|
||||
* @returns a list of pull request groups.
|
||||
*/
|
||||
export function getPullRequestGroups(
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
import { Team } from '@backstage/plugin-azure-devops-common';
|
||||
import { azureDevOpsApiRef } from '../api';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { useAsync } from 'react-use';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
|
||||
export function useAllTeams(): {
|
||||
teams?: Team[];
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
*/
|
||||
|
||||
import { errorApiRef, useApi } from '@backstage/core-plugin-api';
|
||||
import { useAsyncRetry, useInterval } from 'react-use';
|
||||
import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
||||
import useInterval from 'react-use/lib/useInterval';
|
||||
|
||||
import { DashboardPullRequest } from '@backstage/plugin-azure-devops-common';
|
||||
import { azureDevOpsApiRef } from '../api';
|
||||
|
||||
@@ -24,7 +24,7 @@ import { AZURE_DEVOPS_DEFAULT_TOP } from '../constants';
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import { azureDevOpsApiRef } from '../api';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { useAsync } from 'react-use';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import { useProjectRepoFromEntity } from './useProjectRepoFromEntity';
|
||||
|
||||
export function usePullRequests(
|
||||
|
||||
@@ -23,7 +23,7 @@ import { AZURE_DEVOPS_DEFAULT_TOP } from '../constants';
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import { azureDevOpsApiRef } from '../api';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { useAsync } from 'react-use';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import { useProjectRepoFromEntity } from './useProjectRepoFromEntity';
|
||||
|
||||
export function useRepoBuilds(
|
||||
|
||||
Reference in New Issue
Block a user