Skip to content

Commit

Permalink
Merge branch 'master' into gh-action-for-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
asyncapi-bot authored Sep 14, 2024
2 parents 1ddf001 + a036508 commit 1877382
Show file tree
Hide file tree
Showing 208 changed files with 68,612 additions and 37,311 deletions.
227 changes: 226 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,230 @@
"contributions": [
"code"
]
},
{
"login": "Samridhi-98",
"name": "Samriddhi",
"avatar_url": "https://avatars.githubusercontent.com/u/54466041?v=4",
"profile": "https://samridhi-98.github.io/Portfolio",
"contributions": [
"test"
]
},
{
"login": "pranay202",
"name": "Pranay Kharabe",
"avatar_url": "https://avatars.githubusercontent.com/u/68046838?v=4",
"profile": "https://linktr.ee/KharabePranay",
"contributions": [
"code"
]
},
{
"login": "activus-d",
"name": "Damilola Oladele",
"avatar_url": "https://avatars.githubusercontent.com/u/98895460?v=4",
"profile": "https://d-m-oladele.netlify.app/",
"contributions": [
"doc"
]
},
{
"login": "prayutsu",
"name": "Abhay Garg",
"avatar_url": "https://avatars.githubusercontent.com/u/54636525?v=4",
"profile": "https://github.com/prayutsu",
"contributions": [
"code",
"test"
]
},
{
"login": "sambhavgupta0705",
"name": "Sambhav Gupta",
"avatar_url": "https://avatars.githubusercontent.com/u/81870866?v=4",
"profile": "https://github.com/sambhavgupta0705",
"contributions": [
"code",
"test"
]
},
{
"login": "CyberHippo",
"name": "Hippolyte Vergnol",
"avatar_url": "https://avatars.githubusercontent.com/u/18269437?v=4",
"profile": "https://github.com/CyberHippo",
"contributions": [
"code",
"infra"
]
},
{
"login": "Vetsoo",
"name": "Jente Vets",
"avatar_url": "https://avatars.githubusercontent.com/u/22449126?v=4",
"profile": "https://www.jentevets.com",
"contributions": [
"code"
]
},
{
"login": "kaushik-rishi",
"name": "Rishi",
"avatar_url": "https://avatars.githubusercontent.com/u/52498617?v=4",
"profile": "https://github.com/kaushik-rishi",
"contributions": [
"code"
]
},
{
"login": "Shurtu-gal",
"name": "Ashish Padhy",
"avatar_url": "https://avatars.githubusercontent.com/u/100484401?v=4",
"profile": "http://ashishpadhy.live",
"contributions": [
"code"
]
},
{
"login": "meetagrawal09",
"name": "Meet Agrawal",
"avatar_url": "https://avatars.githubusercontent.com/u/73902874?v=4",
"profile": "https://github.com/meetagrawal09",
"contributions": [
"infra"
]
},
{
"login": "chinma-yyy",
"name": "Chinmay Shewale",
"avatar_url": "https://avatars.githubusercontent.com/u/112387862?v=4",
"profile": "https://www.chinmayyy.tech",
"contributions": [
"code",
"test"
]
},
{
"login": "mhmohona",
"name": "Mahfuza Humayra Mohona",
"avatar_url": "https://avatars.githubusercontent.com/u/14244685?v=4",
"profile": "https://github.com/mhmohona",
"contributions": [
"doc"
]
},
{
"login": "GreenRover",
"name": "Heiko Henning",
"avatar_url": "https://avatars.githubusercontent.com/u/512850?v=4",
"profile": "https://github.com/GreenRover",
"contributions": [
"code"
]
},
{
"login": "AayushSaini101",
"name": "Zack_Aayush",
"avatar_url": "https://avatars.githubusercontent.com/u/60972989?v=4",
"profile": "https://www.linkedin.com/in/aayush-saini-0a25931b1/",
"contributions": [
"code"
]
},
{
"login": "ayushnau",
"name": "Ayush Nautiyal",
"avatar_url": "https://avatars.githubusercontent.com/u/78146753?v=4",
"profile": "https://github.com/ayushnau",
"contributions": [
"code"
]
},
{
"login": "Anish Kacham",
"name": "AnishKacham",
"avatar_url": "https://avatars.githubusercontent.com/u/79566582?v=4",
"profile": "https://github.com/AnishKacham",
"contributions": [
"code"
]
},
{
"login": "aeworxet",
"name": "Viacheslav Turovskyi",
"avatar_url": "https://avatars.githubusercontent.com/u/16149591?v=4",
"profile": "https://github.com/aeworxet",
"contributions": [
"code"
]
},
{
"login": "amanbedi1",
"name": "Amanpreet Singh Bedi ",
"avatar_url": "https://avatars.githubusercontent.com/u/82234871?v=4",
"profile": "https://github.com/amanbedi1",
"contributions": [
"code"
]
},
{
"login": "ron-debajyoti",
"name": "Debajyoti Halder",
"avatar_url": "https://avatars.githubusercontent.com/u/22571664?v=4",
"profile": "https://github.com/ron-debajyoti",
"contributions": [
"code"
]
},
{
"login": "Savio629",
"name": "Savio Dias",
"avatar_url": "https://avatars.githubusercontent.com/u/91362589?v=4",
"profile": "https://github.com/Savio629",
"contributions": [
"code"
]
},
{
"login": "jonaslagoni",
"name": "Jonas Lagoni",
"avatar_url": "https://avatars.githubusercontent.com/u/13396189?v=4",
"profile": "https://github.com/jonaslagoni",
"contributions": [
"code",
"ideas",
"review",
"test"
]
},
{
"login": "KhudaDad414",
"name": "Khuda Dad Nomani",
"avatar_url": "https://avatars.githubusercontent.com/u/32505158?v=4",
"profile": "https://github.com/KhudaDad414",
"contributions": [
"code",
"doc"
]
},
{
"login": "smoya",
"name": "Sergio Moya ",
"avatar_url": "https://avatars.githubusercontent.com/u/1083296?v=4",
"profile": "https://github.com/smoya",
"contributions": [
"code"
]
},
{
"login": "Vishal2002",
"name": "Vishal Sharma",
"avatar_url": "https://avatars.githubusercontent.com/u/35897449?v=4",
"profile": "https://github.com/Vishal2002",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
Expand All @@ -121,5 +345,6 @@
"repoType": "github",
"repoHost": "https://github.com",
"skipCi": false,
"commitConvention": "none"
"commitConvention": "angular",
"commitType": "docs"
}
14 changes: 14 additions & 0 deletions .asyncapi-tool
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
title: AsyncAPI CLI
description: |
One CLI to rule them all.
This is a CLI that aims to integrate all AsyncAPI tools that you need while AsyncAPI document development and maintainance.
You can use it to generate docs or code, validate AsyncAPI document and event create new documents.
links:
websiteUrl: https://www.asyncapi.com/tools/cli
filters:
technology:
- TypeScript
categories:
- others
- cli
hasCommercial: false
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
node_modules
dist
lib
/test/commands/generate/models/
test/helpers
/test/fixtures/minimaltemplate
create-glee-app
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
},
"overrides": [
{
"files": ["*.spec.ts", "*.spec.tsx", "src/help/command.ts"],
"files": ["*.spec.ts", "*.spec.tsx", "src/help/command.ts", "*.test.ts"],
"rules": {
"no-undef": "off",
"security/detect-non-literal-fs-filename": "off",
Expand Down
43 changes: 23 additions & 20 deletions .github/workflows/add-good-first-issue-labels.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
#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 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

#Purpose of this workflow is to enable anyone to label issue with 'Good First Issue' and 'area/*' with a single command.
# Purpose of this workflow is to enable anyone to label issue with 'Good First Issue' and 'area/*' with a single command.
name: Add 'Good First Issue' and 'area/*' labels # if proper comment added

on:
issue_comment:
types:
- created
on:
issue_comment:
types:
- created

jobs:
add-labels:
if: ${{!github.event.issue.pull_request && github.event.issue.state != 'closed' && github.actor != 'asyncapi-bot'}}
if: ${{(!github.event.issue.pull_request && github.event.issue.state != 'closed' && github.actor != 'asyncapi-bot') && (contains(github.event.comment.body, '/good-first-issue') || contains(github.event.comment.body, '/gfi' ))}}
runs-on: ubuntu-latest
steps:
- name: Add label
if: contains(github.event.comment.body, '/good-first-issue') || contains(github.event.comment.body, '/gfi' )
uses: actions/github-script@v5
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GH_TOKEN }}
script: |
const areas = ['javascript', 'typescript', 'java' , 'go', 'docs', 'ci-cd', 'design'];
const values = context.payload.comment.body.split(" ");
switch(values[1]){
const words = context.payload.comment.body.trim().split(" ");
const areaIndex = words.findIndex((word)=> word === '/gfi' || word === '/good-first-issue') + 1
let area = words[areaIndex];
switch(area){
case 'ts':
values[1] = 'typescript';
area = 'typescript';
break;
case 'js':
values[1] = 'javascript';
area = 'javascript';
break;
case 'markdown':
values[1] = 'docs';
area = 'docs';
break;
}
if(values.length != 2 || !areas.includes(values[1])){
if(!areas.includes(area)){
const message = `Hey @${context.payload.sender.login}, your message doesn't follow the requirements, you can try \`/help\`.`
await github.rest.issues.createComment({
Expand All @@ -42,14 +45,14 @@ jobs:
})
} else {
//remove complexity and areas if there are any before adding new labels;
// remove area if there is any before adding new labels.
const currentLabels = (await github.rest.issues.listLabelsOnIssue({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
})).data.map(label => label.name);
const shouldBeRemoved = currentLabels.filter(label => (label.startsWith('area/') && !label.endsWith(values[1])));
const shouldBeRemoved = currentLabels.filter(label => (label.startsWith('area/') && !label.endsWith(area)));
shouldBeRemoved.forEach(label => {
github.rest.issues.deleteLabel({
owner: context.repo.owner,
Expand All @@ -58,11 +61,11 @@ jobs:
});
});
//add new labels
// Add new labels.
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['good first issue', `area/${values[1]}`]
labels: ['good first issue', `area/${area}`]
});
}
Loading

0 comments on commit 1877382

Please sign in to comment.