Merge
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
"@backstage/core": "^0.1.1-alpha.16",
|
||||
"@backstage/core-api": "^0.1.1-alpha.16",
|
||||
"@backstage/theme": "^0.1.1-alpha.16",
|
||||
"@backstage/plugin-catalog": "^0.1.1-alpha.16",
|
||||
"@material-ui/core": "^4.9.1",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
"@material-ui/lab": "4.0.0-alpha.45",
|
||||
|
||||
@@ -19,6 +19,7 @@ import { WorkflowRun } from './WorkflowRunsTable';
|
||||
import { githubActionsApiRef } from '../../api/GithubActionsApi';
|
||||
import { useApi, githubAuthApiRef, errorApiRef } from '@backstage/core';
|
||||
import { ActionsListWorkflowRunsForRepoResponseData } from '@octokit/types';
|
||||
import { catalogApiRef } from '@backstage/plugin-catalog';
|
||||
|
||||
export function useWorkflowRuns({
|
||||
repo,
|
||||
@@ -27,6 +28,7 @@ export function useWorkflowRuns({
|
||||
repo: string;
|
||||
owner: string;
|
||||
}) {
|
||||
const catalogApi = useApi(catalogApiRef);
|
||||
const api = useApi(githubActionsApiRef);
|
||||
const auth = useApi(githubAuthApiRef);
|
||||
|
||||
@@ -42,7 +44,11 @@ export function useWorkflowRuns({
|
||||
WorkflowRun[]
|
||||
>(async () => {
|
||||
const token = await auth.getAccessToken(['repo', 'user']);
|
||||
|
||||
const entity = await catalogApi.getEntityByName({
|
||||
kind: 'Component',
|
||||
name: 'backstage-site',
|
||||
});
|
||||
console.log(entity);
|
||||
return (
|
||||
api
|
||||
// GitHub API pagination count starts from 1
|
||||
|
||||
@@ -939,6 +939,133 @@
|
||||
lodash "^4.17.13"
|
||||
to-fast-properties "^2.0.0"
|
||||
|
||||
"@backstage/catalog-model@^0.1.1-alpha.15":
|
||||
version "0.1.1-alpha.15"
|
||||
resolved "https://registry.npmjs.org/@backstage/catalog-model/-/catalog-model-0.1.1-alpha.15.tgz#d1bb2eb53ff12af6868f49a24693fb2c0c209c78"
|
||||
integrity sha512-nHfdeVpeyUpSyL4sjXRgCZ53ODP66o9Koc7oAXM2Gih07Z+thefIXDpY2bjWRcz+VLkVJJyVxRj/5VhrN2bukg==
|
||||
dependencies:
|
||||
"@backstage/config" "^0.1.1-alpha.13"
|
||||
"@types/json-schema" "^7.0.5"
|
||||
"@types/yup" "^0.28.2"
|
||||
json-schema "^0.2.5"
|
||||
lodash "^4.17.15"
|
||||
uuid "^8.0.0"
|
||||
yup "^0.29.1"
|
||||
|
||||
"@backstage/core-api@^0.1.1-alpha.15":
|
||||
version "0.1.1-alpha.15"
|
||||
resolved "https://registry.npmjs.org/@backstage/core-api/-/core-api-0.1.1-alpha.15.tgz#c5d70339ee1b0646841c95f69665be9094b54331"
|
||||
integrity sha512-U4MWV2MZS+0tEUod0HaugYEbsBB2VLG2t41UXm2kYYhLc3JfCr99DRR2KXJSyl2To6fc9//l7IMg4efpfhpWYw==
|
||||
dependencies:
|
||||
"@backstage/config" "^0.1.1-alpha.13"
|
||||
"@backstage/theme" "^0.1.1-alpha.15"
|
||||
"@material-ui/core" "^4.9.1"
|
||||
"@material-ui/icons" "^4.9.1"
|
||||
"@types/react" "^16.9"
|
||||
prop-types "^15.7.2"
|
||||
react "^16.12.0"
|
||||
react-router-dom "6.0.0-beta.0"
|
||||
react-use "^14.2.0"
|
||||
zen-observable "^0.8.15"
|
||||
|
||||
"@backstage/core@^0.1.1-alpha.15":
|
||||
version "0.1.1-alpha.15"
|
||||
resolved "https://registry.npmjs.org/@backstage/core/-/core-0.1.1-alpha.15.tgz#bb998f84643d6e6c88dfe6e8c3b1855cc35d7ed9"
|
||||
integrity sha512-DaKwwj+mS5fa1Wq4R9+jbWMJdPj0JXv+Rzyy1iFKq9Ng9z1Rwum8h3R+q/DlPwSdSNlWaTdikZyw1C43Z+3FYw==
|
||||
dependencies:
|
||||
"@backstage/config" "^0.1.1-alpha.13"
|
||||
"@backstage/core-api" "^0.1.1-alpha.15"
|
||||
"@backstage/theme" "^0.1.1-alpha.15"
|
||||
"@material-ui/core" "^4.9.1"
|
||||
"@material-ui/icons" "^4.9.1"
|
||||
"@material-ui/lab" "4.0.0-alpha.45"
|
||||
"@types/react" "^16.9"
|
||||
"@types/react-sparklines" "^1.7.0"
|
||||
classnames "^2.2.6"
|
||||
clsx "^1.1.0"
|
||||
lodash "^4.17.15"
|
||||
material-table "1.62.x"
|
||||
prop-types "^15.7.2"
|
||||
rc-progress "^3.0.0"
|
||||
react "^16.12.0"
|
||||
react-dom "^16.12.0"
|
||||
react-helmet "6.1.0"
|
||||
react-hook-form "^5.7.2"
|
||||
react-router "6.0.0-beta.0"
|
||||
react-router-dom "6.0.0-beta.0"
|
||||
react-sparklines "^1.7.0"
|
||||
react-syntax-highlighter "^12.2.1"
|
||||
react-use "^14.2.0"
|
||||
|
||||
"@backstage/plugin-catalog@^0.1.1-alpha.15":
|
||||
version "0.1.1-alpha.15"
|
||||
resolved "https://registry.npmjs.org/@backstage/plugin-catalog/-/plugin-catalog-0.1.1-alpha.15.tgz#438b2bf035ea2acf21cddda9c33363ffc6629b55"
|
||||
integrity sha512-4wGs4AROaF+nq7DsQzpgdtifwjQnTfWRO541zSNh117qJe7yIHXzY+XVAzQ5ct421hYXn7ofxwKUsGI4hYgVRg==
|
||||
dependencies:
|
||||
"@backstage/catalog-model" "^0.1.1-alpha.15"
|
||||
"@backstage/core" "^0.1.1-alpha.15"
|
||||
"@backstage/plugin-scaffolder" "^0.1.1-alpha.15"
|
||||
"@backstage/plugin-sentry" "^0.1.1-alpha.15"
|
||||
"@backstage/theme" "^0.1.1-alpha.15"
|
||||
"@material-ui/core" "^4.9.1"
|
||||
"@material-ui/icons" "^4.9.1"
|
||||
"@material-ui/lab" "4.0.0-alpha.45"
|
||||
moment "^2.26.0"
|
||||
react "^16.13.1"
|
||||
react-dom "^16.13.1"
|
||||
react-router "6.0.0-beta.0"
|
||||
react-router-dom "6.0.0-beta.0"
|
||||
react-use "^14.2.0"
|
||||
swr "^0.2.2"
|
||||
|
||||
"@backstage/plugin-scaffolder@^0.1.1-alpha.15":
|
||||
version "0.1.1-alpha.15"
|
||||
resolved "https://registry.npmjs.org/@backstage/plugin-scaffolder/-/plugin-scaffolder-0.1.1-alpha.15.tgz#935d21a5c815c530bd4fed89b9c1d4cb983a57bb"
|
||||
integrity sha512-+HZ/aPlMcacuT7JYN2hYlZqWA8jYoAEoh7laBripm1nIxhxCLi4BuPX4X0W73a3cpCv+MYefvUq0g7yYDJvQJw==
|
||||
dependencies:
|
||||
"@backstage/catalog-model" "^0.1.1-alpha.15"
|
||||
"@backstage/core" "^0.1.1-alpha.15"
|
||||
"@backstage/plugin-catalog" "^0.1.1-alpha.15"
|
||||
"@backstage/theme" "^0.1.1-alpha.15"
|
||||
"@material-ui/core" "^4.9.1"
|
||||
"@material-ui/icons" "^4.9.1"
|
||||
"@material-ui/lab" "4.0.0-alpha.45"
|
||||
"@rjsf/core" "^2.1.0"
|
||||
"@rjsf/material-ui" "^2.1.0"
|
||||
classnames "^2.2.6"
|
||||
moment "^2.26.0"
|
||||
react "^16.13.1"
|
||||
react-dom "^16.13.1"
|
||||
react-lazylog "^4.5.2"
|
||||
react-router "6.0.0-beta.0"
|
||||
react-router-dom "6.0.0-beta.0"
|
||||
react-use "^14.2.0"
|
||||
swr "^0.2.2"
|
||||
|
||||
"@backstage/plugin-sentry@^0.1.1-alpha.15":
|
||||
version "0.1.1-alpha.15"
|
||||
resolved "https://registry.npmjs.org/@backstage/plugin-sentry/-/plugin-sentry-0.1.1-alpha.15.tgz#8a507f7143766582dc5bed7a9ee09ea256cbdd0d"
|
||||
integrity sha512-wBOSqOvF6qedZ9gAYR3aQ8rqbgCUQz5WA5Mw7KZVa0FeWdjLIKYsDl0oI6EE3EQZV9iZef6kzY7W/8gjJV3fHQ==
|
||||
dependencies:
|
||||
"@backstage/core" "^0.1.1-alpha.15"
|
||||
"@backstage/theme" "^0.1.1-alpha.15"
|
||||
"@material-ui/core" "^4.9.1"
|
||||
"@material-ui/icons" "^4.9.1"
|
||||
"@material-ui/lab" "4.0.0-alpha.45"
|
||||
"@types/react" "^16.9"
|
||||
react "^16.13.1"
|
||||
react-dom "^16.13.1"
|
||||
react-sparklines "^1.7.0"
|
||||
react-use "^14.2.0"
|
||||
timeago.js "^4.0.2"
|
||||
|
||||
"@backstage/theme@^0.1.1-alpha.15":
|
||||
version "0.1.1-alpha.15"
|
||||
resolved "https://registry.npmjs.org/@backstage/theme/-/theme-0.1.1-alpha.15.tgz#b30ec50ef0aba672f3b6f6ed3fb0209ec2990008"
|
||||
integrity sha512-cyE3jj3Oynd8NHYSVm7H1Dhz573oe7V6vOAetdoqt7fX7I28onoSrUzv8x9eVM8uX4FiMck8PISPVKPGddCDZQ==
|
||||
dependencies:
|
||||
"@material-ui/core" "^4.9.1"
|
||||
|
||||
"@bcoe/v8-coverage@^0.2.3":
|
||||
version "0.2.3"
|
||||
resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
|
||||
|
||||
Reference in New Issue
Block a user