Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next #517

Merged
merged 12 commits into from
Jul 23, 2024
Merged

Next #517

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
# setting this should create the npmrc with $NODE_AUTH_TOKEN
registry-url: 'https://registry.npmjs.org'

Expand All @@ -27,7 +27,7 @@ jobs:
- name: Bootstrap lerna
run: yarn

- name: Lerna build
- name: Build packages
run: yarn build

- name: Bump release
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Install dependencies
run: yarn install --immutable
Expand All @@ -34,11 +34,24 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
- name: Install dependencies
run: yarn install
- name: Test
run: yarn prettier --check .
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install dependencies
run: yarn install
- name: Build packages
run: yarn build
test:
runs-on: ubuntu-latest
steps:
Expand All @@ -47,7 +60,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Install dependencies
run: yarn
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "es5"
"trailingComma": "es5",
"endOfLine": "auto"
}
28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

873 changes: 0 additions & 873 deletions .yarn/releases/yarn-3.5.1.cjs

This file was deleted.

894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
nodeLinker: node-modules
compressionLevel: mixed

enableGlobalCache: true

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.5.1.cjs
yarnPath: .yarn/releases/yarn-4.3.1.cjs
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [6.6.0-alpha.0](https://github.com/immobiliare/backstage-plugin-gitlab/compare/v6.5.1...v6.6.0-alpha.0) (2024-07-23)

### Features

- bump dependencies to 1.29.1 ([d481b34](https://github.com/immobiliare/backstage-plugin-gitlab/commit/d481b344bdd06c0ca6b9dff02931883a6c1a2466))
- **readme:** ✨ adds partial support for GLFM ([bfce13b](https://github.com/immobiliare/backstage-plugin-gitlab/commit/bfce13b0eed2b4a42a1b68d62906074f71628d92))

## [6.5.1](https://github.com/immobiliare/backstage-plugin-gitlab/compare/v6.5.1-alpha.0...v6.5.1) (2024-05-16)

**Note:** Version bump only for package root
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
- View Contributors for a project
- View Languages used for a project
- View Pipeline status for a project
- View README for a project
- View README for a project (with partial support for GLFM)
- Works for both project and personal tokens
- Pagination for builds
- Pagination for Merge Requests
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": true,
"useWorkspaces": true,
"npmClient": "yarn",
"version": "6.5.1"
"version": "6.6.0-alpha.0"
}
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"packages/*"
],
"devDependencies": {
"@backstage/cli": "^0.26.11",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@typescript-eslint/eslint-plugin": "^5.36.0",
Expand All @@ -14,7 +15,7 @@
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"is-ci": "^3.0.1",
"lerna": "^6.0.3",
"lerna": "^8.1.7",
"lint-staged": "^13.0.3",
"markdown-toc": "^1.2.0",
"prettier": "^2.7.1",
Expand All @@ -23,12 +24,15 @@
"engines": {
"node": ">=18.0.0"
},
"volta": {
"node": "20.15.1"
},
"scripts": {
"type": "tsc --noEmit",
"style:lint": "eslint packages --ext .ts",
"style:lint-fix": "eslint packages --ext .ts --fix",
"style:prettier": "prettier \"packages/**/*.ts\" --list-different --write",
"build": "npx lerna run build",
"build": "tsc && backstage-cli repo build --all",
"bootstrap": "npx lerna bootstrap",
"publish:ci": "lerna publish from-package --yes --pre-dist-tag alpha",
"test": "lerna run test:ci",
Expand All @@ -38,5 +42,5 @@
"postinstall": "node prepare.js || echo 'Skipping prepare'",
"prepare": "node prepare.js || echo 'Skipping prepare'"
},
"packageManager": "yarn@3.5.1"
"packageManager": "yarn@4.3.1"
}
6 changes: 6 additions & 0 deletions packages/gitlab-backend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [6.6.0-alpha.0](https://github.com/immobiliare/backstage-plugin-gitlab/compare/v6.5.1...v6.6.0-alpha.0) (2024-07-23)

### Features

- bump dependencies to 1.29.1 ([d481b34](https://github.com/immobiliare/backstage-plugin-gitlab/commit/d481b344bdd06c0ca6b9dff02931883a6c1a2466))

## [6.5.1](https://github.com/immobiliare/backstage-plugin-gitlab/compare/v6.5.1-alpha.0...v6.5.1) (2024-05-16)

**Note:** Version bump only for package @immobiliarelabs/backstage-plugin-gitlab-backend
Expand Down
25 changes: 15 additions & 10 deletions packages/gitlab-backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@immobiliarelabs/backstage-plugin-gitlab-backend",
"version": "6.5.1",
"version": "6.6.0-alpha.0",
"main": "dist/index.cjs.js",
"types": "dist/index.d.ts",
"license": "Apache-2.0",
Expand All @@ -10,7 +10,12 @@
"types": "dist/index.d.ts"
},
"backstage": {
"role": "backend-plugin"
"role": "backend-plugin",
"pluginId": "gitlab",
"pluginPackages": [
"@immobiliarelabs/backstage-plugin-gitlab",
"@immobiliarelabs/backstage-plugin-gitlab-backend"
]
},
"repository": {
"type": "git",
Expand All @@ -27,7 +32,7 @@
"scripts": {
"start": "backstage-cli package start",
"types": "tsc",
"build": "yarn types && backstage-cli package build",
"build": "backstage-cli package build",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test",
"test:ci": "backstage-cli package test --watch false",
Expand All @@ -36,10 +41,10 @@
"postpack": "backstage-cli package postpack"
},
"dependencies": {
"@backstage/backend-common": "^0.22.0",
"@backstage/backend-plugin-api": "^0.6.18",
"@backstage/backend-common": "^0.23.3",
"@backstage/backend-plugin-api": "^0.7.0",
"@backstage/config": "^1.2.0",
"@backstage/integration": "^1.11.0",
"@backstage/integration": "^1.13.0",
"body-parser": "^1.20.2",
"express": "^4.17.3",
"express-promise-router": "^4.1.0",
Expand All @@ -48,11 +53,11 @@
"yn": "^4.0.0"
},
"devDependencies": {
"@backstage/backend-test-utils": "^0.3.8",
"@backstage/backend-test-utils": "^0.4.4",
"@backstage/catalog-model": "^1.5.0",
"@backstage/cli": "^0.26.5",
"@backstage/plugin-catalog-common": "^1.0.23",
"@backstage/plugin-catalog-node": "^1.12.0",
"@backstage/cli": "^0.26.11",
"@backstage/plugin-catalog-common": "^1.0.25",
"@backstage/plugin-catalog-node": "^1.12.4",
"@types/express": "^4.17.21",
"@types/supertest": "^2.0.12",
"msw": "^1.0.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/gitlab/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [6.6.0-alpha.0](https://github.com/immobiliare/backstage-plugin-gitlab/compare/v6.5.1...v6.6.0-alpha.0) (2024-07-23)

### Features

- bump dependencies to 1.29.1 ([d481b34](https://github.com/immobiliare/backstage-plugin-gitlab/commit/d481b344bdd06c0ca6b9dff02931883a6c1a2466))
- **readme:** ✨ adds partial support for GLFM ([bfce13b](https://github.com/immobiliare/backstage-plugin-gitlab/commit/bfce13b0eed2b4a42a1b68d62906074f71628d92))

## [6.5.1](https://github.com/immobiliare/backstage-plugin-gitlab/compare/v6.5.1-alpha.0...v6.5.1) (2024-05-16)

**Note:** Version bump only for package @immobiliarelabs/backstage-plugin-gitlab
Expand Down
43 changes: 27 additions & 16 deletions packages/gitlab/dev/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
import { EntityProvider } from '@backstage/plugin-catalog-react';
import { gitlabPlugin, EntityGitlabContent } from '../src/plugin';
import {
gitlabPlugin,
EntityGitlabContent,
EntityGitlabReadmeCard,
} from '../src/plugin';
import { GitlabCIApiRef, GitlabCIClient } from '../src/api';
import { mockedGitlabReqToRes, projectId } from './mock-gitlab/api-v4-v15.7.0';
import { configApiRef, discoveryApiRef } from '@backstage/core-plugin-api';
import { GraphQLQuery } from '../src/api/GitlabCIApi';

const devEntity = {
metadata: {
annotations: {
'gitlab.com/project-id': `${projectId}`,
'gitlab.com/codeowners-path': `CODEOWNERS`,
'gitlab.com/readme-path': `README.md`,
},
name: 'backstage',
},
apiVersion: 'backstage.io/v1alpha1',
kind: 'Component',
};

createDevApp()
.registerPlugin(gitlabPlugin)
.registerApi({
Expand Down Expand Up @@ -60,25 +77,19 @@ createDevApp()
})
.addPage({
element: (
<EntityProvider
entity={{
metadata: {
annotations: {
'gitlab.com/project-id': `${projectId}`,
'gitlab.com/codeowners-path': `CODEOWNERS`,
'gitlab.com/readme-path': `README.md`,
},
name: 'backstage',
},
apiVersion: 'backstage.io/v1alpha1',
kind: 'Component',
}}
>
{' '}
<EntityProvider entity={devEntity}>
<EntityGitlabContent />
</EntityProvider>
),
title: 'Root Page',
path: '/backstage-plugin-gitlab',
})
.addPage({
element: (
<EntityProvider entity={devEntity}>
<EntityGitlabReadmeCard />
</EntityProvider>
),
title: 'Readme Card',
})
.render();
4 changes: 3 additions & 1 deletion packages/gitlab/dev/mock-gitlab/api-v4-v15.7.0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6429,7 +6429,9 @@ rust-toolchain @xMAC94x
[![lines of code](https://tokei.rs/b1/gitlab/veloren/veloren)](https://tokei.rs/b1/gitlab/veloren/veloren)
[![contributor count](https://img.shields.io/github/contributors/veloren/veloren)](https://gitlab.com/veloren/veloren/-/graphs/master)

## Welcome to Veloren!
[TOC]

## Welcome to Veloren! :smile:

Veloren is a multiplayer voxel RPG written in Rust. It is inspired by games such as Cube World, The Legend of Zelda: Breath of the Wild, Dwarf Fortress and Minecraft. The game is in active development and enjoys a flourishing player community.

Expand Down
35 changes: 23 additions & 12 deletions packages/gitlab/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@immobiliarelabs/backstage-plugin-gitlab",
"version": "6.5.1",
"version": "6.6.0-alpha.0",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts",
"license": "Apache-2.0",
Expand All @@ -10,7 +10,12 @@
"types": "dist/index.d.ts"
},
"backstage": {
"role": "frontend-plugin"
"role": "frontend-plugin",
"pluginId": "gitlab",
"pluginPackages": [
"@immobiliarelabs/backstage-plugin-gitlab",
"@immobiliarelabs/backstage-plugin-gitlab-backend"
]
},
"repository": {
"type": "git",
Expand All @@ -23,10 +28,11 @@
"immobiliare",
"immobiliarelabs"
],
"sideEffects": false,
"scripts": {
"start": "backstage-cli package start",
"types": "tsc",
"build": "yarn types && backstage-cli package build",
"build": "backstage-cli package build",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test",
"test:ci": "backstage-cli package test --watch false",
Expand All @@ -35,16 +41,21 @@
"postpack": "backstage-cli package postpack"
},
"dependencies": {
"@backstage/core-components": "^0.14.7",
"@backstage/core-plugin-api": "^1.9.2",
"@backstage/plugin-catalog-react": "^1.12.0",
"@backstage/theme": "^0.5.4",
"@backstage/core-components": "^0.14.9",
"@backstage/core-plugin-api": "^1.9.3",
"@backstage/plugin-catalog-react": "^1.12.2",
"@backstage/theme": "^0.5.6",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.61",
"@mui/x-charts": "^6.0.0-alpha.7",
"dayjs": "^1.11.10",
"react-markdown": "^9.0.1",
"react-use": "^17.4.0",
"remark-gemoji": "^8.0.0",
"remark-gfm": "^4.0.0",
"remark-remove-comments": "^1.0.1",
"remark-toc": "^9.0.0",
"semver": "^7.5.4"
},
"peerDependencies": {
Expand All @@ -54,11 +65,11 @@
"react-router-dom": "6.0.0-beta.0 || ^6.20.0"
},
"devDependencies": {
"@backstage/cli": "^0.26.5",
"@backstage/core-app-api": "^1.12.5",
"@backstage/dev-utils": "^1.0.32",
"@backstage/plugin-catalog-react": "^1.12.0",
"@backstage/test-utils": "^1.5.5",
"@backstage/cli": "^0.26.11",
"@backstage/core-app-api": "^1.14.0",
"@backstage/dev-utils": "^1.0.35",
"@backstage/plugin-catalog-react": "^1.12.2",
"@backstage/test-utils": "^1.5.8",
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@gitbeaker/rest": "^40.0.2",
Expand Down
Loading
Loading