Skip to content

Commit

Permalink
ci(execute): add commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
SynodicMonth committed Jul 26, 2024
1 parent 717f1b9 commit 2281ed3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def dfs(curr_dir: str):
# create csv file if not exist
if not os.path.isfile(csv_path):
with open(csv_path, "w+") as f:
csv_writer = csv.DictWriter(f, fieldnames=["time"])
csv_writer = csv.DictWriter(f, fieldnames=["time", "commit"])
csv_writer.writeheader()

with open(csv_path, "r") as f:
Expand All @@ -185,7 +185,10 @@ def dfs(curr_dir: str):

test_time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")

commit_message = execute("git log -1 --pretty='%h %s'", exec_timeout)

result[-1]["time"] = test_time
result[-1]["commit"] = commit_message

for testcase in testcase_list:

Expand Down

0 comments on commit 2281ed3

Please sign in to comment.