Skip to content

Commit 4a1825c

Browse files
authored
Removed lines that relates to fetching commit status
1 parent 05affd4 commit 4a1825c

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

.bin/get-and-patch-readme-repository-details.py

+1-18
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,8 @@
5050
eta_lower_bound=int(str(size/5000/60).split('.')[0]) # Get whole number after decimal point
5151
eta_upper_bound=eta_lower_bound+1
5252

53-
commit_author=""
54-
commit_hash=""
55-
commit_date=""
56-
57-
commits=requests.get(REPOSITORY_COMMITS_API%(REPOSITORY)).json()
58-
59-
for commit in commits:
60-
if commit["commit"]["message"].startswith("Merge pull request") and commit["commit"]["committer"]=="Github":
61-
continue
62-
63-
if commit["commit"]["message"]=="[Github Action] Automated readme update." and commit["commit"]["committer"]=="GitHub Action":
64-
continue
65-
66-
commit_author=commit['commit']['author']['name']
67-
commit_hash=commit['sha']
68-
commit_date=commit['commit']['author']['date'].split('T')[0]
69-
7053
REPOSITORY_COMMIT_URL=REPOSITORY_COMMIT_URL%(REPOSITORY,commit_hash)
71-
DETAIL_USER_NOTICE_STRING=DETAIL_USER_NOTICE_STRING%(DETAILS_ANCHOR,final_size,REPOSITORY_COMMIT_URL,commit_date,commit_author,eta_lower_bound,eta_upper_bound,DETAILS_ANCHOR)
54+
DETAIL_USER_NOTICE_STRING=DETAIL_USER_NOTICE_STRING%(DETAILS_ANCHOR,final_size,eta_lower_bound,eta_upper_bound,DETAILS_ANCHOR)
7255

7356
readme_contents=open("README.md").read()
7457

0 commit comments

Comments
 (0)