Extended changelist docs; Fixed lint errors

This commit is contained in:
Nir Gazit
2021-01-28 14:37:44 +02:00
parent 84364b35c8
commit af045e3a77
2 changed files with 12 additions and 7 deletions
+11 -1
View File
@@ -2,4 +2,14 @@
'@backstage/plugin-catalog-backend': minor
---
Added an option to scan github for repositories using a new location type 'github-discovery'
Added an option to scan GitHub for repositories using a new location type `github-discovery`.
Example:
```yaml
type: 'github-discovery',
target:
'https://github.com/backstage/techdocs-*/blob/master/catalog.yaml'
```
You can use wildcards (`*`) as well. This will add `location` entities for each matching repository.
Currently though, you must specify the exact path of the `catalog.yaml` file in the repository.
@@ -14,13 +14,8 @@
* limitations under the License.
*/
import {
GroupEntity,
LocationEntity,
UserEntity,
} from '@backstage/catalog-model';
import { GroupEntity, UserEntity } from '@backstage/catalog-model';
import { graphql } from '@octokit/graphql';
import { xorWith } from 'lodash/fp';
// Graphql types