From d2fd92100a8d55d487f35c30abfcda53d6dfc753 Mon Sep 17 00:00:00 2001 From: zyrafal Date: Sun, 8 Sep 2024 22:01:02 +0200 Subject: [PATCH 1/2] Add sync-template.yml workflow --- .github/workflows/sync-template.yml | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/sync-template.yml diff --git a/.github/workflows/sync-template.yml b/.github/workflows/sync-template.yml new file mode 100644 index 0000000..dc92ad5 --- /dev/null +++ b/.github/workflows/sync-template.yml @@ -0,0 +1,49 @@ +name: Sync branch to template + +on: + workflow_dispatch: + schedule: + - cron: '14 0 1 * *' + +jobs: + sync: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Get GitHub App token + uses: tibdex/github-app-token@v1.7.0 + id: get_installation_token + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + + - name: Sync branch to template + env: + GH_TOKEN: ${{ steps.get_installation_token.outputs.token }} + IGNORE_FILES: "README.md another-file.txt" + run: | + branch_name=$(git rev-parse --abbrev-ref HEAD) + original_remote=$(git remote get-url origin) + pr_branch="sync-template/${branch_name}" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + git checkout -b "$pr_branch" + git clone https://github.com/ubiquity/ts-template + for file in $IGNORE_FILES; do + rm -rf "ts-template/$file" + done + cp -rf ts-template/* . + rm -rf ts-template/ + git add . + git commit -m "chore: sync template" + git push "$original_remote" "$pr_branch" + gh pr create --title "Sync branch to template" --body "This pull request merges changes from the template repository." --head "$pr_branch" --base "$branch_name" + + From b08ddfd464960d0bbbb8dd8743417005c5a5456d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A2=E3=83=AC=E3=82=AF=E3=82=B5=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=2Eeth?= Date: Thu, 10 Oct 2024 23:05:30 +0900 Subject: [PATCH 2/2] chore: rebrand to ubiquity-os-logger --- CHANGELOG.md | 35 +++++++++++++++++++++-------------- README.md | 4 ++-- package.json | 4 ++-- 3 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fdb3a5..87a0c68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,47 +1,54 @@ # Changelog -## [1.3.0](https://github.com/ubiquity/ubiquibot-logger/compare/v1.2.0...v1.3.0) (2024-07-10) +## [1.3.1](https://github.com/ubiquity-os/ubiquity-os-logger/compare/v1.3.0...v1.3.1) (2024-08-21) + + +### Bug Fixes + +* always return a LogReturn instead of null ([b46b77d](https://github.com/ubiquity-os/ubiquity-os-logger/commit/b46b77d2198746d4484b45b8eff45de2865567af)) + +## [1.3.0](https://github.com/ubiquity-os/ubiquity-os-logger/compare/v1.2.0...v1.3.0) (2024-07-10) ### Miscellaneous Chores -* release 1.3.0 ([ac68790](https://github.com/ubiquity/ubiquibot-logger/commit/ac68790560805d850af0de5bba2deeb559651898)) +* release 1.3.0 ([ac68790](https://github.com/ubiquity-os/ubiquity-os-logger/commit/ac68790560805d850af0de5bba2deeb559651898)) -## [1.2.0](https://github.com/ubiquity/ubiquibot-logger/compare/v1.1.2...v1.2.0) (2024-07-03) +## [1.2.0](https://github.com/ubiquity-os/ubiquity-os-logger/compare/v1.1.2...v1.2.0) (2024-07-03) ### Features -* the package is now compiled for both ESM and CommonJs ([42f1cab](https://github.com/ubiquity/ubiquibot-logger/commit/42f1cab960afd42dcb3c19097e800e02a8881aa0)) +* the package is now compiled for both ESM and CommonJs ([42f1cab](https://github.com/ubiquity-os/ubiquity-os-logger/commit/42f1cab960afd42dcb3c19097e800e02a8881aa0)) -## [1.1.2](https://github.com/ubiquity/ubiquibot-logger/compare/v1.1.1...v1.1.2) (2024-07-02) +## [1.1.2](https://github.com/ubiquity-os/ubiquity-os-logger/compare/v1.1.1...v1.1.2) (2024-07-02) ### Bug Fixes -* yarn pack is now called on release-please.yml ([4df89c8](https://github.com/ubiquity/ubiquibot-logger/commit/4df89c849c74efc4d7bcb88192fb0afcd477acf4)) +* yarn pack is now called on release-please.yml ([4df89c8](https://github.com/ubiquity-os/ubiquity-os-logger/commit/4df89c849c74efc4d7bcb88192fb0afcd477acf4)) -## [1.1.1](https://github.com/ubiquity/ubiquibot-logger/compare/v1.1.0...v1.1.1) (2024-07-02) +## [1.1.1](https://github.com/ubiquity-os/ubiquity-os-logger/compare/v1.1.0...v1.1.1) (2024-07-02) ### Bug Fixes -* renamed package.json to be under an org ([f46e46b](https://github.com/ubiquity/ubiquibot-logger/commit/f46e46b78a29f5ed9c4b5c7ea2085d68e182bc09)) +* renamed package.json to be under an org ([f46e46b](https://github.com/ubiquity-os/ubiquity-os-logger/commit/f46e46b78a29f5ed9c4b5c7ea2085d68e182bc09)) -## [1.1.0](https://github.com/ubiquity/ubiquibot-logger/compare/v1.0.0...v1.1.0) (2024-07-02) +## [1.1.0](https://github.com/ubiquity-os/ubiquity-os-logger/compare/v1.0.0...v1.1.0) (2024-07-02) ### Features -* export pretty-logs ([bb9e691](https://github.com/ubiquity/ubiquibot-logger/commit/bb9e691f85b7b52cd339d82e4f98fe409a801a7b)) -* logging NPM module initial port from ubiquibot refactor/general ([1ffe3d0](https://github.com/ubiquity/ubiquibot-logger/commit/1ffe3d00060e77b9eee3a0258d8baba2e5991e77)) +* export pretty-logs ([bb9e691](https://github.com/ubiquity-os/ubiquity-os-logger/commit/bb9e691f85b7b52cd339d82e4f98fe409a801a7b)) +* logging NPM module initial port from ubiquity-os refactor/general ([1ffe3d0](https://github.com/ubiquity-os/ubiquity-os-logger/commit/1ffe3d00060e77b9eee3a0258d8baba2e5991e77)) ### Bug Fixes -* updated target branch for release-please.yml ([dcbdcea](https://github.com/ubiquity/ubiquibot-logger/commit/dcbdcea5a4e71de7072023c2caef432c7b984115)) +* updated target branch for release-please.yml ([dcbdcea](https://github.com/ubiquity-os/ubiquity-os-logger/commit/dcbdcea5a4e71de7072023c2caef432c7b984115)) ## 1.0.0 (2024-07-02) ### Features -* export pretty-logs ([bb9e691](https://github.com/ubiquity/ubiquibot-logger/commit/bb9e691f85b7b52cd339d82e4f98fe409a801a7b)) -* logging NPM module initial port from ubiquibot refactor/general ([1ffe3d0](https://github.com/ubiquity/ubiquibot-logger/commit/1ffe3d00060e77b9eee3a0258d8baba2e5991e77)) +* export pretty-logs ([bb9e691](https://github.com/ubiquity-os/ubiquity-os-logger/commit/bb9e691f85b7b52cd339d82e4f98fe409a801a7b)) +* logging NPM module initial port from ubiquity-os refactor/general ([1ffe3d0](https://github.com/ubiquity-os/ubiquity-os-logger/commit/1ffe3d00060e77b9eee3a0258d8baba2e5991e77)) diff --git a/README.md b/README.md index 118b25d..65e5963 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# `@ubiquity-dao/ubiquibot-logger` +# `@ubiquity-os/ubiquity-os-logger` -Ubiquity logger NPM module. +UbiquityOS logger NPM module. diff --git a/package.json b/package.json index ad237cf..b5372ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@ubiquity-dao/ubiquibot-logger", - "version": "1.3.0", + "name": "@ubiquity-os/ubiquity-os-logger", + "version": "1.3.1", "description": "Ubiquity logging module with Supabase support.", "author": "Ubiquity DAO", "license": "MIT",