Skip to content

Commit

Permalink
Refactor : Update update_recent_works.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimgabe authored Feb 12, 2024
1 parent c00ee0c commit 9302691
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/scripts/update_recent_works.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
for commit in commits:
files = commit.files
for file in files:
if ".DS_Store" in file.filename or file.filename.endswith("README.md"):
# README.md, .DS_Store 파일 및 .github 폴더에 대한 커밋 제외
if ".DS_Store" in file.filename or file.filename.endswith("README.md") or file.filename.startswith(".github/"):
continue
file_key = (file.filename, commit.commit.author.name) # 파일명과 작업자 이름을 키로 사용
if file_key not in unique_updates:
Expand All @@ -40,6 +41,8 @@
if current_commit_date > existing_commit_date:
unique_updates[file_key] = commit



# 최근 업데이트 정보를 표 형식으로 추가
table_header = "| 날짜 | 분류 | 작업명 | 링크 | 작업자 | Commit 유형 |\n| --- | --- | --- | --- | --- | --- |\n"
table_rows = [f"| {v[0]} | {v[1]} | {v[2]} | [View]({v[3]}) | {v[4]} | {v[5]} |" for v in unique_updates.values()]
Expand Down

0 comments on commit 9302691

Please sign in to comment.