Skip to content

Commit

Permalink
Added Change log plugin (#124)
Browse files Browse the repository at this point in the history
* Added changelog workspace

* Added changelog plugin code repliace script

* Added Backstage app for changelog development

* Added copy of the changelog plugin

* Added documentation resources

* Updated plugin integration in dev app

* Applied prettier

* Use relative link to examples

* Fixed api report

* Removed support for old backend

* Updated tsconfig

* Fixed express router handling

* Added api report

* Added changeset

* Fixed typos

* Normalized annotation condition name

* Applied Prettier

* Added repository references

---------

Co-authored-by: Florian JUDITH <[email protected]>
  • Loading branch information
fjudith and Florian JUDITH authored Feb 2, 2025
1 parent 3ae66fe commit 6bb12f9
Show file tree
Hide file tree
Showing 125 changed files with 2,938 additions and 15,277 deletions.
56 changes: 56 additions & 0 deletions hack/vendors/changelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/usr/bin/env bash
set -eEuo pipefail

VERSION="main"

function sync() {
mkdir -p .tmp/backstage-changelog-plugin/${VERSION}

curl -fsSL https://github.com/RSC-Labs/backstage-changelog-plugin/archive/refs/heads/${VERSION}.tar.gz |
tar -xvzf - \
--strip-components=1 \
--directory=.tmp/backstage-changelog-plugin/${VERSION} \
backstage-changelog-plugin-${VERSION/"/"/"-"}

# bulletin board
rsync -av \
.tmp/backstage-changelog-plugin/${VERSION/"/"/"-"}/plugins/backstage-changelog-plugin-backend/* \
./workspaces/changelog/plugins/changelog-backend
rsync -av \
.tmp/backstage-changelog-plugin/${VERSION/"/"/"-"}/plugins/backstage-changelog-plugin/* \
./workspaces/changelog/plugins/changelog
rsync -av \
.tmp/backstage-changelog-plugin/${VERSION/"/"/"-"}/examples/* \
./workspaces/changelog/examples
rsync -av \
.tmp/backstage-changelog-plugin/${VERSION/"/"/"-"}/docs/* \
./workspaces/changelog/docs
rsync -av \
.tmp/backstage-changelog-plugin/${VERSION/"/"/"-"}/plugins/README.md \
./workspaces/changelog/README.md
}

function rename() {
changes=(
"s#@rsc-labs/backstage-changelog-plugin-backend#@alithya-oss/backstage-plugin-changelog-backend#g"
"s#@rsc-labs/backstage-changelog-plugin#@alithya-oss/backstage-plugin-changelog#g"
)

for item in "${changes[@]}"; do
find -type f \
-not -name "install-state.gz" \
-not -name "yarn.lock" \
-not -name "CHANGELOG.md" \
-not -path "**/.yarn*" \
-not -path "**/.changeset" \
-not -path "**/node_modules*" \
-not -path "**/dist*" \
-exec sed -i ${item} {} +
done
}

sync
cd ./workspaces/changelog/
rename
yarn install
yarn backstage-cli versions:bump --release 1.35.0
6 changes: 0 additions & 6 deletions workspaces/bulletin-board/.changeset/ninety-pugs-promise.md

This file was deleted.

10 changes: 0 additions & 10 deletions workspaces/bulletin-board/README.md

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions workspaces/bulletin-board/plugins/bulletin-board-backend/README.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6bb12f9

Please sign in to comment.