diff --git a/.github/workflows/new-issue.yml b/.github/workflows/new-issue.yml index afb76ea..77b44de 100644 --- a/.github/workflows/new-issue.yml +++ b/.github/workflows/new-issue.yml @@ -1,3 +1,4 @@ +# v0.3 name: New issue on: @@ -11,21 +12,27 @@ jobs: permissions: issues: write steps: + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Get package name + id: get_package_name + uses: ASzc/change-string-case-action@v5 + with: + string: ${{ github.event.repository.name }} - name: Get NPM version id: get_npm_version - uses: satak/webrequest-action@v1.2.3 - with: - url: https://registry.npmjs.org/iobroker.birthdays - method: GET + run: echo "LATEST_VERSION=$(npm view ${{ steps.get_package_name.outputs.lowercase }}@latest version)" >> "$GITHUB_OUTPUT" - name: Create comment uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{ github.event.issue.number }} body: | Thanks for reporting a new issue @${{ github.actor }}! - 1. Please make sure your topic is not covered in the [documentation](https://github.com/klein0r/ioBroker.birthdays/blob/master/docs/en/README.md) - 2. Ensure that you use the latest **beta version** (not the current stable version): **${{ fromJson(steps.get_npm_version.outputs.output).data['dist-tags'].latest }}** + 1. Please make sure your topic is not covered in the [documentation](https://github.com/${{ github.event.repository.full_name }}/blob/v${{ steps.get_npm_version.outputs.LATEST_VERSION }}/docs/en/README.md) + 2. Ensure that you use the latest **beta version** (not the current stable version): **${{ steps.get_npm_version.outputs.LATEST_VERSION }}** 3. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue - 4. [Search for the issue topic](https://github.com/klein0r/ioBroker.birthdays/issues?q=is%3Aissue) in other/closed issues to avoid duplicates! + 4. [Search for the issue topic](https://github.com/${{ github.event.repository.full_name }}/issues?q=is%3Aissue) in other/closed issues to avoid duplicates! ---- *Otherwise this issue will be closed.* diff --git a/package-lock.json b/package-lock.json index 2eb921b..45b9b29 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@iobroker/adapter-core": "^3.0.4", - "axios": "^1.5.1", + "axios": "^1.6.0", "ical.js": "^1.5.0", "moment": "^2.29.4" }, @@ -23,7 +23,7 @@ "@types/chai": "^4.3.9", "@types/chai-as-promised": "^7.1.7", "@types/mocha": "^10.0.3", - "@types/node": "^20.8.9", + "@types/node": "^20.8.10", "@types/proxyquire": "^1.3.30", "@types/sinon": "^10.0.20", "@types/sinon-chai": "^3.2.11", @@ -940,9 +940,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.8.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.9.tgz", - "integrity": "sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg==", + "version": "20.8.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.10.tgz", + "integrity": "sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -1144,9 +1144,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "node_modules/axios": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.1.tgz", - "integrity": "sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", + "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", "dependencies": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -5688,9 +5688,9 @@ "dev": true }, "@types/node": { - "version": "20.8.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.9.tgz", - "integrity": "sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg==", + "version": "20.8.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.10.tgz", + "integrity": "sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==", "dev": true, "requires": { "undici-types": "~5.26.4" @@ -5850,9 +5850,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "axios": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.1.tgz", - "integrity": "sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", + "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", "requires": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", diff --git a/package.json b/package.json index 1b1b253..9afa9f9 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ }, "dependencies": { "@iobroker/adapter-core": "^3.0.4", - "axios": "^1.5.1", + "axios": "^1.6.0", "ical.js": "^1.5.0", "moment": "^2.29.4" }, @@ -38,7 +38,7 @@ "@types/chai": "^4.3.9", "@types/chai-as-promised": "^7.1.7", "@types/mocha": "^10.0.3", - "@types/node": "^20.8.9", + "@types/node": "^20.8.10", "@types/proxyquire": "^1.3.30", "@types/sinon": "^10.0.20", "@types/sinon-chai": "^3.2.11",