forked from JOJ/Joint-Teapot
		
	feat: joj3 issue show time
This commit is contained in:
		
							parent
							
								
									f85b20e197
								
							
						
					
					
						commit
						41d8167dc5
					
				|  | @ -196,12 +196,13 @@ def generate_title_and_comment( | ||||||
|             comment = stage["results"][0]["comment"] |             comment = stage["results"][0]["comment"] | ||||||
|             exercise_name = comment.split("-")[0] |             exercise_name = comment.split("-")[0] | ||||||
|     total_score = 0 |     total_score = 0 | ||||||
|  |     now = datetime.now().strftime("%Y-%m-%d %H:%M:%S") | ||||||
|     comment = ( |     comment = ( | ||||||
|         f"Generated from [Gitea Actions #{run_number}]({action_link}), " |         f"Generated at {now} from [Gitea Actions #{run_number}]({action_link}), " | ||||||
|         + f"commit {commit_hash}, " |         f"commit {commit_hash}, " | ||||||
|         + f"triggered by @{submitter}.\n" |         f"triggered by @{submitter}.\n" | ||||||
|         + "Powered by [JOJ3](https://github.com/joint-online-judge/JOJ3) and " |         "Powered by [JOJ3](https://github.com/joint-online-judge/JOJ3) and " | ||||||
|         + "[Joint-Teapot](https://github.com/BoYanZh/Joint-Teapot) with ❤️.\n" |         "[Joint-Teapot](https://github.com/BoYanZh/Joint-Teapot) with ❤️.\n" | ||||||
|     ) |     ) | ||||||
|     for stage in stages: |     for stage in stages: | ||||||
|         if all( |         if all( | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user