forked from JOJ/Joint-Teapot
		
	feat: log gitea issue url
This commit is contained in:
		
							parent
							
								
									16cbd2b945
								
							
						
					
					
						commit
						51b79cc926
					
				|  | @ -1,7 +1,7 @@ | ||||||
| import os | import os | ||||||
| from datetime import datetime | from datetime import datetime | ||||||
| from pathlib import Path | from pathlib import Path | ||||||
| from typing import List | from typing import TYPE_CHECKING, List | ||||||
| 
 | 
 | ||||||
| from filelock import FileLock | from filelock import FileLock | ||||||
| from git import Repo | from git import Repo | ||||||
|  | @ -12,6 +12,9 @@ from joint_teapot.teapot import Teapot | ||||||
| from joint_teapot.utils import joj3 | from joint_teapot.utils import joj3 | ||||||
| from joint_teapot.utils.logger import logger, set_logger | from joint_teapot.utils.logger import logger, set_logger | ||||||
| 
 | 
 | ||||||
|  | if TYPE_CHECKING: | ||||||
|  |     import focs_gitea | ||||||
|  | 
 | ||||||
| app = Typer(add_completion=False) | app = Typer(add_completion=False) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -495,12 +498,12 @@ def joj3_all( | ||||||
|             submitter, |             submitter, | ||||||
|             commit_hash, |             commit_hash, | ||||||
|         ) |         ) | ||||||
|         res = tea.pot.gitea.issue_api.issue_create_issue( |         issue: focs_gitea.Issue = tea.pot.gitea.issue_api.issue_create_issue( | ||||||
|             tea.pot.gitea.org_name, |             tea.pot.gitea.org_name, | ||||||
|             submitter_repo_name, |             submitter_repo_name, | ||||||
|             body={"title": title, "body": comment}, |             body={"title": title, "body": comment}, | ||||||
|         ) |         ) | ||||||
|         gitea_issue_url = res["url"] |         gitea_issue_url = issue.url | ||||||
|         logger.info(f"gitea issue url: {gitea_issue_url}") |         logger.info(f"gitea issue url: {gitea_issue_url}") | ||||||
|     if skip_scoreboard and skip_failed_table: |     if skip_scoreboard and skip_failed_table: | ||||||
|         return |         return | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user