diff --git a/handbook/ceo.md b/handbook/ceo.md
index b65d8b3edd..50ce2e36e1 100644
--- a/handbook/ceo.md
+++ b/handbook/ceo.md
@@ -310,8 +310,7 @@ When processing new requests from this channel, consider this:
- 12:30 PM /beginning of "reserved block"
- 6:30 PM /post-mortem days meetings
-
-
+
diff --git a/handbook/company/ceo-rituals.yml b/handbook/company/ceo.rituals.yml
similarity index 100%
rename from handbook/company/ceo-rituals.yml
rename to handbook/company/ceo.rituals.yml
diff --git a/website/scripts/create-issues-for-todays-rituals.js b/website/scripts/create-issues-for-todays-rituals.js
index 1da5b54fc0..b0782a892b 100644
--- a/website/scripts/create-issues-for-todays-rituals.js
+++ b/website/scripts/create-issues-for-todays-rituals.js
@@ -22,13 +22,20 @@ module.exports = {
'Authorization': `token ${sails.config.custom.githubAccessToken}`
};
- let ritualSources = [
- { path: 'handbook/company/rituals.yml', },
- ];
- for (let ritualSource of ritualSources) {
+ // Find all the files in the top level /handbook folder and it's sub-folders
+ let FILES_IN_HANDBOOK_FOLDER = await sails.helpers.fs.ls.with({
+ dir: path.join(topLvlRepoPath, '/handbook'),
+ depth: 3
+ });
+ // Filter the list of filenames to get the rituals YAML files.
+ let ritualYamlPaths = FILES_IN_HANDBOOK_FOLDER.filter((filePath)=>{
+ return _.endsWith(filePath, 'rituals.yml');
+ });
+
+ for (let ritualSource of ritualYamlPaths) {
// Load rituals
- let pathToRituals = path.resolve(topLvlRepoPath, ritualSource.path);
+ let pathToRituals = path.resolve(topLvlRepoPath, ritualSource);
let rituals = [];
let ritualsYml = await sails.helpers.fs.read(pathToRituals);
try {