From 908116ddc47972a6f20e54a134bd16c3dc6069d5 Mon Sep 17 00:00:00 2001 From: Vben Date: Mon, 22 Mar 2021 23:45:31 +0800 Subject: [PATCH] chore: update workflow --- .github/workflows/issue-close-require.yml | 17 +++++++ .github/workflows/issue-labeled.yml | 29 +++++++++++ package.json | 8 +-- .../SimpleMenu/src/components/SubMenuItem.vue | 4 +- .../default/header/components/Breadcrumb.vue | 2 - yarn.lock | 51 ++++++++++--------- 6 files changed, 80 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/issue-close-require.yml create mode 100644 .github/workflows/issue-labeled.yml diff --git a/.github/workflows/issue-close-require.yml b/.github/workflows/issue-close-require.yml new file mode 100644 index 00000000..a5fb0a40 --- /dev/null +++ b/.github/workflows/issue-close-require.yml @@ -0,0 +1,17 @@ +name: Issue Close Require + +on: + schedule: + - cron: '0 0 * * *' + +jobs: + close-issues: + runs-on: ubuntu-latest + steps: + - name: need reproduction + uses: actions-cool/issues-helper@v2.1.1 + with: + actions: 'close-issues' + token: ${{ secrets.OPER_TOKEN }} + labels: 'need reproduction' + inactive-day: 3 diff --git a/.github/workflows/issue-labeled.yml b/.github/workflows/issue-labeled.yml new file mode 100644 index 00000000..43a7a624 --- /dev/null +++ b/.github/workflows/issue-labeled.yml @@ -0,0 +1,29 @@ +name: Issue Labeled + +on: + issues: + types: [labeled] + +jobs: + reply-labeled: + runs-on: ubuntu-latest + steps: + - name: remove pending + if: github.event.label.name == 'enhancement' || github.event.label.name == 'bug' + uses: actions-cool/issues-helper@v2.1.1 + with: + actions: 'remove-labels' + token: ${{ secrets.OPER_TOKEN }} + issue-number: ${{ github.event.issue.number }} + labels: 'bug: pending triage' + + - name: need reproduction + if: github.event.label.name == 'need reproduction' + uses: actions-cool/issues-helper@v2.1.1 + with: + actions: 'create-comment, remove-labels' + token: ${{ secrets.OPER_TOKEN }} + issue-number: ${{ github.event.issue.number }} + body: | + Hello @${{ github.event.issue.user.login }}. Please provide the complete reproduction steps and code. Issues labeled by `need reproduction` will be closed if no activities in 3 days. + labels: 'bug: pending triage' diff --git a/package.json b/package.json index 2041b5ae..296fb28a 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "devDependencies": { "@commitlint/cli": "^12.0.1", "@commitlint/config-conventional": "^12.0.1", - "@iconify/json": "^1.1.317", + "@iconify/json": "^1.1.320", "@ls-lint/ls-lint": "^1.9.2", "@purge-icons/generated": "^0.7.0", "@types/crypto-js": "^4.0.1", @@ -88,11 +88,11 @@ "eslint": "^7.22.0", "eslint-config-prettier": "^8.1.0", "eslint-plugin-prettier": "^3.3.1", - "eslint-plugin-vue": "^7.7.0", + "eslint-plugin-vue": "^7.8.0", "esno": "^0.5.0", "fs-extra": "^9.1.0", "http-server": "^0.12.3", - "husky": "^5.1.3", + "husky": "^5.2.0", "inquirer": "^8.0.0", "is-ci": "^3.0.0", "less": "^4.1.1", @@ -119,7 +119,7 @@ "vite-plugin-style-import": "^0.8.1", "vite-plugin-svg-icons": "^0.4.0", "vite-plugin-theme": "^0.5.0", - "vite-plugin-windicss": "0.9.4", + "vite-plugin-windicss": "0.9.6", "vue-eslint-parser": "^7.6.0", "yargs": "^16.2.0" }, diff --git a/src/components/SimpleMenu/src/components/SubMenuItem.vue b/src/components/SimpleMenu/src/components/SubMenuItem.vue index 98067660..c948fc56 100644 --- a/src/components/SimpleMenu/src/components/SubMenuItem.vue +++ b/src/components/SimpleMenu/src/components/SubMenuItem.vue @@ -43,8 +43,8 @@ :class="`${prefixCls}-submenu-title-icon`" /> -