π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π fix: bump lobehub/ui and fix workflow (#12313)
Innei5ec89941f351
diff --git a/.github/workflows/auto-tag-release.yml b/.github/workflows/auto-tag-release.ymlindex d08f44859c9..0338049993e 100644--- a/.github/workflows/auto-tag-release.yml+++ b/.github/workflows/auto-tag-release.yml@@ -41,19 +41,29 @@ jobs:echo "βοΈ Not a release PR"fi- - name: Detect hotfix PR (branch prefix)+ - name: Detect hotfix PR (branch first, title fallback)id: hotfixif: steps.release.outputs.should_tag != 'true'run: |HEAD_REF="${{ github.event.pull_request.head.ref }}"+ PR_TITLE="${{ github.event.pull_request.title }}"echo "Head ref: $HEAD_REF"+ echo "PR Title: $PR_TITLE"+ # Priority 1: hotfix/* branch always counts as hotfix, ignore PR title gate.if [[ "$HEAD_REF" == hotfix/* ]]; thenecho "should_tag=true" >> $GITHUB_OUTPUT- echo "β Detected hotfix PR"+ echo "β Detected hotfix PR from hotfix/* branch (title gate bypassed)"+ exit 0+ fi++ # Priority 2: fallback to PR title prefix gate (legacy behavior).+ if echo "$PR_TITLE" | grep -qiE '^(π[[:space:]]*)?style(\(.+\))?:|^(β¨[[:space:]]*)?feat(\(.+\))?:|^(π[[:space:]]*)?fix(\(.+\))?:|^(β»οΈ[[:space:]]*)?refactor(\(.+\))?:|^((π|π©Ή)[[:space:]]*)?hotfix(\(.+\))?:'; then+ echo "should_tag=true" >> $GITHUB_OUTPUT+ echo "β Detected hotfix PR from title prefix gate"elseecho "should_tag=false" >> $GITHUB_OUTPUT- echo "βοΈ Not a hotfix PR"+ echo "βοΈ Not a hotfix PR (neither hotfix/* branch nor style/feat/fix/refactor/hotfix title prefix)"fi- name: Prepare main branchdiff --git a/.github/workflows/sync-main-to-canary.yaml b/.github/workflows/sync-main-to-canary.yamlindex a2e9a97a09b..904bed58218 100644--- a/.github/workflows/sync-main-to-canary.yaml+++ b/.github/workflows/sync-main-to-canary.yaml@@ -23,24 +23,84 @@ jobs:git config --global user.name 'lobehubbot'git config --global user.email '[email protected]'- - name: Prepare sync branch- id: branch- run: |- echo "SYNC_BRANCH_MAIN_CANARY=sync/main-to-canary-$(date +'%Y%m%d')" >> $GITHUB_ENV-- name: Sync main to canaryif: github.ref == 'refs/heads/main'run: |- # Sync main to canary- git checkout main- SYNC_BRANCH_CANARY=${{ env.SYNC_BRANCH_MAIN_CANARY }}- git checkout -B $SYNC_BRANCH_CANARY- DIFF=$(git diff origin/canary...)- if [ -z "$DIFF" ]; then- echo "No changes to sync"- exit 0+ # Find existing open sync PR by head branch prefix+ EXISTING_PR=$(gh pr list --base canary --state open --json number,headRefName \+ --jq '[.[] | select(.headRefName | startswith("sync/main-to-canary-"))][0] // empty')+ EXISTING_PR_NUMBER=$(echo "$EXISTING_PR" | jq -r '.number // empty' 2>/dev/null)+ EXISTING_BRANCH=$(echo "$EXISTING_PR" | jq -r '.headRefName // empty' 2>/dev/null)++ git checkout canary+ git pull origin canary++ # Try merge, detect conflicts+ if git merge origin/main --no-edit; then+ # No conflicts, check if there are actual changes+ if [ "$(git rev-parse HEAD)" = "$(git rev-parse origin/canary)" ]; then+ echo "No changes to sync"+ exit 0+ fi+ echo "Merge succeeded, pushing directly"+ if git push origin canary; then+ # Close stale sync PR if direct push succeeded+ if [ -n "$EXISTING_PR_NUMBER" ]; then+ gh pr close "$EXISTING_PR_NUMBER" --comment "Superseded by direct push." --delete-branch || true+ fi+ exit 0+ fi++ # Direct push failed (e.g. non-fast-forward race), fall back to PR+ echo "Direct push failed, falling back to PR"+ SYNC_BRANCH="sync/main-to-canary-$(date +'%Y%m%d')-${GITHUB_RUN_ID}"+ git checkout -B "$SYNC_BRANCH"+ git push origin "$SYNC_BRANCH" -f+ gh pr create \+ --base canary \+ --head "$SYNC_BRANCH" \+ --title "Sync main branch to canary branch" \+ --body "Automatic sync from main to canary. Direct push failed, please merge this PR." || true+ else+ echo "Merge conflicts detected, creating PR"+ git merge --abort++ if [ -n "$EXISTING_PR_NUMBER" ]; then+ # Existing conflict PR open β notify via comment, don't overwrite manual work+ gh pr comment "$EXISTING_PR_NUMBER" --body "New commits on \`main\`. Please pull latest \`origin/main\` into this branch to include them."+ echo "Commented on existing PR #$EXISTING_PR_NUMBER"+ else+ SYNC_BRANCH="sync/main-to-canary-$(date +'%Y%m%d')-${GITHUB_RUN_ID}"+ git checkout -B "$SYNC_BRANCH" origin/canary+ # Attempt merge main, commit conflict markers if unresolved+ if ! git merge origin/main --no-edit; then+ git add -A+ git commit --no-edit -m "chore: merge main into canary (has conflicts to resolve)"+ fi+ git push origin "$SYNC_BRANCH" -f++ printf '%s\n' \+ 'Automatic sync from main to canary. Merge conflicts detected.' \+ '' \+ '**Resolution steps:**' \+ '```bash' \+ 'git fetch origin' \+ "git checkout $SYNC_BRANCH" \+ 'git merge origin/main' \+ '# Resolve conflicts' \+ 'git add -A && git commit' \+ 'git push' \+ '```' \+ '' \+ '> Do NOT merge canary into a main-based branch β always merge main INTO the canary-based branch to keep a clean commit graph.' \+ > /tmp/pr-body.md++ gh pr create \+ --base canary \+ --head "$SYNC_BRANCH" \+ --title "Sync main branch to canary branch" \+ --body-file /tmp/pr-body.md+ fifi- git push origin $SYNC_BRANCH_CANARY -f- gh pr create --base canary --head $SYNC_BRANCH_CANARY --title "Sync main branch to canary branch" --body "Automatic sync" || exit 0env:GH_TOKEN: ${{ secrets.GH_TOKEN }}diff --git a/package.json b/package.jsonindex 4505530fc9e..85957a775ab 100644--- a/package.json+++ b/package.json@@ -221,7 +221,7 @@"@lobehub/icons": "^4.1.0","@lobehub/market-sdk": "0.29.2","@lobehub/tts": "^4.0.2",- "@lobehub/ui": "^4.36.2",+ "@lobehub/ui": "^4.36.3","@modelcontextprotocol/sdk": "^1.25.3","@napi-rs/canvas": "^0.1.88","@neondatabase/serverless": "^1.0.2",