-
Notifications
You must be signed in to change notification settings - Fork 38
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
Conversation
try { | ||
contentIncludeFile = await readFile(relativeIncludeFilePath, 'utf8'); | ||
} catch (err) { | ||
if (err.code === 'ENOENT') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему отсутствие файла в этом месте норма?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Потому что мы собираем инклуды без учета условий из var переменных, как и в случае с авторами, это допущение
src/vcs-connector/github.ts
Outdated
const lines = part.trim().split(/\n/); | ||
const committerDate = lines.shift(); | ||
const unixtime = Number(committerDate); | ||
for (let i = 0, len = lines.length; i < len; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array.forEach
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ну.. можно и так, хотя for мне больше нравится
src/vcs-connector/github.ts
Outdated
); | ||
|
||
const parts = timeFiles.split(/\n\n/); | ||
while (parts.length) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array.forEach
src/services/metadata.ts
Outdated
|
||
const relativeFilePath = tmpInputFilePath.substring(inputFolderPathLength + 1); | ||
|
||
if (isContributorsEnabled && vcsConnector) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем основная логика под if, а в конце return undefined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
да чет там было уже в функции выше, переделаю
No description provided.