[Bug]: 当使用自定义脑图时,给当前节点加一个可编辑功能,使用创建html的方式,html内的输入框无法输入, #69
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 | |
| }); |