Skip to content

Commit 6b974ce

Browse files
authored
Merge branch 'master' into adding-list-of-contributions
2 parents fed1189 + 095cb4a commit 6b974ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+133
-137
lines changed

.github/workflows/mailing/index.js

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
const mailer = require('@sendgrid/mail');
1+
const { Client } = require('node-mailjet')
22
const { htmlMailContent, htmlToText } = require('./content');
33

4-
mailer.setApiKey(process.env.SENDGRID_API_KEY);
4+
const mailjet = new Client({
5+
apiKey: process.env.MAILJET_API_KEY,
6+
apiSecret: process.env.MAILJET_API_SECRET
7+
})
8+
59
const from = 'info@asyncapi.io';
610

711
const sendMail = async (to, type, name, links, title, custom = {}) => {
@@ -12,21 +16,35 @@ const sendMail = async (to, type, name, links, title, custom = {}) => {
1216
console.debug(`Sending mail with text: ${text}`);
1317
console.debug(`Sending mail with text in html: ${html}`);
1418

15-
const msg = {
16-
to,
17-
from,
18-
subject,
19-
text,
20-
html,
21-
};
19+
const data = {
20+
Messages: [
21+
{
22+
From: {
23+
Email: from,
24+
},
25+
To: [
26+
{
27+
Email: to,
28+
},
29+
],
30+
Subject: subject,
31+
HTMLPart: html,
32+
TextPart: text
33+
},
34+
],
35+
}
2236

2337
try {
24-
const response = await mailer.send(msg);
38+
const response = await mailjet
39+
.post('send', { version: 'v3.1' })
40+
.request(data);
41+
42+
const { Status, Errors } = response.body.Messages[0]
2543

2644
return {
27-
success: response[0].statusCode === 202,
28-
message: response[0].body,
29-
};
45+
success: Status === 'success',
46+
message: Errors,
47+
}
3048
} catch (error) {
3149
console.error(error);
3250
}

.github/workflows/notify-tsc-members-mention.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ jobs:
6666
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
6767
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
6868
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
69-
TITLE: ${{github.event.issue.title}}
69+
TITLE: ${{ github.event.issue.title }}
7070
with:
7171
script: |
7272
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
73-
sendEmail('${{github.event.issue.html_url}}', '$TITLE');
73+
sendEmail('${{github.event.issue.html_url}}', process.env.TITLE);
7474
7575
pull_request:
7676
if: github.event_name == 'pull_request_target' && contains(github.event.pull_request.body, '@asyncapi/tsc_members')
@@ -112,11 +112,11 @@ jobs:
112112
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
113113
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
114114
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
115-
TITLE: ${{github.event.pull_request.title}}
115+
TITLE: ${{ github.event.pull_request.title }}
116116
with:
117117
script: |
118118
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
119-
sendEmail('${{github.event.pull_request.html_url}}', '$TITLE');
119+
sendEmail('${{github.event.pull_request.html_url}}', process.env.TITLE);
120120
121121
discussion:
122122
if: github.event_name == 'discussion' && contains(github.event.discussion.body, '@asyncapi/tsc_members')
@@ -158,11 +158,11 @@ jobs:
158158
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
159159
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
160160
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
161-
TITLE: ${{github.event.discussion.title}}
161+
TITLE: ${{ github.event.discussion.title }}
162162
with:
163163
script: |
164164
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
165-
sendEmail('${{github.event.discussion.html_url}}', '$TITLE');
165+
sendEmail('${{github.event.discussion.html_url}}', process.env.TITLE);
166166
167167
issue_comment:
168168
if: ${{ github.event_name == 'issue_comment' && !github.event.issue.pull_request && contains(github.event.comment.body, '@asyncapi/tsc_members') }}
@@ -204,11 +204,11 @@ jobs:
204204
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
205205
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
206206
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
207-
TITLE: ${{github.event.issue.title}}
207+
TITLE: ${{ github.event.issue.title }}
208208
with:
209209
script: |
210210
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
211-
sendEmail('${{github.event.comment.html_url}}', '$TITLE');
211+
sendEmail('${{github.event.comment.html_url}}', process.env.TITLE);
212212
213213
pr_comment:
214214
if: github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@asyncapi/tsc_members')
@@ -250,11 +250,11 @@ jobs:
250250
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
251251
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
252252
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
253-
TITLE: ${{github.event.issue.title}}
253+
TITLE: ${{ github.event.issue.title }}
254254
with:
255255
script: |
256256
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
257-
sendEmail('${{github.event.comment.html_url}}', '$TITLE');
257+
sendEmail('${{github.event.comment.html_url}}', process.env.TITLE);
258258
259259
discussion_comment:
260260
if: github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@asyncapi/tsc_members')
@@ -296,8 +296,8 @@ jobs:
296296
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
297297
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
298298
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
299-
TITLE: ${{github.event.discussion.title}}
299+
TITLE: ${{ github.event.discussion.title }}
300300
with:
301301
script: |
302302
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
303-
sendEmail('${{github.event.comment.html_url}}', '$TITLE');
303+
sendEmail('${{github.event.comment.html_url}}', process.env.TITLE);

.github/workflows/vote-notify.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,15 @@ jobs:
7474
7575
# Needed as axios and js-yaml are not available in the default environment
7676
- name: Install the dependencies
77-
run: npm install js-yaml@4.1.0 axios@1.7.4 @sendgrid/mail@8.1.4
77+
run: npm install js-yaml@4.1.0 axios@1.7.4 node-mailjet@6.0.9
7878
shell: bash
7979

8080
- name: Notify TSC Members
8181
uses: actions/github-script@v7
8282
id: notify
8383
env:
84-
SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
84+
MAILJET_API_KEY: ${{ secrets.MAILJET_PUBLIC_KEY}}
85+
MAILJET_API_SECRET: ${{ secrets.MAILJET_PRIVATE_KEY }}
8586
# default to 'both' if inputs.notification_method is undefined (schedule runs)
8687
NOTIFY_METHOD: ${{ github.event.inputs.notification_method || 'both' }}
8788
SLACK_DM: ${{ secrets.SLACK_DM_TSC }}

CODE_OF_CONDUCT.md

Lines changed: 23 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,46 @@
1-
# AsyncAPI Code of Conduct
2-
3-
## Introduction
4-
Welcome to our community! We are a diverse group of individuals united by our passion for open source and commitment to inclusivity.
5-
6-
Our community promotes and supports inclusivity, welcoming individuals from all backgrounds and experiences. We believe that diversity is our strength, and we actively seek participation from those who enhance it.
7-
8-
Our Code of Conduct governs how we behave publicly or privately when representing the project. It ensures that diverse groups collaborate for mutual advantage and enjoyment and challenges prejudice that could jeopardize anyone's participation in the project.
9-
10-
We expect everyone in our community to treat each other with kindness, empathy, and respect. We believe fostering a welcoming and respectful environment can create a positive and successful community.
1+
# Contributor Covenant Code of Conduct
112

123
## Our Pledge
134

14-
As members, contributors, and admins of our community, we pledge to ensure that every individual is treated with respect and dignity. We pledge to create a safe, inclusive, and welcoming environment that is free from any form of harassment or discrimination regardless of differences in age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
15-
16-
We pledge to encourage a diverse, healthy community that celebrates individuality and promotes equality. We will act and interact in ways that promote openness, empathy, understanding, and acceptance of everyone's unique perspectives and experiences.
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
176

187
## Our Standards
198

20-
### Examples of behavior that contributes to a positive environment for our community include:
9+
Examples of behavior that contributes to creating a positive environment include:
2110

22-
- Using welcoming and inclusive language.
23-
- Being respectful of differing viewpoints and experiences.
24-
- Gracefully accepting constructive criticism.
25-
- Focusing on what is best for the community.
26-
- Showing empathy towards other community members.
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
2716

28-
### Examples of unacceptable behavior include:
17+
Examples of unacceptable behavior by participants include:
2918

30-
- The use of sexualized language or imagery and unwelcome sexual attention or advances.
31-
- Trolling, insulting/derogatory comments, and personal or political attacks.
32-
- Public or private harassment.
33-
- Publishing others' private information, such as a physical or electronic address, without explicit permission.
34-
- Publishing content or comments that promote illegal activities.
35-
- Violence, threats of violence, or violent language.
36-
- Other conduct that could reasonably be considered inappropriate in a professional setting.
19+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
- Trolling, insulting/derogatory comments, and personal or political attacks
21+
- Public or private harassment
22+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
- Other conduct which could reasonably be considered inappropriate in a professional setting
3724

38-
## Scope
39-
40-
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
25+
## Our Responsibilities
4126

42-
## Enforce Responsibilities
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
4328

44-
The Code of Conduct Committee (CoC Committee) responds to, investigates, and resolves AsyncAPI Incidents. The Committee is responsible for clarifying the standards of acceptable behavior and taking appropriate and fair corrective action in response to unacceptable behavior.
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
4530

46-
The Committee has the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that do not align with this Code of Conduct. The Committee may also temporarily or permanently ban any contributor for inappropriate, threatening, offensive, or harmful behaviors to the community.
31+
## Scope
4732

48-
For more details, please see the [CoC Committee and Incident Resolution Procedure](https://github.com/asyncapi/community/tree/master/code_of_conduct).
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
4934

5035
## Enforcement
5136

52-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at conduct@asyncapi.io. All complaints will be reviewed and investigated promptly and fairly.
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at fmvilas@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
5338

54-
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
55-
56-
## Enforcement Guidelines
57-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
58-
59-
### 1. Correction
60-
Community Impact: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
61-
62-
Consequence: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
63-
64-
### 2. Warning
65-
Community Impact: A violation through a single incident or series of actions.
66-
67-
Consequence: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
68-
69-
### 3. Temporary Ban
70-
Community Impact: A serious violation of community standards, including sustained inappropriate behavior.
71-
72-
Consequence: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
73-
74-
### 4. Permanent Ban
75-
Community Impact: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
76-
77-
Consequence: A permanent ban from any sort of public interaction within the community.
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
7840

7941
## Attribution
8042

81-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [http://contributor-covenant.org/version/2/1][version].
82-
83-
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
8444

8545
[homepage]: http://contributor-covenant.org
86-
[version]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
87-
[Mozilla CoC]: https://github.com/mozilla/inclusion
46+
[version]: http://contributor-covenant.org/version/1/4/

docs/000-onboarding/_section.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
title: Onboarding
3-
weight: 10
2+
title: 'Onboarding'
3+
weight: 2
44
---

docs/000-onboarding/documentarian-onboarding-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Documentarian Onboarding Guide
3-
# weight: 30
3+
weight: 30
44
---
55

66
🚧 This document is under construction.

docs/000-onboarding/how-to-contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: How to Contribute
3-
# weight: 20
3+
weight: 20
44
---
55

66
🚧 This document is under construction.

docs/000-onboarding/index.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Introduction
3-
weight: 5
3+
weight: 2
44
---
55
## Technical writer onboarding guide
66

@@ -17,6 +17,3 @@ The goal is providing docs contributors with the necessary tools and knowledge t
1717
* Implement and propose updates to our documentation.
1818
* Obtain and incorporate reviewers' feedback.
1919
* Publish changes successfully.
20-
21-
22-

docs/000-onboarding/where-to-contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Where to Contribute
3-
# weight: 10
3+
weight: 10
44
---
55

66
🚧 This document is under construction.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
title: Contribution Guidelines
3-
weight: 20
2+
title: 'Contribution Guidelines'
3+
weight: 3
44
---

0 commit comments

Comments
 (0)