diff --git a/.github/workflows/update_version.yml b/.github/workflows/update_version.yml index 5fac3e1..5b07f9c 100644 --- a/.github/workflows/update_version.yml +++ b/.github/workflows/update_version.yml @@ -1,24 +1,28 @@ -name: debug +name: update_version on: workflow_dispatch: inputs: tag: - description: "test Tag" - required: true + description: "版本号" + type: string + change: + description: "提交内容" + type: string jobs: - linux: + jobA: name: Linux runs-on: ubuntu-latest - timeout-minutes: 30 + if: github.event.inputs.tag != '' && github.event.inputs.change != '' steps: - uses: actions/checkout@v2 - run: | ls sed -i "s/\"version\":.*$/\"version\": \"${{ github.event.inputs.tag }}\",/" package.json - git config user.name github-actions - git config user.email github-actions@github.com + echo -e "## version ${{ github.event.inputs.tag }}\n\n- ${{ github.event.inputs.change }}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md + git config user.name ccagml + git config user.email ccagml@163.com git add . - git commit -m "update version" + git commit -m ${{ github.event.inputs.change }} git push diff --git a/src/controller/TreeViewController.ts b/src/controller/TreeViewController.ts index 9ee521e..e40dea2 100644 --- a/src/controller/TreeViewController.ts +++ b/src/controller/TreeViewController.ts @@ -483,7 +483,10 @@ class TreeViewController implements Disposable { const showLockedFlag: boolean = isShowLocked(); const useEndpointTranslation: boolean = isUseEndpointTranslation(); const result: string = await executeService.getAllProblems(showLockedFlag, useEndpointTranslation); - const all_problem_info = JSON.parse(result); + let all_problem_info = JSON.parse(result); + if (!showLockedFlag) { + all_problem_info = all_problem_info.filter((p) => !p.locked); + } const problems: IProblem[] = []; const AllScoreData = treeDataService.getScoreData(); // 增加直接在线获取分数数据