From 3310af0c27f0baa17beb893c8b4f114c9f64c9be Mon Sep 17 00:00:00 2001 From: svenadlung Date: Tue, 29 Oct 2024 12:44:02 +0100 Subject: [PATCH 1/7] docs: remove relics --- docs/api/utilities.md | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 docs/api/utilities.md diff --git a/docs/api/utilities.md b/docs/api/utilities.md deleted file mode 100644 index d4d982882..000000000 --- a/docs/api/utilities.md +++ /dev/null @@ -1,11 +0,0 @@ -# Editor API Utility Overview - -Welcome to the Editor API Utility section. Here, you'll discover essential tools to enhance your Tiptap experience: - -- **Render JSON as HTML**: Learn to convert JSON content to HTML, even without an editor instance, simplifying content management. - -- **Tiptap for PHP**: Explore PHP integration for Tiptap, enabling seamless content transformation and modification. - -- **Suggestions**: Enhance your editor with suggestions like mentions and emojis, tailored to your needs. - -Explore subpages for in-depth guidance and examples. From d9ad0fbe00a9c2d0154198883000d9f0c7e434d7 Mon Sep 17 00:00:00 2001 From: bdbch <6538827+bdbch@users.noreply.github.com> Date: Sun, 17 Nov 2024 16:46:00 +0100 Subject: [PATCH 2/7] added pre-checkout hook that automatically should enter pre modes (#5837) * added pre-checkout hook that automatically should enter pre modes for changesets * aswitch to github CI action for changeset check --- .github/workflows/changesets-mode.yml | 0 scripts/manage-pre-mode.sh | 69 +++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 .github/workflows/changesets-mode.yml create mode 100644 scripts/manage-pre-mode.sh diff --git a/.github/workflows/changesets-mode.yml b/.github/workflows/changesets-mode.yml new file mode 100644 index 000000000..e69de29bb diff --git a/scripts/manage-pre-mode.sh b/scripts/manage-pre-mode.sh new file mode 100644 index 000000000..dfed7e3f6 --- /dev/null +++ b/scripts/manage-pre-mode.sh @@ -0,0 +1,69 @@ +#!/bin/bash + +# Detect the branch from argument +BRANCH=$(echo "$1") + +PRE_PATH=".changeset/pre.json" + +pre_json_exists=false +is_on_tag=false +is_on_pre_mode=false + +grep -q '"mode": "pre"' "$PRE_PATH" && is_on_pre_mode=true || is_on_pre_mode=false + +if [ -f "$PRE_PATH" ]; then + pre_json_exists=true +fi + +enter_pre_mode() { + local branch="$1" + local tag="$2" + + grep -q '"tag": "'$tag'"' "$PRE_PATH" && is_on_tag=true || is_on_tag=false + + if $is_on_tag && $pre_json_exists && $is_on_pre_mode; then + echo "You are already in pre mode for '$tag' on '$branch'" + exit 1 + fi + + npx changeset pre exit + npx changeset pre enter "$tag" + + # Set needs_commit to true on github env + echo "needs_commit=true" >> $GITHUB_ENV + + echo "Entered pre mode for '$branch' on '$tag'" +} + +exit_pre_mode() { + local needs_exit=false + + grep -q '"mode": "exit"' "$PRE_PATH" && needs_exit=false || needs_exit=true + + if ! $needs_exit || ! $pre_json_exists; then + echo "You are not in pre mode" + exit 1 + fi + + npx changeset pre exit + + # Set needs_commit to true on github env + echo "needs_commit=true" >> $GITHUB_ENV + + echo "Exited pre mode" +} + +case "$BRANCH" in + develop) + enter_pre_mode "develop" "pre" + ;; + next) + enter_pre_mode "next" "next" + ;; + main) + exit_pre_mode + ;; + *) + exit 1 + ;; +esac \ No newline at end of file From d0d20af5fc34b7ea41561f606bb6fa8c292f28df Mon Sep 17 00:00:00 2001 From: Dominik Biedebach Date: Sun, 17 Nov 2024 16:48:16 +0100 Subject: [PATCH 3/7] add changeset workflow --- .github/workflows/changesets-mode.yml | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/changesets-mode.yml b/.github/workflows/changesets-mode.yml index e69de29bb..76cac3722 100644 --- a/.github/workflows/changesets-mode.yml +++ b/.github/workflows/changesets-mode.yml @@ -0,0 +1,38 @@ +name: Manage Changesets Mode + +on: + push: + branches: + - main + - develop + - next + +jobs: + manage-pre-mode: + runs-on: ubuntu-latest + steps: + # Checkout the repository + - uses: actions/checkout@v3 + + # Setup Node.js + - uses: actions/setup-node@v3 + + # Install dependencies + - run: npm install + + # Run the script + - name: Run pre mode script + id: pre-mode + run: | + BRANCH=$(echo "${{ github.ref }}" | sed 's|refs/heads/||') + ./scripts/manage-pre-mode.sh "$BRANCH" + + # Commit if required + - name: Commit changes + if: env.needs_commit == 'true' + run: | + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + git add .changeset/pre.json + git commit -m "Update Changesets pre-release mode" + git push \ No newline at end of file From cdc7e96db7b09ee191a63803b7944ba84884b7fe Mon Sep 17 00:00:00 2001 From: Dominik Biedebach Date: Sun, 17 Nov 2024 16:49:37 +0100 Subject: [PATCH 4/7] make pre-mode script executable --- scripts/manage-pre-mode.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 scripts/manage-pre-mode.sh diff --git a/scripts/manage-pre-mode.sh b/scripts/manage-pre-mode.sh old mode 100644 new mode 100755 From f5ad5c80a83ceaa85f4db12fe8e474080eaf8a59 Mon Sep 17 00:00:00 2001 From: Dominik Biedebach Date: Sun, 17 Nov 2024 16:51:04 +0100 Subject: [PATCH 5/7] exit pre script with exit 0 --- scripts/manage-pre-mode.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/manage-pre-mode.sh b/scripts/manage-pre-mode.sh index dfed7e3f6..f19e531fa 100755 --- a/scripts/manage-pre-mode.sh +++ b/scripts/manage-pre-mode.sh @@ -23,7 +23,7 @@ enter_pre_mode() { if $is_on_tag && $pre_json_exists && $is_on_pre_mode; then echo "You are already in pre mode for '$tag' on '$branch'" - exit 1 + exit 0 fi npx changeset pre exit @@ -42,7 +42,7 @@ exit_pre_mode() { if ! $needs_exit || ! $pre_json_exists; then echo "You are not in pre mode" - exit 1 + exit 0 fi npx changeset pre exit @@ -64,6 +64,6 @@ case "$BRANCH" in exit_pre_mode ;; *) - exit 1 + exit 0 ;; esac \ No newline at end of file From ab4d8ca7f783d4c1f4737033d52f57de199b7e23 Mon Sep 17 00:00:00 2001 From: Dominik Biedebach Date: Sun, 17 Nov 2024 17:06:12 +0100 Subject: [PATCH 6/7] remove premode scripts --- .github/workflows/changesets-mode.yml | 38 --------------- scripts/manage-pre-mode.sh | 69 --------------------------- 2 files changed, 107 deletions(-) delete mode 100644 .github/workflows/changesets-mode.yml delete mode 100755 scripts/manage-pre-mode.sh diff --git a/.github/workflows/changesets-mode.yml b/.github/workflows/changesets-mode.yml deleted file mode 100644 index 76cac3722..000000000 --- a/.github/workflows/changesets-mode.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Manage Changesets Mode - -on: - push: - branches: - - main - - develop - - next - -jobs: - manage-pre-mode: - runs-on: ubuntu-latest - steps: - # Checkout the repository - - uses: actions/checkout@v3 - - # Setup Node.js - - uses: actions/setup-node@v3 - - # Install dependencies - - run: npm install - - # Run the script - - name: Run pre mode script - id: pre-mode - run: | - BRANCH=$(echo "${{ github.ref }}" | sed 's|refs/heads/||') - ./scripts/manage-pre-mode.sh "$BRANCH" - - # Commit if required - - name: Commit changes - if: env.needs_commit == 'true' - run: | - git config user.name "GitHub Actions" - git config user.email "actions@github.com" - git add .changeset/pre.json - git commit -m "Update Changesets pre-release mode" - git push \ No newline at end of file diff --git a/scripts/manage-pre-mode.sh b/scripts/manage-pre-mode.sh deleted file mode 100755 index f19e531fa..000000000 --- a/scripts/manage-pre-mode.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash - -# Detect the branch from argument -BRANCH=$(echo "$1") - -PRE_PATH=".changeset/pre.json" - -pre_json_exists=false -is_on_tag=false -is_on_pre_mode=false - -grep -q '"mode": "pre"' "$PRE_PATH" && is_on_pre_mode=true || is_on_pre_mode=false - -if [ -f "$PRE_PATH" ]; then - pre_json_exists=true -fi - -enter_pre_mode() { - local branch="$1" - local tag="$2" - - grep -q '"tag": "'$tag'"' "$PRE_PATH" && is_on_tag=true || is_on_tag=false - - if $is_on_tag && $pre_json_exists && $is_on_pre_mode; then - echo "You are already in pre mode for '$tag' on '$branch'" - exit 0 - fi - - npx changeset pre exit - npx changeset pre enter "$tag" - - # Set needs_commit to true on github env - echo "needs_commit=true" >> $GITHUB_ENV - - echo "Entered pre mode for '$branch' on '$tag'" -} - -exit_pre_mode() { - local needs_exit=false - - grep -q '"mode": "exit"' "$PRE_PATH" && needs_exit=false || needs_exit=true - - if ! $needs_exit || ! $pre_json_exists; then - echo "You are not in pre mode" - exit 0 - fi - - npx changeset pre exit - - # Set needs_commit to true on github env - echo "needs_commit=true" >> $GITHUB_ENV - - echo "Exited pre mode" -} - -case "$BRANCH" in - develop) - enter_pre_mode "develop" "pre" - ;; - next) - enter_pre_mode "next" "next" - ;; - main) - exit_pre_mode - ;; - *) - exit 0 - ;; -esac \ No newline at end of file From 394fb4b4a541d6c357283fb78b49d065c21247b1 Mon Sep 17 00:00:00 2001 From: Dominik Biedebach Date: Sun, 17 Nov 2024 17:36:00 +0100 Subject: [PATCH 7/7] removed global codeowners --- .github/CODEOWNERS | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8f24e4a8e..2e776b98f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,8 +1,2 @@ -# Global -* @bdbch @svenadlung - -# demos -/demos/ @bdbch - # LICENSE LICENSE.md @philipisik