Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1d6848c

Browse filesBrowse files
committed
fix: avoid markdown render bold font
1 parent 0fa0fec commit 1d6848c
Copy full SHA for 1d6848c

File tree

2 files changed

+14
-3
lines changed
Filter options

2 files changed

+14
-3
lines changed

‎.github/workflows/summarize_progress.yml

Copy file name to clipboardExpand all lines: .github/workflows/summarize_progress.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
push:
55
branches:
66
- 'feat/summarize-table'
7-
schedule:
8-
- cron: '30 23 * * 5'
7+
# schedule:
8+
# - cron: '30 23 * * 5'
99

1010
jobs:
1111
ci:

‎.scripts/summarize_progress/main.py

Copy file name to clipboardExpand all lines: .scripts/summarize_progress/main.py
+12-1Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,18 @@ def format_issue_link(url: str) -> str:
103103

104104
def format_line_file(data: dict) -> str:
105105
global MAX_ASSIGNEE_LEN, MAX_FILENAME_LEN, MAX_PROGRESS_LEN, MAX_ISSUE_LEN
106-
return f"|{data['filename'].rjust(MAX_FILENAME_LEN, ' ')}|{data['progress'].ljust(MAX_PROGRESS_LEN, ' ')}|{format_issue_link(data['issue']).ljust(MAX_ISSUE_LEN, ' ')}|{data['assignee'].ljust(MAX_ASSIGNEE_LEN, ' ')}|\r\n"
106+
107+
filename_split = list(data['filename'])
108+
# Adding \\ to avoid Markdown rendering bold font
109+
if '_' in filename_split:
110+
add_index = [index for index, chac in enumerate(filename_split) if chac == "_"]
111+
add_index.sort(reverse=True)
112+
for index in add_index:
113+
filename_split.insert(index, '\\')
114+
115+
filename = ''.join(filename_split)
116+
117+
return f"|{filename.rjust(MAX_FILENAME_LEN, ' ')}|{data['progress'].ljust(MAX_PROGRESS_LEN, ' ')}|{format_issue_link(data['issue']).ljust(MAX_ISSUE_LEN, ' ')}|{data['assignee'].ljust(MAX_ASSIGNEE_LEN, ' ')}|\r\n"
107118

108119

109120
def format_line_directory(dirname: str) -> str:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.