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

Fixes #42 #48

Merged
merged 1 commit into from
Nov 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 17 additions & 0 deletions components/actions/constants/constants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"Outreachy":{
"status":false,
"activeStatement":"You clicked *Outreachy*\nThe Outreachy Application period is currently going on. Reach out to https://www.outreachy.org/ for more details.",
"notActiveStatement":"You clicked *Outreachy*\nThe Outreachy Application period has ended for our participation in this program this year. You can still join the CHAOSS community in any of the ways found on our Participate page here: https://chaoss.community/participate."
},
"GSoC":{
"status":false,
"activeStatement":"You clicked *Google Summer of Code*\nThe Google Summer of Code Application period is currently going on. Reach out to https://summerofcode.withgoogle.com/ for more details.",
"notActiveStatement":"You clicked *Google Summer of Code*\nThe Google Summer of Code Application period has ended for our participation in this program this year. You can still join the CHAOSS community in any of the ways found on our Participate page here: https://chaoss.community/participate."
},
"GSoD":{
"status":false,
"activeStatement":"You clicked *Google Season of Docs*\nWelcome! If you haven’t yet, please join the <#C03C239HN1F> Slack channel and take note of the pinned item at the top of the channel for more information about next steps.",
"notActiveStatement":"You clicked *Google Season of Docs*\nThe Google Season of Docs Application period has ended for our participation in this program this year. You can still join the CHAOSS community in any of the ways found on our Participate page here: https://chaoss.community/participate."
}
}
14 changes: 8 additions & 6 deletions components/actions/mentorshipResponses.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
const constantData = require('./constants/constants.json');

async function outreachy(say) {
let responseString = constantData.Outreachy.status ? constantData.Outreachy.activeStatement : constantData.Outreachy.notActiveStatement;
return await say(
`You clicked *Outreachy*\n
The Outreachy Application period has ended for our participation in this program this year. You can still join the CHAOSS community in any of the ways found on our Participate page here: https://chaoss.community/participate.`
responseString
);
}

async function gsoc(say) {
let responseString = constantData.GSoC.status ? constantData.GSoC.activeStatement : constantData.GSoC.notActiveStatement;
return await say(
`You clicked *Google Summer of Code*\n
The Google Summer of Code Application period has ended for our participation in this program this year. You can still join the CHAOSS community in any of the ways found on our Participate page here: https://chaoss.community/participate.`
responseString
);
}

async function gsod(say) {
let responseString = constantData.GSoD.status ? constantData.GSoD.activeStatement : constantData.GSoD.notActiveStatement;
return await say(
`You clicked *Google Season of Docs*\n
Welcome! If you haven’t yet, please join the <#C03C239HN1F> Slack channel and take note of the pinned item at the top of the channel for more information about next steps.`
responseString
);
}

Expand Down