[Sync to Gitee] - Fix/local embedding 250417 (#116) * Add project context to LocalEmbeddingService and optimize indexing 1. Created ProjectUtil class to determine current context project 2. Modified LocalEmbeddingService to only index the current project instead of all open projects 3. Updated service start method to accept project parameter * Fix code formatting in ProjectUtil.java Add proper spacing around parentheses in type casting and ternary operator expressions for better readability and code ... #66
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync to Gitee | |
| run-name: "[${{ github.workflow }}] - ${{ github.event.head_commit.message }}" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow}} | |
| cancel-in-progress: true | |
| env: | |
| GITEE_REPOSITORY: zaonline/devpilot-intellij | |
| jobs: | |
| sync_to_gitee: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'openpilot-hub/devpilot-intellij' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - run: | | |
| remote_repo="https://${{ secrets.GITEE_USERNAME }}:${{ secrets.GITEE_PAT }}@gitee.com/${{ env.GITEE_REPOSITORY }}.git" | |
| git remote add gitee "${remote_repo}" | |
| branch=$(git branch --show-current) | |
| git push gitee $branch -f |