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

feat: changelog endpoints #543

Merged
merged 9 commits into from
Jul 26, 2022
Merged

feat: changelog endpoints #543

merged 9 commits into from
Jul 26, 2022

Conversation

kanadgupta
Copy link
Member

@kanadgupta kanadgupta commented Jul 25, 2022

🚥 Fix #278 Fix RM-4888

🧰 Changes

Adds changelogs and changelogs:single endpoints. Per the refactors in #540, this is a really lightweight wrapper around existing functionality.

🧬 QA & Testing

This functionality is nearly identical to docs. Feel free to play around or just look at the tests!

Base automatically changed from split-out-fixtures to main July 25, 2022 23:53
Comment on lines +52 to +62
const readdirRecursive = folderToSearch => {
const filesInFolder = fs.readdirSync(folderToSearch, { withFileTypes: true });
const files = filesInFolder
.filter(fileHandle => fileHandle.isFile())
.map(fileHandle => path.join(folderToSearch, fileHandle.name));
const folders = filesInFolder.filter(fileHandle => fileHandle.isDirectory());
const subFiles = [].concat(
...folders.map(fileHandle => readdirRecursive(path.join(folderToSearch, fileHandle.name)))
);
return [...files, ...subFiles];
};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a small DRY opportunity but I'll pick this up once all the commands are finished.

@kanadgupta kanadgupta added enhancement New feature or request command:docs Issues pertaining to the `docs`, `changelogs`, or `custompages` commands labels Jul 25, 2022
@kanadgupta kanadgupta marked this pull request as ready for review July 25, 2022 23:56
@kanadgupta kanadgupta requested a review from erunion July 25, 2022 23:56
@kanadgupta kanadgupta merged commit 9d1bcec into main Jul 26, 2022
@kanadgupta kanadgupta deleted the changelog-take-2 branch July 26, 2022 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command:docs Issues pertaining to the `docs`, `changelogs`, or `custompages` commands enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for changelog endpoints
2 participants