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

added text highlighting #9

Merged
merged 1 commit into from
Oct 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@ async function updateReadme(data) {

const { karma, completed_count, days_items, goals, week_items } = data;

const karmaPoint = [`🏆 ${Humanize.intComma(karma)} Karma Points`];
const karmaPoint = [`🏆 **${Humanize.intComma(karma)}** Karma Points`];
todoist.push(karmaPoint);

const dailyGoal = [
`🌸 Completed ${days_items[0].total_completed.toString()} tasks today`,
`🌸 Completed **${days_items[0].total_completed.toString()}** tasks today`,
];
todoist.push(dailyGoal);

if(PREMIUM) {
const weekItems = [`🗓 Completed ${week_items[0].total_completed.toString()} tasks this week`];
const weekItems = [`🗓 Completed **${week_items[0].total_completed.toString()}** tasks this week`];
todoist.push(weekItems);
}

const totalTasks = [`✅ Completed ${Humanize.intComma(completed_count)} tasks so far`];
const totalTasks = [`✅ Completed **${Humanize.intComma(completed_count)}** tasks so far`];
todoist.push(totalTasks);

const longestStreak = [
`⏳ Longest streak is ${goals.max_daily_streak.count} days`,
`⏳ Longest streak is **${goals.max_daily_streak.count}** days`,
];
todoist.push(longestStreak);

Expand Down