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

Fix/ci #5398

Merged
merged 15 commits into from Dec 20, 2022
Merged

Fix/ci #5398

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 11 additions & 3 deletions bin/injectContributorsList.js
Expand Up @@ -28,10 +28,18 @@ const injectContributors = async (infile, injector) => {
tag = nextTag;
index = offset + match.length;

if(currentTag && !hasContributorsSection) {
console.log(`Adding contributors for ${currentTag}`);
if(currentTag) {
if (hasContributorsSection) {
console.log(`[${currentTag}]: found contribution section`);
} else {
const section = await injector(currentTag);

return (await injector(currentTag)) + match;
console.log(`[${currentTag}]: contribution section not found. Adding...`);

console.log(section);

return section + match;
}
}

return match;
Expand Down