Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from asyncapi:master #8

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
559660c
fix: make `key` in kafka msg binding validate as anyOf (#466)
derberg Dec 13, 2023
3768128
feat: new script and ci for JSON Schema validation (#452)
AnimeshKumar923 Dec 13, 2023
e5a57bc
fix: trigger release (#470)
smoya Dec 13, 2023
1882584
chore(release): v6.2.0 (#471)
asyncapi-bot Dec 13, 2023
287ed28
ci: update of files from global .github repo (#472)
asyncapi-bot Dec 13, 2023
e1ca27e
fix: reduced the complexity of validate-schema.js (#483)
Gmin2 Jan 29, 2024
992c509
chore(release): v6.2.1 (#485)
asyncapi-bot Jan 29, 2024
0002c50
feat: add HTTP 0.3.0 bindings (#484)
jonaslagoni Jan 30, 2024
516cb82
chore(release): v6.3.0 (#486)
asyncapi-bot Jan 30, 2024
4021e8e
ci: added code linting (#473)
Gmin2 Feb 2, 2024
f4c3085
feat: solace add per operation fields (#487)
GreenRover Feb 4, 2024
edb5071
chore(release): v6.4.0 (#488)
asyncapi-bot Feb 4, 2024
0c79a61
Add GreenRover as CODEOWNERS (#489)
GreenRover Feb 6, 2024
a444ea4
refactor: enable reusability of schemas between versions (#468)
devilkiller-ag Feb 21, 2024
ae96600
feat: add new kafka topic configuration properties (#481)
gokerakc Feb 21, 2024
35ea790
chore(release): v6.5.0 (#491)
asyncapi-bot Feb 21, 2024
d19a21d
ci: update of files from global .github repo (#496)
asyncapi-bot Mar 11, 2024
fc82793
ci: update of files from global .github repo (#497)
asyncapi-bot Mar 11, 2024
d307ca2
fix: http operation bindings not using latest version (#499)
jonaslagoni Mar 14, 2024
b4841e4
chore(release): v6.5.1 (#500)
asyncapi-bot Mar 14, 2024
0301e5a
fix: http message bindings not using latest version (#498)
jonaslagoni Mar 14, 2024
c2e36e1
chore(release): v6.5.2 (#502)
asyncapi-bot Mar 14, 2024
59613c8
fix: kafka bindings not using latest version (#501)
dalelane Mar 14, 2024
0ec5d64
chore(release): v6.5.3 (#503)
asyncapi-bot Mar 14, 2024
bee34d8
ci: update of files from global .github repo (#504)
asyncapi-bot Mar 18, 2024
0ce2dd6
fix: kafka bindings not using latest version (#508)
ctasada Mar 31, 2024
a0dfbd8
chore(release): v6.5.4 (#509)
asyncapi-bot Mar 31, 2024
4a522ab
ci: update of files from global .github repo (#510)
asyncapi-bot Apr 2, 2024
a4ae97a
ci: update of files from global .github repo (#511)
asyncapi-bot Apr 2, 2024
d58bf5e
fix: wrong validation with AsyncAPI v3 in VS Code and JetBrains IDEs …
Pakisan Apr 3, 2024
b38af82
chore(release): v6.5.5 (#512)
asyncapi-bot Apr 3, 2024
f24cd34
ci: update of files from global .github repo (#514)
asyncapi-bot Apr 3, 2024
ec71470
ci: update of files from global .github repo (#515)
asyncapi-bot Apr 4, 2024
4f76ad4
ci: update of files from global .github repo (#516)
asyncapi-bot Apr 8, 2024
4609dae
ci: update of files from global .github repo (#517)
asyncapi-bot Apr 9, 2024
6e5e950
ci: update of files from global .github repo (#518)
asyncapi-bot Apr 9, 2024
a75e436
fix: go module version now supports v6. This does not affect the NPM …
smoya Apr 15, 2024
36533fe
chore(release): v6.5.6 (#521)
asyncapi-bot Apr 15, 2024
8f79700
chore: add jonaslagoni as maintainer (#522)
jonaslagoni Apr 17, 2024
9507aff
chore: add Pakisan as maintainer (#523)
Pakisan Apr 17, 2024
a0975d9
feat: add extensions support (#506)
sambhavgupta0705 Apr 18, 2024
a929430
chore(release): v6.6.0 (#524)
asyncapi-bot Apr 18, 2024
91cde7f
ci: update of files from global .github repo (#525)
asyncapi-bot Apr 18, 2024
33dc8af
ci: update of files from global .github repo (#526)
asyncapi-bot Apr 18, 2024
8bf62c4
feat: add linkedin extension support (#528)
sambhavgupta0705 Apr 25, 2024
738ae73
chore(release): v6.7.0 (#530)
asyncapi-bot Apr 25, 2024
81195d4
ci: update of files from global .github repo (#531)
asyncapi-bot Apr 30, 2024
dc0d01d
ci: update of files from global .github repo (#532)
asyncapi-bot May 6, 2024
6c5b1a7
fix: add separate messsage example object (#536)
jonaslagoni May 14, 2024
8ab1e66
chore(release): v6.7.1 (#538)
asyncapi-bot May 14, 2024
d750d26
ci: update of files from global .github repo (#544)
asyncapi-bot Jun 10, 2024
c100baa
ci: update of files from global .github repo (#547)
asyncapi-bot Jun 11, 2024
d83cc02
chore(deps-dev): bump braces from 3.0.2 to 3.0.3 (#548)
dependabot[bot] Jun 11, 2024
821af90
feat: extend aws policy configuration (#553)
Gadam8 Aug 15, 2024
e1ce250
chore(release): v6.8.0 (#554)
asyncapi-bot Aug 15, 2024
93a58d5
test: 3.0.0 initial tests (#540)
Pakisan Sep 13, 2024
9ae1859
chore(deps-dev): bump vite from 5.2.11 to 5.4.6 (#556)
dependabot[bot] Sep 17, 2024
dc1900e
chore(deps-dev): bump rollup from 4.21.3 to 4.22.4 (#557)
dependabot[bot] Sep 24, 2024
2da0459
ci: update of files from global .github repo (#559)
asyncapi-bot Nov 12, 2024
2191fdf
fix: fix type of payload in MessageExample (#561)
Pakisan Jan 27, 2025
c360bb9
chore(release): v6.8.1 (#563)
asyncapi-bot Jan 27, 2025
1a738de
chore(deps-dev): bump vite from 5.4.6 to 5.4.14 (#564)
dependabot[bot] Jan 27, 2025
c730903
chore(deps-dev): bump vitest from 1.6.0 to 1.6.1 (#565)
dependabot[bot] Feb 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
110 changes: 110 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
env:
node: true
es6: true
browser: true

plugins:
- sonarjs

extends:
- eslint:recommended
- plugin:sonarjs/recommended

parserOptions:
ecmaVersion: 2018
requireConfigFile: false

rules:
# Ignore Rules
strict: 0
no-underscore-dangle: 0
no-mixed-requires: 0
no-process-exit: 0
no-warning-comments: 0
no-use-before-define: 0
curly: 0
no-multi-spaces: 0
no-alert: 0
consistent-return: 0
consistent-this: [0, self]
func-style: 0
max-nested-callbacks: 0
camelcase: 0
no-dupe-class-members: 0
security/detect-object-injection: 0
sonarjs/no-small-switch: 0
sonarjs/no-nested-template-literals: 0

# Warnings
no-debugger: 1
no-empty: 1
no-invalid-regexp: 1
no-unused-expressions: 1
no-native-reassign: 1
no-fallthrough: 1
sonarjs/cognitive-complexity: 1

# Errors
eqeqeq: 2
no-undef: 2
no-dupe-keys: 2
no-empty-character-class: 2
no-self-compare: 2
valid-typeof: 2
handle-callback-err: 2
no-shadow-restricted-names: 2
no-new-require: 2
no-mixed-spaces-and-tabs: 2
block-scoped-var: 2
no-else-return: 2
no-throw-literal: 2
no-void: 2
radix: 2
wrap-iife: [2, outside]
no-shadow: 0
no-path-concat: 2
valid-jsdoc: [0, {requireReturn: false, requireParamDescription: false, requireReturnDescription: false}]

# stylistic errors
no-spaced-func: 2
semi-spacing: 2
quotes: [2, 'single']
key-spacing: [2, { beforeColon: false, afterColon: true }]
indent: [2, 2]
no-lonely-if: 2
no-floating-decimal: 2
brace-style: [2, 1tbs, { allowSingleLine: true }]
comma-style: [2, last]
no-multiple-empty-lines: [2, {max: 1}]
no-nested-ternary: 2
operator-assignment: [2, always]
padded-blocks: [2, never]
quote-props: [2, as-needed]
keyword-spacing: [2, {'before': true, 'after': true, 'overrides': {}}]
space-before-blocks: [2, always]
array-bracket-spacing: [2, never]
computed-property-spacing: [2, never]
space-in-parens: [2, never]
space-unary-ops: [2, {words: true, nonwords: false}]
wrap-regex: 2
linebreak-style: 0
semi: [2, always]
arrow-spacing: [2, {before: true, after: true}]
no-class-assign: 2
no-const-assign: 2
no-this-before-super: 2
no-var: 2
object-shorthand: [2, always]
prefer-arrow-callback: 2
prefer-const: 2
prefer-spread: 2
prefer-template: 2

overrides:
- files:
- "test/**"
rules:
prefer-arrow-callback: 0
sonarjs/no-duplicate-string: 0
security/detect-object-injection: 0
security/detect-non-literal-fs-filename: 0
Original file line number Diff line number Diff line change
Expand Up @@ -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 😄`
})
}
Expand Down
68 changes: 34 additions & 34 deletions .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
@@ -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"
126 changes: 126 additions & 0 deletions .github/workflows/bounty-program-commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
# This workflow is centrally managed at https://github.com/asyncapi/.github/
# Don't make changes to this file in this repository, as they will be overwritten with
# changes made to the same file in the abovementioned repository.

# The purpose of this workflow is to allow Bounty Team members
# (https://github.com/orgs/asyncapi/teams/bounty_team) to issue commands to the
# organization's global AsyncAPI bot related to the Bounty Program, while at the
# same time preventing unauthorized users from misusing them.

name: Bounty Program commands

on:
issue_comment:
types:
- created

env:
BOUNTY_PROGRAM_LABELS_JSON: |
[
{"name": "bounty", "color": "0e8a16", "description": "Participation in the Bounty Program"}
]

jobs:
guard-against-unauthorized-use:
if: >
github.actor != ('aeworxet' || 'thulieblack') &&
(
startsWith(github.event.comment.body, '/bounty' )
)

runs-on: ubuntu-latest

steps:
- name: ❌ @${{github.actor}} made an unauthorized attempt to use a Bounty Program's command
uses: actions/github-script@v6

with:
github-token: ${{ secrets.GH_TOKEN }}
script: |
const commentText = `❌ @${{github.actor}} is not authorized to use the Bounty Program's commands.
These commands can only be used by members of the [Bounty Team](https://github.com/orgs/asyncapi/teams/bounty_team).`;

console.log(`❌ @${{github.actor}} made an unauthorized attempt to use a Bounty Program's command.`);
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: commentText
})

add-label-bounty:
if: >
github.actor == ('aeworxet' || 'thulieblack') &&
(
startsWith(github.event.comment.body, '/bounty' )
)

runs-on: ubuntu-latest

steps:
- name: Add label `bounty`
uses: actions/github-script@v6

with:
github-token: ${{ secrets.GH_TOKEN }}
script: |
const BOUNTY_PROGRAM_LABELS = JSON.parse(process.env.BOUNTY_PROGRAM_LABELS_JSON);
let LIST_OF_LABELS_FOR_REPO = await github.rest.issues.listLabelsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
});

LIST_OF_LABELS_FOR_REPO = LIST_OF_LABELS_FOR_REPO.data.map(key => key.name);

if (!LIST_OF_LABELS_FOR_REPO.includes(BOUNTY_PROGRAM_LABELS[0].name)) {
await github.rest.issues.createLabel({
owner: context.repo.owner,
repo: context.repo.repo,
name: BOUNTY_PROGRAM_LABELS[0].name,
color: BOUNTY_PROGRAM_LABELS[0].color,
description: BOUNTY_PROGRAM_LABELS[0].description
});
}

console.log('Adding label `bounty`...');
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: [BOUNTY_PROGRAM_LABELS[0].name]
})

remove-label-bounty:
if: >
github.actor == ('aeworxet' || 'thulieblack') &&
(
startsWith(github.event.comment.body, '/unbounty' )
)

runs-on: ubuntu-latest

steps:
- name: Remove label `bounty`
uses: actions/github-script@v6

with:
github-token: ${{ secrets.GH_TOKEN }}
script: |
const BOUNTY_PROGRAM_LABELS = JSON.parse(process.env.BOUNTY_PROGRAM_LABELS_JSON);
let LIST_OF_LABELS_FOR_ISSUE = await github.rest.issues.listLabelsOnIssue({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
});

LIST_OF_LABELS_FOR_ISSUE = LIST_OF_LABELS_FOR_ISSUE.data.map(key => key.name);

if (LIST_OF_LABELS_FOR_ISSUE.includes(BOUNTY_PROGRAM_LABELS[0].name)) {
console.log('Removing label `bounty`...');
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: [BOUNTY_PROGRAM_LABELS[0].name]
})
}
5 changes: 3 additions & 2 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@26a4f13d740254719971325046822a169aaa7441 # using v5.-.- https://github.com/derberg/npm-dependency-manager-for-your-github-org/releases/tag/v5.0.0
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: html-template # this is temporary until react component releases 1.0, then it can be removed
repos_to_ignore: spec,bindings,saunter,server-api
custom_id: "dependency update from asyncapi bot"
4 changes: 3 additions & 1 deletion .github/workflows/help-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ 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.`
- \`/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:
Expand Down
Loading
Loading