From dad9455e0c91ee45647baafc15cb4c90b6ce6b19 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 26 Mar 2024 15:14:07 +0100 Subject: [PATCH 01/20] chore: update @asyncapi/generator to 1.17.14 version (#271) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index d1b201e4..b9336f2b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.13", + "@asyncapi/generator": "^1.17.14", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", @@ -60,9 +60,9 @@ } }, "node_modules/@asyncapi/generator": { - "version": "1.17.13", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.13.tgz", - "integrity": "sha512-9IAhVN1rys4+RuZyrPlOYSvW+bcAEoOY/+UT7gRtm1BEPBB8551rK5RHM0JbcrroW8uRy+XEJ3WykeIWgckIWw==", + "version": "1.17.14", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.14.tgz", + "integrity": "sha512-RN5o/ZZ5TZZVXf7KOastv0Z3dVEPf27+cZ3rSiNbkxc3AETrh2kCs/VyszIwV8gZiGGi09nd05diq0Cn2NePXg==", "dev": true, "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.13", @@ -14338,9 +14338,9 @@ } }, "@asyncapi/generator": { - "version": "1.17.13", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.13.tgz", - "integrity": "sha512-9IAhVN1rys4+RuZyrPlOYSvW+bcAEoOY/+UT7gRtm1BEPBB8551rK5RHM0JbcrroW8uRy+XEJ3WykeIWgckIWw==", + "version": "1.17.14", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.14.tgz", + "integrity": "sha512-RN5o/ZZ5TZZVXf7KOastv0Z3dVEPf27+cZ3rSiNbkxc3AETrh2kCs/VyszIwV8gZiGGi09nd05diq0Cn2NePXg==", "dev": true, "requires": { "@asyncapi/generator-react-sdk": "^1.0.13", diff --git a/package.json b/package.json index f936b790..5c815ef8 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.13", + "@asyncapi/generator": "^1.17.14", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", From f7942c15458a5c31840d5dbc333806159da31129 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Sun, 31 Mar 2024 19:45:50 +0200 Subject: [PATCH 02/20] fix: update @asyncapi/generator-react-sdk to 1.0.15 version (#272) --- package-lock.json | 46 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index b9336f2b..20b816f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@asyncapi/generator-filters": "^2.1.0", "@asyncapi/generator-hooks": "^0.1.0", - "@asyncapi/generator-react-sdk": "^1.0.14", + "@asyncapi/generator-react-sdk": "^1.0.15", "eslint-plugin-react": "^7.34.1", "filenamify": "^4.1.0", "js-beautify": "^1.15.1", @@ -118,11 +118,11 @@ } }, "node_modules/@asyncapi/generator-react-sdk": { - "version": "1.0.14", - "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.14.tgz", - "integrity": "sha512-Yvn9L9CMYP7pv+catUYM+EbUY3iD3q1AufP1B/q2naUWjs19XwOLOka8ZJ/9graZS9mCriHW1PXGxnjd5BaHig==", + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.15.tgz", + "integrity": "sha512-2ewO8pWSw39NkL3fvG3YMgou6VXMaIuxYE7Uw5MEE/o4Iy8v8uHfR1UM6Ppy3t4PCzpSdN8VkePAaNeuAZz/YA==", "dependencies": { - "@asyncapi/parser": "^3.0.10", + "@asyncapi/parser": "^3.0.11", "@babel/core": "7.12.9", "@babel/preset-env": "^7.12.7", "@babel/preset-react": "^7.12.7", @@ -199,11 +199,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.10.tgz", - "integrity": "sha512-x9qo7SHGzPWbC1XCRyilcI+Z6UZsWZ9uRl05h9j4G/v+3IjNG3krwngiAbt59nbLlYZD/nBS7Hc03GayoocnQw==", + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.11.tgz", + "integrity": "sha512-YrmPY6Me7Eh6yH7xISKrDuiybaNVDUxVjbChUAoJZ4dnVGAmMVTxQTlwoqEwQ9bfTHzAb3RixdJ3TC6I4RoHNw==", "dependencies": { - "@asyncapi/specs": "^6.5.3", + "@asyncapi/specs": "^6.5.4", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -320,9 +320,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.3.tgz", - "integrity": "sha512-mZROlCOLkZEWy5tN4pPop3JEJflSKmLLMGO1TebF5wjnroqZ3yp/GuGUxVIl3jVNxFk1i5nZ2AtWzAD/HaUj3Q==", + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.4.tgz", + "integrity": "sha512-olC+iuboGIGjFRKuqfwaXxm5I6Wae3JohmySwMfExl21nYUd88IbfwywunOPLWyLV05aXeoTJ5tDXiM9e4gWcQ==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -14388,11 +14388,11 @@ } }, "@asyncapi/generator-react-sdk": { - "version": "1.0.14", - "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.14.tgz", - "integrity": "sha512-Yvn9L9CMYP7pv+catUYM+EbUY3iD3q1AufP1B/q2naUWjs19XwOLOka8ZJ/9graZS9mCriHW1PXGxnjd5BaHig==", + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.15.tgz", + "integrity": "sha512-2ewO8pWSw39NkL3fvG3YMgou6VXMaIuxYE7Uw5MEE/o4Iy8v8uHfR1UM6Ppy3t4PCzpSdN8VkePAaNeuAZz/YA==", "requires": { - "@asyncapi/parser": "^3.0.10", + "@asyncapi/parser": "^3.0.11", "@babel/core": "7.12.9", "@babel/preset-env": "^7.12.7", "@babel/preset-react": "^7.12.7", @@ -14458,11 +14458,11 @@ } }, "@asyncapi/parser": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.10.tgz", - "integrity": "sha512-x9qo7SHGzPWbC1XCRyilcI+Z6UZsWZ9uRl05h9j4G/v+3IjNG3krwngiAbt59nbLlYZD/nBS7Hc03GayoocnQw==", + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.11.tgz", + "integrity": "sha512-YrmPY6Me7Eh6yH7xISKrDuiybaNVDUxVjbChUAoJZ4dnVGAmMVTxQTlwoqEwQ9bfTHzAb3RixdJ3TC6I4RoHNw==", "requires": { - "@asyncapi/specs": "^6.5.3", + "@asyncapi/specs": "^6.5.4", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -14566,9 +14566,9 @@ } }, "@asyncapi/specs": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.3.tgz", - "integrity": "sha512-mZROlCOLkZEWy5tN4pPop3JEJflSKmLLMGO1TebF5wjnroqZ3yp/GuGUxVIl3jVNxFk1i5nZ2AtWzAD/HaUj3Q==", + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.4.tgz", + "integrity": "sha512-olC+iuboGIGjFRKuqfwaXxm5I6Wae3JohmySwMfExl21nYUd88IbfwywunOPLWyLV05aXeoTJ5tDXiM9e4gWcQ==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index 5c815ef8..aad33ae3 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "dependencies": { "@asyncapi/generator-filters": "^2.1.0", "@asyncapi/generator-hooks": "^0.1.0", - "@asyncapi/generator-react-sdk": "^1.0.14", + "@asyncapi/generator-react-sdk": "^1.0.15", "eslint-plugin-react": "^7.34.1", "filenamify": "^4.1.0", "js-beautify": "^1.15.1", From aa303f815ed167be59eba854e746e79feeebf052 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Sun, 31 Mar 2024 20:13:49 +0200 Subject: [PATCH 03/20] chore(release): v2.0.1 (#273) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 20b816f2..1c283da5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/nodejs-template", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/nodejs-template", - "version": "2.0.0", + "version": "2.0.1", "license": "Apache-2.0", "dependencies": { "@asyncapi/generator-filters": "^2.1.0", diff --git a/package.json b/package.json index aad33ae3..564ea20e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/nodejs-template", - "version": "2.0.0", + "version": "2.0.1", "description": "Node.js template for the AsyncAPI generator.", "keywords": [ "asyncapi", From 2cdacc7a553235cf06ffb02a4ea68e0bf028f172 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Sun, 31 Mar 2024 20:39:47 +0200 Subject: [PATCH 04/20] chore: update @asyncapi/generator to 1.17.16 version (#274) --- package-lock.json | 22 +++++++++++----------- package.json | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1c283da5..d2210159 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.14", + "@asyncapi/generator": "^1.17.16", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", @@ -60,13 +60,13 @@ } }, "node_modules/@asyncapi/generator": { - "version": "1.17.14", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.14.tgz", - "integrity": "sha512-RN5o/ZZ5TZZVXf7KOastv0Z3dVEPf27+cZ3rSiNbkxc3AETrh2kCs/VyszIwV8gZiGGi09nd05diq0Cn2NePXg==", + "version": "1.17.16", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.16.tgz", + "integrity": "sha512-Vkee1klVE6rH4KDs16lVAvJ8LZmBcSuKDGI4O7VfDPS3VoRZN5F0utpsaS3JLZlr0ccflPjMm/b2Iyl9tc0WyQ==", "dev": true, "dependencies": { - "@asyncapi/generator-react-sdk": "^1.0.13", - "@asyncapi/parser": "^3.0.10", + "@asyncapi/generator-react-sdk": "^1.0.15", + "@asyncapi/parser": "^3.0.11", "@npmcli/arborist": "5.6.3", "@smoya/multi-parser": "^5.0.0", "ajv": "^8.12.0", @@ -14338,13 +14338,13 @@ } }, "@asyncapi/generator": { - "version": "1.17.14", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.14.tgz", - "integrity": "sha512-RN5o/ZZ5TZZVXf7KOastv0Z3dVEPf27+cZ3rSiNbkxc3AETrh2kCs/VyszIwV8gZiGGi09nd05diq0Cn2NePXg==", + "version": "1.17.16", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.16.tgz", + "integrity": "sha512-Vkee1klVE6rH4KDs16lVAvJ8LZmBcSuKDGI4O7VfDPS3VoRZN5F0utpsaS3JLZlr0ccflPjMm/b2Iyl9tc0WyQ==", "dev": true, "requires": { - "@asyncapi/generator-react-sdk": "^1.0.13", - "@asyncapi/parser": "^3.0.10", + "@asyncapi/generator-react-sdk": "^1.0.15", + "@asyncapi/parser": "^3.0.11", "@npmcli/arborist": "5.6.3", "@smoya/multi-parser": "^5.0.0", "ajv": "^8.12.0", diff --git a/package.json b/package.json index 564ea20e..e5ebe9b6 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.14", + "@asyncapi/generator": "^1.17.16", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", From f4573850bc17836d039d15598efd3a7e5307e0fd Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 2 Apr 2024 20:47:50 +0200 Subject: [PATCH 05/20] ci: update of files from global .github repo (#275) --- .github/workflows/if-nodejs-pr-testing.yml | 5 +++-- .github/workflows/if-nodejs-release.yml | 10 +++++++++- .github/workflows/if-nodejs-version-bump.yml | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index 9ce9f9a1..75eaaac7 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -33,6 +33,7 @@ jobs: id: should_run name: Should Run run: echo "shouldrun=true" >> $GITHUB_OUTPUT + shell: bash - if: steps.should_run.outputs.shouldrun == 'true' name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows run: | @@ -60,13 +61,13 @@ jobs: - if: steps.packagejson.outputs.exists == 'true' name: Install dependencies id: first-installation - run: npm install --loglevel verbose + run: npm ci continue-on-error: true - if: steps.first-installation.outputs.status == 'failure' && steps.packagejson.outputs.exists == 'true' name: Clear NPM cache and install deps again run: | npm cache clean --force - npm install --loglevel verbose + npm ci - if: steps.packagejson.outputs.exists == 'true' name: Test run: npm test --if-present diff --git a/.github/workflows/if-nodejs-release.yml b/.github/workflows/if-nodejs-release.yml index 4938a37d..fbad21df 100644 --- a/.github/workflows/if-nodejs-release.yml +++ b/.github/workflows/if-nodejs-release.yml @@ -85,6 +85,7 @@ jobs: - name: Check if Node.js project and has package.json id: packagejson run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT + shell: bash - if: steps.packagejson.outputs.exists == 'true' name: Check package-lock version uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master @@ -98,7 +99,14 @@ jobs: cache-dependency-path: '**/package-lock.json' - if: steps.packagejson.outputs.exists == 'true' name: Install dependencies - run: npm install + id: first-installation + run: npm ci + continue-on-error: true + - if: steps.first-installation.outputs.status == 'failure' && steps.packagejson.outputs.exists == 'true' + name: Clear NPM cache and install deps again + run: | + npm cache clean --force + npm ci - if: steps.packagejson.outputs.exists == 'true' name: Add plugin for conventional commits for semantic-release run: npm install --save-dev conventional-changelog-conventionalcommits@5.0.0 diff --git a/.github/workflows/if-nodejs-version-bump.yml b/.github/workflows/if-nodejs-version-bump.yml index 7e27f90b..36847d80 100644 --- a/.github/workflows/if-nodejs-version-bump.yml +++ b/.github/workflows/if-nodejs-version-bump.yml @@ -37,7 +37,7 @@ jobs: cache-dependency-path: '**/package-lock.json' - if: steps.packagejson.outputs.exists == 'true' name: Install dependencies - run: npm install + run: npm ci - if: steps.packagejson.outputs.exists == 'true' name: Assets generation run: npm run generate:assets --if-present From 38f5e81d6ad11113c3e2a2af2c32b38c0c396ff7 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 2 Apr 2024 21:50:53 +0200 Subject: [PATCH 06/20] ci: update of files from global .github repo (#276) --- .github/workflows/help-command.yml | 1 + .../workflows/please-take-a-look-command.yml | 54 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/workflows/please-take-a-look-command.yml diff --git a/.github/workflows/help-command.yml b/.github/workflows/help-command.yml index d4ba4a44..ada81682 100644 --- a/.github/workflows/help-command.yml +++ b/.github/workflows/help-command.yml @@ -31,6 +31,7 @@ jobs: At the moment the following comments are supported in pull requests: + - \`/please-take-a-look` or \`/ptal\` - This comment will add a comment to the PR asking for attention from the reviewrs who have not reviewed the PR yet. - \`/ready-to-merge\` or \`/rtm\` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added - \`/do-not-merge\` or \`/dnm\` - This comment will block automerging even if all conditions are met and ready-to-merge label is added - \`/autoupdate\` or \`/au\` - This comment will add \`autoupdate\` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.` diff --git a/.github/workflows/please-take-a-look-command.yml b/.github/workflows/please-take-a-look-command.yml new file mode 100644 index 00000000..216055ca --- /dev/null +++ b/.github/workflows/please-take-a-look-command.yml @@ -0,0 +1,54 @@ +# This action is centrally managed in https://github.com/asyncapi/.github/ +# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo + +# It uses Github actions to listen for comments on issues and pull requests and +# if the comment contains /ping-for-attention or /pfa it will add a comment pinging +# the code-owners who have not yet reviewed the pull request + +name: Please take a Look + +on: + issue_comment: + types: [created] + +jobs: + ping-for-attention: + if: > + github.event.issue.pull_request && + github.event.issue.state != 'closed' && + github.actor != 'asyncapi-bot' && + ( + contains(github.event.comment.body, '/please-take-a-look') || + contains(github.event.comment.body, '/ptal') || + contains(github.event.comment.body, '/PTAL') + ) + runs-on: ubuntu-latest + steps: + - name: Check for Please Take a Look Command + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.GH_TOKEN }} + script: | + const prDetailsUrl = context.payload.issue.pull_request.url; + const { data: pull } = await github.request(prDetailsUrl); + const reviewers = pull.requested_reviewers.map(reviewer => reviewer.login); + + const { data: reviews } = await github.rest.pulls.listReviews({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: context.issue.number + }); + + const reviewersWhoHaveReviewed = reviews.map(review => review.user.login); + + const reviewersWhoHaveNotReviewed = reviewers.filter(reviewer => !reviewersWhoHaveReviewed.includes(reviewer)); + + if (reviewersWhoHaveNotReviewed.length > 0) { + const comment = reviewersWhoHaveNotReviewed.map(reviewer => `@${reviewer}`).join(' '); + await github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: `${comment} Please take a look at this PR. Thanks! :wave:` + }); + } From 2520a9d42302af00b325fb7a71a51fb136299677 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 3 Apr 2024 09:51:21 +0200 Subject: [PATCH 07/20] chore: update @asyncapi/generator to 1.17.17 version (#277) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index d2210159..cb0d8354 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.16", + "@asyncapi/generator": "^1.17.17", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", @@ -60,9 +60,9 @@ } }, "node_modules/@asyncapi/generator": { - "version": "1.17.16", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.16.tgz", - "integrity": "sha512-Vkee1klVE6rH4KDs16lVAvJ8LZmBcSuKDGI4O7VfDPS3VoRZN5F0utpsaS3JLZlr0ccflPjMm/b2Iyl9tc0WyQ==", + "version": "1.17.17", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.17.tgz", + "integrity": "sha512-EIet2mpMtPMR0h6954XhcqupCpP2GUOegzkFsTw41Khqg5YatNE61gYH/1Qztut18biaR2h4jZUYEDco2HqJow==", "dev": true, "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.15", @@ -14338,9 +14338,9 @@ } }, "@asyncapi/generator": { - "version": "1.17.16", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.16.tgz", - "integrity": "sha512-Vkee1klVE6rH4KDs16lVAvJ8LZmBcSuKDGI4O7VfDPS3VoRZN5F0utpsaS3JLZlr0ccflPjMm/b2Iyl9tc0WyQ==", + "version": "1.17.17", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.17.tgz", + "integrity": "sha512-EIet2mpMtPMR0h6954XhcqupCpP2GUOegzkFsTw41Khqg5YatNE61gYH/1Qztut18biaR2h4jZUYEDco2HqJow==", "dev": true, "requires": { "@asyncapi/generator-react-sdk": "^1.0.15", diff --git a/package.json b/package.json index e5ebe9b6..38f7b57f 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.16", + "@asyncapi/generator": "^1.17.17", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", From 24e7f0f7526d6b0b74890c7b64f96b1070312a0b Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 3 Apr 2024 18:28:48 +0200 Subject: [PATCH 08/20] chore: update @asyncapi/generator to 1.17.19 version (#280) --- package-lock.json | 46 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index cb0d8354..e6439594 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.17", + "@asyncapi/generator": "^1.17.19", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", @@ -60,13 +60,13 @@ } }, "node_modules/@asyncapi/generator": { - "version": "1.17.17", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.17.tgz", - "integrity": "sha512-EIet2mpMtPMR0h6954XhcqupCpP2GUOegzkFsTw41Khqg5YatNE61gYH/1Qztut18biaR2h4jZUYEDco2HqJow==", + "version": "1.17.19", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.19.tgz", + "integrity": "sha512-Wc0Cfjj6R+RCOwVwaT8d9UwvIsDKwbDKZ/D6hqHCKa1XjfjT9SwZtiaQCZyuPKax6ZMYZ2H6LJXRO0BA24AYrQ==", "dev": true, "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.15", - "@asyncapi/parser": "^3.0.11", + "@asyncapi/parser": "^3.0.12", "@npmcli/arborist": "5.6.3", "@smoya/multi-parser": "^5.0.0", "ajv": "^8.12.0", @@ -199,11 +199,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.11.tgz", - "integrity": "sha512-YrmPY6Me7Eh6yH7xISKrDuiybaNVDUxVjbChUAoJZ4dnVGAmMVTxQTlwoqEwQ9bfTHzAb3RixdJ3TC6I4RoHNw==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.12.tgz", + "integrity": "sha512-F46FSg6XZDy8LSE0U8MnK0JsvRdDXN2XwE/prewr6d+JE1DNR7fwYAFty7SNh2Ym04D5G+YHZEm2QbbzOsrbsQ==", "dependencies": { - "@asyncapi/specs": "^6.5.4", + "@asyncapi/specs": "^6.5.5", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -320,9 +320,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.4.tgz", - "integrity": "sha512-olC+iuboGIGjFRKuqfwaXxm5I6Wae3JohmySwMfExl21nYUd88IbfwywunOPLWyLV05aXeoTJ5tDXiM9e4gWcQ==", + "version": "6.5.5", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.5.tgz", + "integrity": "sha512-5uPO22ZsLjh6ZdSHF/wROogOaA3BlYUOQqBf5+hdBbXXj/jIHJWHTYSLWCvws7DQM0++tHslFZ+xWbURTc927w==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -14338,13 +14338,13 @@ } }, "@asyncapi/generator": { - "version": "1.17.17", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.17.tgz", - "integrity": "sha512-EIet2mpMtPMR0h6954XhcqupCpP2GUOegzkFsTw41Khqg5YatNE61gYH/1Qztut18biaR2h4jZUYEDco2HqJow==", + "version": "1.17.19", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.19.tgz", + "integrity": "sha512-Wc0Cfjj6R+RCOwVwaT8d9UwvIsDKwbDKZ/D6hqHCKa1XjfjT9SwZtiaQCZyuPKax6ZMYZ2H6LJXRO0BA24AYrQ==", "dev": true, "requires": { "@asyncapi/generator-react-sdk": "^1.0.15", - "@asyncapi/parser": "^3.0.11", + "@asyncapi/parser": "^3.0.12", "@npmcli/arborist": "5.6.3", "@smoya/multi-parser": "^5.0.0", "ajv": "^8.12.0", @@ -14458,11 +14458,11 @@ } }, "@asyncapi/parser": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.11.tgz", - "integrity": "sha512-YrmPY6Me7Eh6yH7xISKrDuiybaNVDUxVjbChUAoJZ4dnVGAmMVTxQTlwoqEwQ9bfTHzAb3RixdJ3TC6I4RoHNw==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.12.tgz", + "integrity": "sha512-F46FSg6XZDy8LSE0U8MnK0JsvRdDXN2XwE/prewr6d+JE1DNR7fwYAFty7SNh2Ym04D5G+YHZEm2QbbzOsrbsQ==", "requires": { - "@asyncapi/specs": "^6.5.4", + "@asyncapi/specs": "^6.5.5", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -14566,9 +14566,9 @@ } }, "@asyncapi/specs": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.4.tgz", - "integrity": "sha512-olC+iuboGIGjFRKuqfwaXxm5I6Wae3JohmySwMfExl21nYUd88IbfwywunOPLWyLV05aXeoTJ5tDXiM9e4gWcQ==", + "version": "6.5.5", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.5.tgz", + "integrity": "sha512-5uPO22ZsLjh6ZdSHF/wROogOaA3BlYUOQqBf5+hdBbXXj/jIHJWHTYSLWCvws7DQM0++tHslFZ+xWbURTc927w==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index 38f7b57f..6a704b9b 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.17", + "@asyncapi/generator": "^1.17.19", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", From 7af6588d50ed93c8ac7a930bb0777a3805b62b4a Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 3 Apr 2024 20:18:45 +0200 Subject: [PATCH 09/20] ci: update of files from global .github repo (#281) --- .github/workflows/if-nodejs-pr-testing.yml | 2 +- .github/workflows/if-nodejs-release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index 75eaaac7..73a2af5c 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -63,7 +63,7 @@ jobs: id: first-installation run: npm ci continue-on-error: true - - if: steps.first-installation.outputs.status == 'failure' && steps.packagejson.outputs.exists == 'true' + - if: steps.first-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' name: Clear NPM cache and install deps again run: | npm cache clean --force diff --git a/.github/workflows/if-nodejs-release.yml b/.github/workflows/if-nodejs-release.yml index fbad21df..f407e59a 100644 --- a/.github/workflows/if-nodejs-release.yml +++ b/.github/workflows/if-nodejs-release.yml @@ -102,7 +102,7 @@ jobs: id: first-installation run: npm ci continue-on-error: true - - if: steps.first-installation.outputs.status == 'failure' && steps.packagejson.outputs.exists == 'true' + - if: steps.first-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' name: Clear NPM cache and install deps again run: | npm cache clean --force From 9dcda085ebe38417768714eda6ea5fbe1ad4672e Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 4 Apr 2024 16:16:55 +0200 Subject: [PATCH 10/20] ci: update of files from global .github repo (#282) --- .github/workflows/please-take-a-look-command.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/please-take-a-look-command.yml b/.github/workflows/please-take-a-look-command.yml index 216055ca..b26cbc41 100644 --- a/.github/workflows/please-take-a-look-command.yml +++ b/.github/workflows/please-take-a-look-command.yml @@ -2,8 +2,8 @@ # Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo # It uses Github actions to listen for comments on issues and pull requests and -# if the comment contains /ping-for-attention or /pfa it will add a comment pinging -# the code-owners who have not yet reviewed the pull request +# if the comment contains /please-take-a-look or /ptal it will add a comment pinging +# the code-owners who are reviewers for PR name: Please take a Look @@ -44,7 +44,7 @@ jobs: const reviewersWhoHaveNotReviewed = reviewers.filter(reviewer => !reviewersWhoHaveReviewed.includes(reviewer)); if (reviewersWhoHaveNotReviewed.length > 0) { - const comment = reviewersWhoHaveNotReviewed.map(reviewer => `@${reviewer}`).join(' '); + const comment = reviewersWhoHaveNotReviewed.filter(reviewer => reviewer !== 'asyncapi-bot-eve' ).map(reviewer => `@${reviewer}`).join(' '); await github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, From 5cd0e5ac791639b87be99062392f30fe4ae150a3 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 4 Apr 2024 17:22:12 +0200 Subject: [PATCH 11/20] chore: update @asyncapi/generator to 1.17.20 version (#283) --- package-lock.json | 34 +++++++++++++++++----------------- package.json | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index e6439594..f45696a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.19", + "@asyncapi/generator": "^1.17.20", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", @@ -60,12 +60,12 @@ } }, "node_modules/@asyncapi/generator": { - "version": "1.17.19", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.19.tgz", - "integrity": "sha512-Wc0Cfjj6R+RCOwVwaT8d9UwvIsDKwbDKZ/D6hqHCKa1XjfjT9SwZtiaQCZyuPKax6ZMYZ2H6LJXRO0BA24AYrQ==", + "version": "1.17.20", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.20.tgz", + "integrity": "sha512-1d43oxdOgSgycSwh6gfgKwP4n6wF9vsqPWIrEzWRv+XaR0q4N9AEgm7xW99xWcshyBrh747fdrxlDOZaSRqleg==", "dev": true, "dependencies": { - "@asyncapi/generator-react-sdk": "^1.0.15", + "@asyncapi/generator-react-sdk": "^1.0.16", "@asyncapi/parser": "^3.0.12", "@npmcli/arborist": "5.6.3", "@smoya/multi-parser": "^5.0.0", @@ -118,11 +118,11 @@ } }, "node_modules/@asyncapi/generator-react-sdk": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.15.tgz", - "integrity": "sha512-2ewO8pWSw39NkL3fvG3YMgou6VXMaIuxYE7Uw5MEE/o4Iy8v8uHfR1UM6Ppy3t4PCzpSdN8VkePAaNeuAZz/YA==", + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.16.tgz", + "integrity": "sha512-zmngpZpW3Xb9nGLLp7Q9g58EMLBIIDE6kRyUM2ISbh/zj9PTndsD+Ox7gonJ4TRuD9qYtlK+F12J1pVMXrAOUg==", "dependencies": { - "@asyncapi/parser": "^3.0.11", + "@asyncapi/parser": "^3.0.12", "@babel/core": "7.12.9", "@babel/preset-env": "^7.12.7", "@babel/preset-react": "^7.12.7", @@ -14338,12 +14338,12 @@ } }, "@asyncapi/generator": { - "version": "1.17.19", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.19.tgz", - "integrity": "sha512-Wc0Cfjj6R+RCOwVwaT8d9UwvIsDKwbDKZ/D6hqHCKa1XjfjT9SwZtiaQCZyuPKax6ZMYZ2H6LJXRO0BA24AYrQ==", + "version": "1.17.20", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.20.tgz", + "integrity": "sha512-1d43oxdOgSgycSwh6gfgKwP4n6wF9vsqPWIrEzWRv+XaR0q4N9AEgm7xW99xWcshyBrh747fdrxlDOZaSRqleg==", "dev": true, "requires": { - "@asyncapi/generator-react-sdk": "^1.0.15", + "@asyncapi/generator-react-sdk": "^1.0.16", "@asyncapi/parser": "^3.0.12", "@npmcli/arborist": "5.6.3", "@smoya/multi-parser": "^5.0.0", @@ -14388,11 +14388,11 @@ } }, "@asyncapi/generator-react-sdk": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.15.tgz", - "integrity": "sha512-2ewO8pWSw39NkL3fvG3YMgou6VXMaIuxYE7Uw5MEE/o4Iy8v8uHfR1UM6Ppy3t4PCzpSdN8VkePAaNeuAZz/YA==", + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.16.tgz", + "integrity": "sha512-zmngpZpW3Xb9nGLLp7Q9g58EMLBIIDE6kRyUM2ISbh/zj9PTndsD+Ox7gonJ4TRuD9qYtlK+F12J1pVMXrAOUg==", "requires": { - "@asyncapi/parser": "^3.0.11", + "@asyncapi/parser": "^3.0.12", "@babel/core": "7.12.9", "@babel/preset-env": "^7.12.7", "@babel/preset-react": "^7.12.7", diff --git a/package.json b/package.json index 6a704b9b..a905d16b 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.19", + "@asyncapi/generator": "^1.17.20", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", From 7773e7252cb4689f8a3d2355ba30f3afc9689e46 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 8 Apr 2024 14:24:15 +0200 Subject: [PATCH 12/20] ci: update of files from global .github repo (#284) --- .github/workflows/help-command.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/help-command.yml b/.github/workflows/help-command.yml index ada81682..55353bb8 100644 --- a/.github/workflows/help-command.yml +++ b/.github/workflows/help-command.yml @@ -31,7 +31,7 @@ jobs: At the moment the following comments are supported in pull requests: - - \`/please-take-a-look` or \`/ptal\` - This comment will add a comment to the PR asking for attention from the reviewrs who have not reviewed the PR yet. + - \`/please-take-a-look\` or \`/ptal\` - This comment will add a comment to the PR asking for attention from the reviewrs who have not reviewed the PR yet. - \`/ready-to-merge\` or \`/rtm\` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added - \`/do-not-merge\` or \`/dnm\` - This comment will block automerging even if all conditions are met and ready-to-merge label is added - \`/autoupdate\` or \`/au\` - This comment will add \`autoupdate\` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.` From abd121d87a9cdaa78d90d36bdfd30c30625c72b0 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 9 Apr 2024 18:16:34 +0200 Subject: [PATCH 13/20] ci: update of files from global .github repo (#285) --- .github/workflows/if-nodejs-pr-testing.yml | 24 ++++++++--------- .github/workflows/if-nodejs-release.yml | 31 ++++++++++------------ 2 files changed, 26 insertions(+), 29 deletions(-) diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index 73a2af5c..66ea6552 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -39,9 +39,10 @@ jobs: run: | git config --global core.autocrlf false git config --global core.eol lf + shell: bash - if: steps.should_run.outputs.shouldrun == 'true' name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - if: steps.should_run.outputs.shouldrun == 'true' name: Check if Node.js project and has package.json id: packagejson @@ -53,27 +54,26 @@ jobs: id: lockversion - if: steps.packagejson.outputs.exists == 'true' name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: "${{ steps.lockversion.outputs.version }}" - cache: 'npm' - cache-dependency-path: '**/package-lock.json' + - if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest' + #npm cli 10 is buggy because of some cache issue + name: Install npm cli 8 + shell: bash + run: npm install -g npm@8.19.4 - if: steps.packagejson.outputs.exists == 'true' name: Install dependencies - id: first-installation + shell: bash run: npm ci - continue-on-error: true - - if: steps.first-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' - name: Clear NPM cache and install deps again - run: | - npm cache clean --force - npm ci - if: steps.packagejson.outputs.exists == 'true' name: Test run: npm test --if-present - - if: steps.packagejson.outputs.exists == 'true' + - if: steps.packagejson.outputs.exists == 'true' && matrix.os == 'ubuntu-latest' + #linting should run just one and not on all possible operating systems name: Run linter run: npm run lint --if-present - if: steps.packagejson.outputs.exists == 'true' name: Run release assets generation to make sure PR does not break it + shell: bash run: npm run generate:assets --if-present diff --git a/.github/workflows/if-nodejs-release.yml b/.github/workflows/if-nodejs-release.yml index f407e59a..234c5a9c 100644 --- a/.github/workflows/if-nodejs-release.yml +++ b/.github/workflows/if-nodejs-release.yml @@ -38,8 +38,9 @@ jobs: run: | git config --global core.autocrlf false git config --global core.eol lf + shell: bash - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check if Node.js project and has package.json id: packagejson run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT @@ -50,14 +51,18 @@ jobs: id: lockversion - if: steps.packagejson.outputs.exists == 'true' name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: "${{ steps.lockversion.outputs.version }}" - cache: 'npm' - cache-dependency-path: '**/package-lock.json' + - if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest' + name: Install npm cli 8 + shell: bash + #npm cli 10 is buggy because of some cache issues + run: npm install -g npm@8.19.4 - if: steps.packagejson.outputs.exists == 'true' name: Install dependencies - run: npm install + shell: bash + run: npm ci - if: steps.packagejson.outputs.exists == 'true' name: Run test run: npm test --if-present @@ -81,7 +86,7 @@ jobs: git config --global core.autocrlf false git config --global core.eol lf - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check if Node.js project and has package.json id: packagejson run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT @@ -92,21 +97,13 @@ jobs: id: lockversion - if: steps.packagejson.outputs.exists == 'true' name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: "${{ steps.lockversion.outputs.version }}" - cache: 'npm' - cache-dependency-path: '**/package-lock.json' - if: steps.packagejson.outputs.exists == 'true' name: Install dependencies - id: first-installation + shell: bash run: npm ci - continue-on-error: true - - if: steps.first-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' - name: Clear NPM cache and install deps again - run: | - npm cache clean --force - npm ci - if: steps.packagejson.outputs.exists == 'true' name: Add plugin for conventional commits for semantic-release run: npm install --save-dev conventional-changelog-conventionalcommits@5.0.0 @@ -131,4 +128,4 @@ jobs: fields: repo,action,workflow text: 'Release workflow failed in release job' env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }} \ No newline at end of file From 67548c935b7356011078cfc098a28eb842b9ed8c Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 9 Apr 2024 18:36:32 +0200 Subject: [PATCH 14/20] ci: update of files from global .github repo (#286) --- .github/workflows/bump.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index dff50cfa..1e17ccf2 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -26,9 +26,10 @@ jobs: run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT - if: steps.packagejson.outputs.exists == 'true' name: Bumping latest version of this package in other repositories - uses: derberg/npm-dependency-manager-for-your-github-org@3df56be95bcaa5c76a9c9a4af863ab151545b649 # using v6.-.- https://github.com/derberg/npm-dependency-manager-for-your-github-org/releases/tag/v6 + uses: derberg/npm-dependency-manager-for-your-github-org@1eafd3bf3974f21d395c1abac855cb04b295d570 # using v6.-.- https://github.com/derberg/npm-dependency-manager-for-your-github-org/releases/tag/v6 with: github_token: ${{ secrets.GH_TOKEN }} committer_username: asyncapi-bot committer_email: info@asyncapi.io repos_to_ignore: spec,bindings,saunter + custom_id: "dependency update from asyncapi bot" From dd242fdfc5d689ccc43dc0551bf872b0ddb8384e Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 15 Apr 2024 14:14:43 +0200 Subject: [PATCH 15/20] chore: update @asyncapi/generator to 1.17.22 version and others (#287) --- package-lock.json | 46 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index f45696a3..1a5b0460 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.20", + "@asyncapi/generator": "^1.17.22", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", @@ -60,13 +60,13 @@ } }, "node_modules/@asyncapi/generator": { - "version": "1.17.20", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.20.tgz", - "integrity": "sha512-1d43oxdOgSgycSwh6gfgKwP4n6wF9vsqPWIrEzWRv+XaR0q4N9AEgm7xW99xWcshyBrh747fdrxlDOZaSRqleg==", + "version": "1.17.22", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.22.tgz", + "integrity": "sha512-haG3eUP9xUt1dH9CC7XDkcadSX0a/os9N1FILWMH/NthQhuDCyVhAwQHN1IvsUHcmxym6TkI8uOLbGs/QH26OA==", "dev": true, "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.16", - "@asyncapi/parser": "^3.0.12", + "@asyncapi/parser": "^3.0.13", "@npmcli/arborist": "5.6.3", "@smoya/multi-parser": "^5.0.0", "ajv": "^8.12.0", @@ -199,11 +199,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.12", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.12.tgz", - "integrity": "sha512-F46FSg6XZDy8LSE0U8MnK0JsvRdDXN2XwE/prewr6d+JE1DNR7fwYAFty7SNh2Ym04D5G+YHZEm2QbbzOsrbsQ==", + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.13.tgz", + "integrity": "sha512-ULNVAsfdLJJJeBDCAWGfleEzmkKJCWcZaYzhTIrqccJa6yZvWrMPLGMYhJhBkdczDxjtdi0iqMmxEy2GC36mUA==", "dependencies": { - "@asyncapi/specs": "^6.5.5", + "@asyncapi/specs": "^6.5.6", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -320,9 +320,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "6.5.5", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.5.tgz", - "integrity": "sha512-5uPO22ZsLjh6ZdSHF/wROogOaA3BlYUOQqBf5+hdBbXXj/jIHJWHTYSLWCvws7DQM0++tHslFZ+xWbURTc927w==", + "version": "6.5.6", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.6.tgz", + "integrity": "sha512-TI3OIY0UFf7wPyjV9GjKqL6C4YJ0xOJ7wX33sxVqCf0XXIq4otGHa1XiBcCUAgdbMlO7b8jsFRxuUsVXCsYDVQ==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -14338,13 +14338,13 @@ } }, "@asyncapi/generator": { - "version": "1.17.20", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.20.tgz", - "integrity": "sha512-1d43oxdOgSgycSwh6gfgKwP4n6wF9vsqPWIrEzWRv+XaR0q4N9AEgm7xW99xWcshyBrh747fdrxlDOZaSRqleg==", + "version": "1.17.22", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.22.tgz", + "integrity": "sha512-haG3eUP9xUt1dH9CC7XDkcadSX0a/os9N1FILWMH/NthQhuDCyVhAwQHN1IvsUHcmxym6TkI8uOLbGs/QH26OA==", "dev": true, "requires": { "@asyncapi/generator-react-sdk": "^1.0.16", - "@asyncapi/parser": "^3.0.12", + "@asyncapi/parser": "^3.0.13", "@npmcli/arborist": "5.6.3", "@smoya/multi-parser": "^5.0.0", "ajv": "^8.12.0", @@ -14458,11 +14458,11 @@ } }, "@asyncapi/parser": { - "version": "3.0.12", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.12.tgz", - "integrity": "sha512-F46FSg6XZDy8LSE0U8MnK0JsvRdDXN2XwE/prewr6d+JE1DNR7fwYAFty7SNh2Ym04D5G+YHZEm2QbbzOsrbsQ==", + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.13.tgz", + "integrity": "sha512-ULNVAsfdLJJJeBDCAWGfleEzmkKJCWcZaYzhTIrqccJa6yZvWrMPLGMYhJhBkdczDxjtdi0iqMmxEy2GC36mUA==", "requires": { - "@asyncapi/specs": "^6.5.5", + "@asyncapi/specs": "^6.5.6", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -14566,9 +14566,9 @@ } }, "@asyncapi/specs": { - "version": "6.5.5", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.5.tgz", - "integrity": "sha512-5uPO22ZsLjh6ZdSHF/wROogOaA3BlYUOQqBf5+hdBbXXj/jIHJWHTYSLWCvws7DQM0++tHslFZ+xWbURTc927w==", + "version": "6.5.6", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.6.tgz", + "integrity": "sha512-TI3OIY0UFf7wPyjV9GjKqL6C4YJ0xOJ7wX33sxVqCf0XXIq4otGHa1XiBcCUAgdbMlO7b8jsFRxuUsVXCsYDVQ==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index a905d16b..d9a6453d 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.20", + "@asyncapi/generator": "^1.17.22", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", From 83a4d8b9f3534891aa8e546baa4f0d28f76af7f9 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 18 Apr 2024 12:34:35 +0200 Subject: [PATCH 16/20] chore: update @asyncapi/generator to 1.17.23 version and others (#288) --- package-lock.json | 64 +++++++++++++++++++++++------------------------ package.json | 4 +-- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1a5b0460..c2f5f48f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@asyncapi/generator-filters": "^2.1.0", "@asyncapi/generator-hooks": "^0.1.0", - "@asyncapi/generator-react-sdk": "^1.0.15", + "@asyncapi/generator-react-sdk": "^1.0.18", "eslint-plugin-react": "^7.34.1", "filenamify": "^4.1.0", "js-beautify": "^1.15.1", @@ -19,7 +19,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.22", + "@asyncapi/generator": "^1.17.23", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", @@ -60,13 +60,13 @@ } }, "node_modules/@asyncapi/generator": { - "version": "1.17.22", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.22.tgz", - "integrity": "sha512-haG3eUP9xUt1dH9CC7XDkcadSX0a/os9N1FILWMH/NthQhuDCyVhAwQHN1IvsUHcmxym6TkI8uOLbGs/QH26OA==", + "version": "1.17.23", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.23.tgz", + "integrity": "sha512-QCGFegVZXcGWUYve2PHbY7a4jXu0/8kpGzZPnffJzsXj8nlh26O2nwLFt+4AgAbmPV1Pn3Hcpg0icNepHFIdbQ==", "dev": true, "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.16", - "@asyncapi/parser": "^3.0.13", + "@asyncapi/parser": "^3.0.14", "@npmcli/arborist": "5.6.3", "@smoya/multi-parser": "^5.0.0", "ajv": "^8.12.0", @@ -118,11 +118,11 @@ } }, "node_modules/@asyncapi/generator-react-sdk": { - "version": "1.0.16", - "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.16.tgz", - "integrity": "sha512-zmngpZpW3Xb9nGLLp7Q9g58EMLBIIDE6kRyUM2ISbh/zj9PTndsD+Ox7gonJ4TRuD9qYtlK+F12J1pVMXrAOUg==", + "version": "1.0.18", + "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.18.tgz", + "integrity": "sha512-6pGOi1ODODtfXqe+qe1F/VNZIxMB+CIMyAUOt3dC+UE12mBmQe4VTO2VZpbu2HZ2LMG5cfkf3J6S4jJWvY9cDg==", "dependencies": { - "@asyncapi/parser": "^3.0.12", + "@asyncapi/parser": "^3.0.14", "@babel/core": "7.12.9", "@babel/preset-env": "^7.12.7", "@babel/preset-react": "^7.12.7", @@ -199,11 +199,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.13.tgz", - "integrity": "sha512-ULNVAsfdLJJJeBDCAWGfleEzmkKJCWcZaYzhTIrqccJa6yZvWrMPLGMYhJhBkdczDxjtdi0iqMmxEy2GC36mUA==", + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.14.tgz", + "integrity": "sha512-tC2gmKkw28PWWMcGUXHQjTfVftiZdr+FQtsfapaHh36spX9uwe13iYzkcTyCkwSJAHibtg7wvStuHsiufP8xng==", "dependencies": { - "@asyncapi/specs": "^6.5.6", + "@asyncapi/specs": "^6.6.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -320,9 +320,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "6.5.6", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.6.tgz", - "integrity": "sha512-TI3OIY0UFf7wPyjV9GjKqL6C4YJ0xOJ7wX33sxVqCf0XXIq4otGHa1XiBcCUAgdbMlO7b8jsFRxuUsVXCsYDVQ==", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.6.0.tgz", + "integrity": "sha512-pXJa0sCeBpif5al5CSa0f3HvwVBQXzd96/Xgq8Jsh6KM4CYxCe7p6paaC9fDjdBVXyWAioQmZiGRxEVUMINbUw==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -14338,13 +14338,13 @@ } }, "@asyncapi/generator": { - "version": "1.17.22", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.22.tgz", - "integrity": "sha512-haG3eUP9xUt1dH9CC7XDkcadSX0a/os9N1FILWMH/NthQhuDCyVhAwQHN1IvsUHcmxym6TkI8uOLbGs/QH26OA==", + "version": "1.17.23", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.23.tgz", + "integrity": "sha512-QCGFegVZXcGWUYve2PHbY7a4jXu0/8kpGzZPnffJzsXj8nlh26O2nwLFt+4AgAbmPV1Pn3Hcpg0icNepHFIdbQ==", "dev": true, "requires": { "@asyncapi/generator-react-sdk": "^1.0.16", - "@asyncapi/parser": "^3.0.13", + "@asyncapi/parser": "^3.0.14", "@npmcli/arborist": "5.6.3", "@smoya/multi-parser": "^5.0.0", "ajv": "^8.12.0", @@ -14388,11 +14388,11 @@ } }, "@asyncapi/generator-react-sdk": { - "version": "1.0.16", - "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.16.tgz", - "integrity": "sha512-zmngpZpW3Xb9nGLLp7Q9g58EMLBIIDE6kRyUM2ISbh/zj9PTndsD+Ox7gonJ4TRuD9qYtlK+F12J1pVMXrAOUg==", + "version": "1.0.18", + "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.18.tgz", + "integrity": "sha512-6pGOi1ODODtfXqe+qe1F/VNZIxMB+CIMyAUOt3dC+UE12mBmQe4VTO2VZpbu2HZ2LMG5cfkf3J6S4jJWvY9cDg==", "requires": { - "@asyncapi/parser": "^3.0.12", + "@asyncapi/parser": "^3.0.14", "@babel/core": "7.12.9", "@babel/preset-env": "^7.12.7", "@babel/preset-react": "^7.12.7", @@ -14458,11 +14458,11 @@ } }, "@asyncapi/parser": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.13.tgz", - "integrity": "sha512-ULNVAsfdLJJJeBDCAWGfleEzmkKJCWcZaYzhTIrqccJa6yZvWrMPLGMYhJhBkdczDxjtdi0iqMmxEy2GC36mUA==", + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.14.tgz", + "integrity": "sha512-tC2gmKkw28PWWMcGUXHQjTfVftiZdr+FQtsfapaHh36spX9uwe13iYzkcTyCkwSJAHibtg7wvStuHsiufP8xng==", "requires": { - "@asyncapi/specs": "^6.5.6", + "@asyncapi/specs": "^6.6.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -14566,9 +14566,9 @@ } }, "@asyncapi/specs": { - "version": "6.5.6", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.6.tgz", - "integrity": "sha512-TI3OIY0UFf7wPyjV9GjKqL6C4YJ0xOJ7wX33sxVqCf0XXIq4otGHa1XiBcCUAgdbMlO7b8jsFRxuUsVXCsYDVQ==", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.6.0.tgz", + "integrity": "sha512-pXJa0sCeBpif5al5CSa0f3HvwVBQXzd96/Xgq8Jsh6KM4CYxCe7p6paaC9fDjdBVXyWAioQmZiGRxEVUMINbUw==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index d9a6453d..fae240f4 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "dependencies": { "@asyncapi/generator-filters": "^2.1.0", "@asyncapi/generator-hooks": "^0.1.0", - "@asyncapi/generator-react-sdk": "^1.0.15", + "@asyncapi/generator-react-sdk": "^1.0.18", "eslint-plugin-react": "^7.34.1", "filenamify": "^4.1.0", "js-beautify": "^1.15.1", @@ -41,7 +41,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.22", + "@asyncapi/generator": "^1.17.23", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", From 89143ac98a4cc7006d29ffd5932f9aa4af586994 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 18 Apr 2024 13:01:03 +0200 Subject: [PATCH 17/20] ci: update of files from global .github repo (#289) --- ...d-ready-to-merge-or-do-not-merge-label.yml | 4 +- .github/workflows/autoupdate.yml | 68 ++++++------ .github/workflows/help-command.yml | 3 +- .github/workflows/update-pr.yml | 102 ++++++++++++++++++ 4 files changed, 141 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/update-pr.yml diff --git a/.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml b/.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml index 66606fc1..02d71a79 100644 --- a/.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml +++ b/.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml @@ -59,7 +59,9 @@ jobs: body: `Hello, @${{ github.actor }}! 👋🏼 This PR is not up to date with the base branch and can't be merged. Please update your branch manually with the latest version of the base branch. - PRO-TIP: Add a comment to your PR with the text: \`/au\` or \`/autoupdate\` and our bot will take care of updating the branch in the future. The only requirement for this to work is to enable [Allow edits from maintainers](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork) option in your PR. + PRO-TIP: To request an update from the upstream branch, simply comment \`/u\` or \`/update\` and our bot will handle the update operation promptly. + + The only requirement for this to work is to enable [Allow edits from maintainers](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork) option in your PR. Also the update will not work if your fork is located in an organization, not under your personal profile. Thanks 😄` }) } diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate.yml index ad8e0198..eeb77a47 100644 --- a/.github/workflows/autoupdate.yml +++ b/.github/workflows/autoupdate.yml @@ -1,34 +1,34 @@ -# This action is centrally managed in https://github.com/asyncapi/.github/ -# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo - -# This workflow is designed to work with: -# - autoapprove and automerge workflows for dependabot and asyncapibot. -# - special release branches that we from time to time create in upstream repos. If we open up PRs for them from the very beginning of the release, the release branch will constantly update with new things from the destination branch they are opened against - -# It uses GitHub Action that auto-updates pull requests branches, whenever changes are pushed to their destination branch. -# Autoupdating to latest destination branch works only in the context of upstream repo and not forks - -name: autoupdate - -on: - push: - branches-ignore: - - 'version-bump/**' - - 'dependabot/**' - - 'bot/**' - - 'all-contributors/**' - -jobs: - autoupdate-for-bot: - if: startsWith(github.repository, 'asyncapi/') - name: Autoupdate autoapproved PR created in the upstream - runs-on: ubuntu-latest - steps: - - name: Autoupdating - uses: docker://chinthakagodawita/autoupdate-action:v1 - env: - GITHUB_TOKEN: '${{ secrets.GH_TOKEN_BOT_EVE }}' - PR_FILTER: "labelled" - PR_LABELS: "autoupdate" - PR_READY_STATE: "ready_for_review" - MERGE_CONFLICT_ACTION: "ignore" +# This action is centrally managed in https://github.com/asyncapi/.github/ +# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo + +# This workflow is designed to work with: +# - autoapprove and automerge workflows for dependabot and asyncapibot. +# - special release branches that we from time to time create in upstream repos. If we open up PRs for them from the very beginning of the release, the release branch will constantly update with new things from the destination branch they are opened against + +# It uses GitHub Action that auto-updates pull requests branches, whenever changes are pushed to their destination branch. +# Autoupdating to latest destination branch works only in the context of upstream repo and not forks + +name: autoupdate + +on: + push: + branches-ignore: + - 'version-bump/**' + - 'dependabot/**' + - 'bot/**' + - 'all-contributors/**' + +jobs: + autoupdate-for-bot: + if: startsWith(github.repository, 'asyncapi/') + name: Autoupdate autoapproved PR created in the upstream + runs-on: ubuntu-latest + steps: + - name: Autoupdating + uses: docker://chinthakagodawita/autoupdate-action:v1 + env: + GITHUB_TOKEN: '${{ secrets.GH_TOKEN_BOT_EVE }}' + PR_FILTER: "labelled" + PR_LABELS: "autoupdate" + PR_READY_STATE: "ready_for_review" + MERGE_CONFLICT_ACTION: "ignore" diff --git a/.github/workflows/help-command.yml b/.github/workflows/help-command.yml index 55353bb8..3f4dcbc4 100644 --- a/.github/workflows/help-command.yml +++ b/.github/workflows/help-command.yml @@ -34,7 +34,8 @@ jobs: - \`/please-take-a-look\` or \`/ptal\` - This comment will add a comment to the PR asking for attention from the reviewrs who have not reviewed the PR yet. - \`/ready-to-merge\` or \`/rtm\` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added - \`/do-not-merge\` or \`/dnm\` - This comment will block automerging even if all conditions are met and ready-to-merge label is added - - \`/autoupdate\` or \`/au\` - This comment will add \`autoupdate\` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.` + - \`/autoupdate\` or \`/au\` - This comment will add \`autoupdate\` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR. (Currently only works for upstream branches.) + - \`/update\` or \`/u\` - This comment will update the PR with the latest changes from the target branch. Unless there is a merge conflict or it is a draft PR. NOTE: this only updates the PR once, so if you need to update again, you need to call the command again.` }) create_help_comment_issue: diff --git a/.github/workflows/update-pr.yml b/.github/workflows/update-pr.yml new file mode 100644 index 00000000..2fa19b0a --- /dev/null +++ b/.github/workflows/update-pr.yml @@ -0,0 +1,102 @@ +# This workflow is centrally managed in https://github.com/asyncapi/.github/ +# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo + +# This workflow will run on every comment with /update or /u. And will create merge-commits for the PR. +# This also works with forks, not only with branches in the same repository/organization. +# Currently, does not work with forks in different organizations. + +# This workflow will be distributed to all repositories in the AsyncAPI organization + +name: Update PR branches from fork + +on: + issue_comment: + types: [created] + +jobs: + update-pr: + if: > + startsWith(github.repository, 'asyncapi/') && + github.event.issue.pull_request && + github.event.issue.state != 'closed' && ( + contains(github.event.comment.body, '/update') || + contains(github.event.comment.body, '/u') + ) + runs-on: ubuntu-latest + steps: + - name: Get Pull Request Details + id: pr + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }} + previews: 'merge-info-preview' # https://docs.github.com/en/graphql/overview/schema-previews#merge-info-preview-more-detailed-information-about-a-pull-requests-merge-state-preview + script: | + const prNumber = context.payload.issue.number; + core.debug(`PR Number: ${prNumber}`); + const { data: pr } = await github.rest.pulls.get({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: prNumber + }); + + // If the PR has conflicts, we don't want to update it + const updateable = ['behind', 'blocked', 'unknown', 'draft', 'clean'].includes(pr.mergeable_state); + console.log(`PR #${prNumber} is ${pr.mergeable_state} and is ${updateable ? 'updateable' : 'not updateable'}`); + core.setOutput('updateable', updateable); + + core.debug(`Updating PR #${prNumber} with head ${pr.head.sha}`); + + return { + id: pr.node_id, + number: prNumber, + head: pr.head.sha, + } + - name: Update the Pull Request + if: steps.pr.outputs.updateable == 'true' + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const mutation = `mutation update($input: UpdatePullRequestBranchInput!) { + updatePullRequestBranch(input: $input) { + pullRequest { + mergeable + } + } + }`; + + const pr_details = ${{ steps.pr.outputs.result }}; + + try { + const { data } = await github.graphql(mutation, { + input: { + pullRequestId: pr_details.id, + expectedHeadOid: pr_details.head, + } + }); + } catch (GraphQLError) { + core.debug(GraphQLError); + if ( + GraphQLError.name === 'GraphqlResponseError' && + GraphQLError.errors.some( + error => error.type === 'FORBIDDEN' || error.type === 'UNAUTHORIZED' + ) + ) { + // Add comment to PR if the bot doesn't have permissions to update the PR + const comment = `Hi @${context.actor}. Update of PR has failed. It can be due to one of the following reasons: + - I don't have permissions to update this PR. To update your fork with upstream using bot you need to enable [Allow edits from maintainers](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork) option in the PR. + - The fork is located in an organization, not under your personal profile. No solution for that. You are on your own with manual update. + - There may be a conflict in the PR. Please resolve the conflict and try again.`; + + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: comment + }); + + core.setFailed('Bot does not have permissions to update the PR'); + } else { + core.setFailed(GraphQLError.message); + } + } From e585cb1cf9090e190a7310bf032447cf4524a709 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 18 Apr 2024 13:24:58 +0200 Subject: [PATCH 18/20] ci: update of files from global .github repo (#290) --- .github/workflows/bump.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 1e17ccf2..43ba75fd 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -31,5 +31,5 @@ jobs: github_token: ${{ secrets.GH_TOKEN }} committer_username: asyncapi-bot committer_email: info@asyncapi.io - repos_to_ignore: spec,bindings,saunter + repos_to_ignore: spec,bindings,saunter,server-api custom_id: "dependency update from asyncapi bot" From ca88c2248252e3a4a251c61ce15056080df8cd20 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 18 Apr 2024 13:49:11 +0200 Subject: [PATCH 19/20] chore: update @asyncapi/generator to 1.17.24 version and others (#291) --- package-lock.json | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index c2f5f48f..4ed5299d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.23", + "@asyncapi/generator": "^1.17.24", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", @@ -60,12 +60,12 @@ } }, "node_modules/@asyncapi/generator": { - "version": "1.17.23", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.23.tgz", - "integrity": "sha512-QCGFegVZXcGWUYve2PHbY7a4jXu0/8kpGzZPnffJzsXj8nlh26O2nwLFt+4AgAbmPV1Pn3Hcpg0icNepHFIdbQ==", + "version": "1.17.24", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.24.tgz", + "integrity": "sha512-QCEexF8ASwNJNnwwcknJ1VXDl29pE6AcZXew2cCmddWV7xYWycPjJdjsAP/VUTL8p98HAz6OZei/lzu7tnM1wA==", "dev": true, "dependencies": { - "@asyncapi/generator-react-sdk": "^1.0.16", + "@asyncapi/generator-react-sdk": "^1.0.18", "@asyncapi/parser": "^3.0.14", "@npmcli/arborist": "5.6.3", "@smoya/multi-parser": "^5.0.0", @@ -14338,12 +14338,12 @@ } }, "@asyncapi/generator": { - "version": "1.17.23", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.23.tgz", - "integrity": "sha512-QCGFegVZXcGWUYve2PHbY7a4jXu0/8kpGzZPnffJzsXj8nlh26O2nwLFt+4AgAbmPV1Pn3Hcpg0icNepHFIdbQ==", + "version": "1.17.24", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.24.tgz", + "integrity": "sha512-QCEexF8ASwNJNnwwcknJ1VXDl29pE6AcZXew2cCmddWV7xYWycPjJdjsAP/VUTL8p98HAz6OZei/lzu7tnM1wA==", "dev": true, "requires": { - "@asyncapi/generator-react-sdk": "^1.0.16", + "@asyncapi/generator-react-sdk": "^1.0.18", "@asyncapi/parser": "^3.0.14", "@npmcli/arborist": "5.6.3", "@smoya/multi-parser": "^5.0.0", diff --git a/package.json b/package.json index fae240f4..e4924528 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.23", + "@asyncapi/generator": "^1.17.24", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", From 09a745a4fe3706326b280f9e7173b2c7a14783ba Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 18 Apr 2024 14:31:45 +0200 Subject: [PATCH 20/20] chore: update @asyncapi/generator to 1.17.25 version and others (#292) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4ed5299d..46e8a44e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.24", + "@asyncapi/generator": "^1.17.25", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0", @@ -60,9 +60,9 @@ } }, "node_modules/@asyncapi/generator": { - "version": "1.17.24", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.24.tgz", - "integrity": "sha512-QCEexF8ASwNJNnwwcknJ1VXDl29pE6AcZXew2cCmddWV7xYWycPjJdjsAP/VUTL8p98HAz6OZei/lzu7tnM1wA==", + "version": "1.17.25", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.25.tgz", + "integrity": "sha512-Wz8qFkHl13jYs9QeDEf/xScod4ukjQihFC9La4zsYA73sTc29RpIK0URvXJr/1rkTErU+QaNDbnbRHhlnqlm4w==", "dev": true, "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.18", @@ -14338,9 +14338,9 @@ } }, "@asyncapi/generator": { - "version": "1.17.24", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.24.tgz", - "integrity": "sha512-QCEexF8ASwNJNnwwcknJ1VXDl29pE6AcZXew2cCmddWV7xYWycPjJdjsAP/VUTL8p98HAz6OZei/lzu7tnM1wA==", + "version": "1.17.25", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.17.25.tgz", + "integrity": "sha512-Wz8qFkHl13jYs9QeDEf/xScod4ukjQihFC9La4zsYA73sTc29RpIK0URvXJr/1rkTErU+QaNDbnbRHhlnqlm4w==", "dev": true, "requires": { "@asyncapi/generator-react-sdk": "^1.0.18", diff --git a/package.json b/package.json index e4924528..14e37422 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "markdown-toc": "^1.2.0" }, "devDependencies": { - "@asyncapi/generator": "^1.17.24", + "@asyncapi/generator": "^1.17.25", "eslint": "^8.7.0", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-sonarjs": "^0.11.0",