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: Add updatedAt field in metadata #628

Merged
merged 6 commits into from
Jan 9, 2024

Conversation

Feverqwe
Copy link
Contributor

No description provided.

@Feverqwe Feverqwe requested review from moki and 3y3 December 27, 2023 08:46
try {
contentIncludeFile = await readFile(relativeIncludeFilePath, 'utf8');
} catch (err) {
if (err.code === 'ENOENT') {
Copy link
Member

Choose a reason for hiding this comment

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

Почему отсутствие файла в этом месте норма?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Потому что мы собираем инклуды без учета условий из var переменных, как и в случае с авторами, это допущение

const lines = part.trim().split(/\n/);
const committerDate = lines.shift();
const unixtime = Number(committerDate);
for (let i = 0, len = lines.length; i < len; i++) {
Copy link
Member

Choose a reason for hiding this comment

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

Array.forEach

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ну.. можно и так, хотя for мне больше нравится

);

const parts = timeFiles.split(/\n\n/);
while (parts.length) {
Copy link
Member

Choose a reason for hiding this comment

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

Array.forEach


const relativeFilePath = tmpInputFilePath.substring(inputFolderPathLength + 1);

if (isContributorsEnabled && vcsConnector) {
Copy link
Member

Choose a reason for hiding this comment

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

Зачем основная логика под if, а в конце return undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

да чет там было уже в функции выше, переделаю

@Feverqwe Feverqwe requested a review from 3y3 January 9, 2024 09:53
@Feverqwe Feverqwe changed the title Add updatedAt field in metadata feat: Add updatedAt field in metadata Jan 9, 2024
@Feverqwe Feverqwe merged commit 63f6f5e into master Jan 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants