From 847598e5ef1b4027e99365a654745160e074102b Mon Sep 17 00:00:00 2001 From: AdeyinkaOresanya Date: Mon, 17 Jul 2023 14:34:00 +0100 Subject: [PATCH 1/5] Fix: fix broken links by replacing with updated links in actionResponse.js Signed-off-by: Adeyinka Oresanya adeyinkaoresanya@gmail.com Signed-off-by: AdeyinkaOresanya Signed-off-by: Omokiti --- components/actions/actionResponses.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/actions/actionResponses.js b/components/actions/actionResponses.js index 195a8c0..28d90f5 100644 --- a/components/actions/actionResponses.js +++ b/components/actions/actionResponses.js @@ -1,7 +1,7 @@ async function develop(say) { return await say( `You clicked *Develop Metrics* \n - There are 5 Working Groups that develop metrics based on different aspects of open source community health: Risk, Value, Evolution, DEI, and Common. More information about each of these groups can be found here: and the metrics are developed during our Working Group meetings. + There are 5 Working Groups that develop metrics based on different aspects of open source community health: Risk, Value, Evolution, DEI, and Common. More information about each of these groups can be found here: and the metrics are developed during our Working Group meetings. ` ); } @@ -9,7 +9,7 @@ async function develop(say) { async function joinMeet(say) { return await say( `You clicked *Join Meeting*\n - All CHAOSS meetings are open to everyone, and they happen virtually at We recommend a good first meeting is our Weekly Community Call (Every Tuesday at 11:00 am US Central/Chicago time) but you can see a calendar of all our meetings at https://chaoss.community/participate. + All CHAOSS meetings are open to everyone, and they happen virtually at We recommend a good first meeting is our Weekly Community Call (Every Tuesday at 11:00 am US Central/Chicago time) but you can see a calendar of all our meetings at https://chaoss.community/chaoss-calendar/. ` ); } @@ -24,7 +24,7 @@ async function contribute(say) { async function helpWithWebsite(say) { return await say( - `You clicked *Help with the Website*\n first step is getting to know our community! You can connect with us in any of the ways described in our Participate page here: https://chaoss.community/participate. + `You clicked *Help with the Website*\n first step is getting to know our community! You can connect with us in any of the ways described in our Participate page here: https://chaoss.community/kb-getting-started/. ` ); } @@ -40,14 +40,14 @@ async function docs(say) { async function implement_metrics(say) { return await say( `You clicked *Implement Metrics in my Project*\n - We encourage you to join one of our Working Groups for specific questions about implementing your metrics. You can read more about them here: https://chaoss.community/kbtopic/working-groups/.` + We encourage you to join one of our Working Groups for specific questions about implementing your metrics. You can read more about them here: https://handbook.chaoss.community/community-handbook/community-initiatives/working-groups.` ); } async function learn_something_else(say) { return await say( `You clicked *Learn About Something Else*\n - We encourage you to read through our Community Handbook: https://chaoss.community/kb-chaoss-community/, and if you still can't find what you're looking for, feel free to ask your question in our #newcomers slack channel.` + We encourage you to read through our Community Handbook: https://handbook.chaoss.community/, and if you still can't find what you're looking for, feel free to ask your question in our #newcomers slack channel.` ); } From cdfd5a8ac5a7820fedd711953c96badc98a21898 Mon Sep 17 00:00:00 2001 From: AdeyinkaOresanya Date: Mon, 17 Jul 2023 17:13:42 +0100 Subject: [PATCH 2/5] Chore: replace 'Participate page' with 'Getting Started page' in actionResponse.js Signed-off-by: Adeyinka Oresanya adeyinkaoresanya@gmail.com Signed-off-by: AdeyinkaOresanya Signed-off-by: Omokiti --- components/actions/actionResponses.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/actions/actionResponses.js b/components/actions/actionResponses.js index 28d90f5..37a363b 100644 --- a/components/actions/actionResponses.js +++ b/components/actions/actionResponses.js @@ -1,7 +1,7 @@ async function develop(say) { return await say( `You clicked *Develop Metrics* \n - There are 5 Working Groups that develop metrics based on different aspects of open source community health: Risk, Value, Evolution, DEI, and Common. More information about each of these groups can be found here: and the metrics are developed during our Working Group meetings. + There are 5 Working Groups that develop metrics based on different aspects of open source community health: Risk, Value, Evolution, DEI, and Common. More information about each of these groups can be found here: . The metrics are developed during our Working Group meetings. ` ); } @@ -24,7 +24,7 @@ async function contribute(say) { async function helpWithWebsite(say) { return await say( - `You clicked *Help with the Website*\n first step is getting to know our community! You can connect with us in any of the ways described in our Participate page here: https://chaoss.community/kb-getting-started/. + `You clicked *Help with the Website*\n first step is getting to know our community! You can connect with us in any of the ways described in our Getting Started page here: https://chaoss.community/kb-getting-started/. ` ); } From a53995036ca037ccfab96397b5bb65ae9e9f0844 Mon Sep 17 00:00:00 2001 From: Omokiti Date: Wed, 19 Jul 2023 17:56:03 +0100 Subject: [PATCH 3/5] feat:Add FAQs Signed-off-by: Omokiti --- app.js | 4 ++++ components/actions/actionResponses.js | 8 ++++++++ components/joinTeam.js | 16 ++++++++++++++++ components/newbie.js | 16 ++++++++++++++++ 4 files changed, 44 insertions(+) diff --git a/app.js b/app.js index 1b4f408..a78f665 100644 --- a/app.js +++ b/app.js @@ -93,6 +93,10 @@ app.action('learn_something_else', async ({ ack, say }) => { theActions.learn_something_else(say); }); +app.action('faqs', async ({ ack, say }) => { + await ack(); + theActions.faqs(say); +}); //****************************************** */ // When a user joins the team, the bot sends a DM to the newcommer asking them how they would like to contribute diff --git a/components/actions/actionResponses.js b/components/actions/actionResponses.js index 37a363b..c2edc3b 100644 --- a/components/actions/actionResponses.js +++ b/components/actions/actionResponses.js @@ -51,6 +51,13 @@ async function learn_something_else(say) { ); } +async function faqs(say) { + return await say( + `You clicked *FAQs*\n + We encourage you to read through our Frequently Asked Questions: https://handbook.chaoss.community/community-handbook/about/general-faq, and if you still can't find what you're looking for, feel free to ask your question in our #newcomers slack channel.` + ); +} + module.exports = { develop, joinMeet, @@ -59,4 +66,5 @@ module.exports = { helpWithWebsite, implement_metrics, learn_something_else, + faqs, }; diff --git a/components/joinTeam.js b/components/joinTeam.js index c4dea2c..afc6e37 100644 --- a/components/joinTeam.js +++ b/components/joinTeam.js @@ -139,6 +139,22 @@ async function joinTeamSlack(event, client, logger) { }, ], }, + { + type: 'actions', + elements: [ + { + type: 'button', + text: { + type: 'plain_text', + text: 'Go through the FAQs', + emoji: true, + }, + style: 'primary', + value: 'faqs', + action_id: 'faqs', + }, + ], + }, ], text: `Welcome to the team, <@${event.user.id}>! 🎉.`, }); diff --git a/components/newbie.js b/components/newbie.js index d4d0ea7..5dd6c6f 100644 --- a/components/newbie.js +++ b/components/newbie.js @@ -138,6 +138,22 @@ async function newHere(message, client, logger) { }, ], }, + { + type: 'actions', + elements: [ + { + type: 'button', + text: { + type: 'plain_text', + text: 'Go through the FAQs', + emoji: true, + }, + style: 'primary', + value: 'faqs', + action_id: 'faqs', + }, + ], + }, ], text: `Welcome to the team, <@${message.user}>! 🎉.`, }); From 4139361dcbca164054a795f55eed65d3aa489830 Mon Sep 17 00:00:00 2001 From: Omokiti Date: Wed, 19 Jul 2023 20:17:12 +0100 Subject: [PATCH 4/5] feat:Add FAQs item Signed-off-by: Omokiti --- components/actions/actionResponses.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/actions/actionResponses.js b/components/actions/actionResponses.js index c2edc3b..07e1676 100644 --- a/components/actions/actionResponses.js +++ b/components/actions/actionResponses.js @@ -66,5 +66,5 @@ module.exports = { helpWithWebsite, implement_metrics, learn_something_else, - faqs, + faqs }; From 721942932f00badbe76d71e2cbcc84f913d96250 Mon Sep 17 00:00:00 2001 From: Emamuzo Omokiti Date: Sun, 23 Jul 2023 10:52:02 +0100 Subject: [PATCH 5/5] fix:link the newcomers channel on slack Signed-off-by: Omokiti --- components/actions/actionResponses.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/actions/actionResponses.js b/components/actions/actionResponses.js index 0e39ac9..08d303a 100644 --- a/components/actions/actionResponses.js +++ b/components/actions/actionResponses.js @@ -47,7 +47,7 @@ async function implement_metrics(say) { async function learn_something_else(say) { return await say( `You clicked *Learn About Something Else*\n - We encourage you to read through our Community Handbook: https://handbook.chaoss.community/, and if you still can't find what you're looking for, feel free to ask your question in our #newcomers slack channel.` + We encourage you to read through our Community Handbook: https://handbook.chaoss.community/, and if you still can't find what you're looking for, feel free to ask your question in our <#C0207C3RETX> slack channel.` ); } @@ -55,7 +55,7 @@ async function learn_something_else(say) { async function faqs(say) { return await say( `You clicked *FAQs*\n - We encourage you to read through our Frequently Asked Questions: https://handbook.chaoss.community/community-handbook/about/general-faq, and if you still can't find what you're looking for, feel free to ask your question in our #newcomers slack channel.` + We encourage you to read through our Frequently Asked Questions: https://handbook.chaoss.community/community-handbook/about/general-faq, and if you still can't find what you're looking for, feel free to ask your question in our <#C0207C3RETX> slack channel.` ); }