File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ jobs:
2525
2626 TITLE=$(jq -r '.data.activeDailyCodingChallengeQuestion.question.title' response.json)
2727 TITLE_SLUG=$(jq -r '.data.activeDailyCodingChallengeQuestion.question.titleSlug' response.json)
28- LINK="https://leetcode.com/problems/${TITLE_SLUG}"
28+ LINK="https://leetcode.com/problems/${TITLE_SLUG}/description/?envType=daily-question "
2929 GITHUB_USERNAME="${{ github.actor }}"
3030
3131 # Create problem directory and note
3232 PROBLEM_DIR="problems/${PROBLEM_ID}"
3333 NOTE_FILE="${PROBLEM_DIR}/${GITHUB_USERNAME}.md"
3434 mkdir -p "${PROBLEM_DIR}"
35-
35+
3636 # Customize template and write to new file
3737 sed "s|<NUMBER>|${PROBLEM_ID}|g; s|<TITLE>|${TITLE}|g; s|<LINK TO DESCRIPTION>|${LINK}|g" problems/template.md > "${NOTE_FILE}"
3838
Original file line number Diff line number Diff line change 3636 problem_id = problem ['questionFrontendId' ]
3737 title = problem ['title' ]
3838 title_slug = problem ['titleSlug' ]
39- link = f"https://leetcode.com/problems/{ title_slug } "
39+ link = f"https://leetcode.com/problems/{ title_slug } /description/?envType=daily-question "
4040 difficulty = problem ['difficulty' ]
4141 difficulty_icon = "🟢" if difficulty == "Easy" else "🟡" if difficulty == "Medium" else "🔴"
4242 note_link = f"{ repo_url } /tree/main/problems/{ problem_id } "
You can’t perform that action at this time.
0 commit comments