Skip to content

Commit

Permalink
feat: log gitea issue url
Browse files Browse the repository at this point in the history
  • Loading branch information
BoYanZh committed Oct 27, 2024
1 parent 16cbd2b commit 51b79cc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions joint_teapot/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from datetime import datetime
from pathlib import Path
from typing import List
from typing import TYPE_CHECKING, List

from filelock import FileLock
from git import Repo
Expand All @@ -12,6 +12,9 @@
from joint_teapot.utils import joj3
from joint_teapot.utils.logger import logger, set_logger

if TYPE_CHECKING:
import focs_gitea

app = Typer(add_completion=False)


Expand Down Expand Up @@ -495,12 +498,12 @@ def joj3_all(
submitter,
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,
submitter_repo_name,
body={"title": title, "body": comment},
)
gitea_issue_url = res["url"]
gitea_issue_url = issue.url
logger.info(f"gitea issue url: {gitea_issue_url}")
if skip_scoreboard and skip_failed_table:
return
Expand Down

0 comments on commit 51b79cc

Please sign in to comment.