[Bug]: 请问一下各位大佬,我在添加数据节点后需要render才能绘制出正常布局,但是这样会改动原有数据的布局。有什么办法可以在原有数据的基础上新增数据但不重新渲染和布局吗 #36
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: Issue Automated Processing | |
| on: | |
| issues: | |
| types: [opened, reopened, edited] | |
| workflow_dispatch: | |
| inputs: | |
| issue_number: | |
| description: 'Issue number to process' | |
| required: true | |
| type: number | |
| permissions: | |
| issues: write | |
| pull-requests: read | |
| contents: read | |
| jobs: | |
| issue-response: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: | | |
| yarn install | |
| yarn add openai @antv/mcp-server-antv -W | |
| - name: Process Issue | |
| uses: actions/github-script@v7 | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| let issue = context.payload.issue; | |
| if (context.eventName === 'workflow_dispatch') { | |
| const issueNumber = context.payload.inputs.issue_number; | |
| const { data: issueData } = await github.rest.issues.get({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: issueNumber | |
| }); | |
| issue = issueData; | |
| } | |
| const script = require('./.github/workflows/scripts/issue-automated.js'); | |
| await script({ | |
| github, | |
| core, | |
| context, | |
| issue | |
| }); |