From 925e0584d873c5509e924e6d680d48e3fa1f775c Mon Sep 17 00:00:00 2001 From: Nazare Emanuel-Ioan Date: Fri, 8 May 2020 17:14:53 +0300 Subject: [PATCH 1/2] Feature: Auto-close wrong issues This will auto-close issues that were not generated by our website: https://www.creative-tim.com/new-issue --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..32fb4070 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,12 @@ +name: Autocloser +on: [issues] +jobs: + autoclose: + runs-on: ubuntu-latest + steps: + - name: Issue auto-closer + uses: roots/issue-closer-action@v1.1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-close-message: "@${issue.user.login} this issue was automatically closed because it did not follow our rules:\n\n
\n\n\n\nIMPORTANT: Please use the following link to create a new issue:\n\nhttps://www.creative-tim.com/new-issue/argon-dashboard-react\n\n**If your issue was not created using the app above, it will be closed immediately.**\n\n\n\nLove Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:\nšŸ‘‰  https://www.creative-tim.com/bundles\nšŸ‘‰  https://www.creative-tim.com\n\n\n
\n\n" + issue-pattern: (\#\#\# Version([\S\s.*]*?)\#\#\# Reproduction link([\S\s.*]*?)\#\#\# Operating System([\S\s.*]*?)\#\#\# Device([\S\s.*]*?)\#\#\# Browser & Version([\S\s.*]*?)\#\#\# Steps to reproduce([\S\s.*]*?)\#\#\# What is expected([\S\s.*]*?)\#\#\# What is actually happening([\S\s.*]*?)---([\S\s.*]*?)\#\#\# Solution([\S\s.*]*?)\#\#\# Additional comments([\S\s.*]*?)\<\!-- generated by creative-tim-issues\. DO NOT REMOVE --\>)|(\#\#\# What is your enhancement([\S\s.*]*?)\<\!-- generated by creative-tim-issues\. DO NOT REMOVE --\>) From 499d5d7ea606fb3caf100a8c7a455afb9344b925 Mon Sep 17 00:00:00 2001 From: Qiushi Pan <17402261+qqhann@users.noreply.github.com> Date: Mon, 11 May 2020 16:29:11 +0900 Subject: [PATCH 2/2] Update charts.js Type annotation cannot be used in `.js` file. --- src/variables/charts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/variables/charts.js b/src/variables/charts.js index 6adf4f34..0aad1996 100644 --- a/src/variables/charts.js +++ b/src/variables/charts.js @@ -115,7 +115,7 @@ Chart.elements.Rectangle.prototype.draw = function() { let x = corners[1][0]; let y = corners[1][1]; // eslint-disable-next-line - var radius: any = cornerRadius; + var radius = cornerRadius; // Fix radius being too large if (radius > height / 2) {