Skip to content

Commit

Permalink
feat: 修复发现项目卡片链接
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Jan 6, 2024
1 parent a118689 commit 83f052d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions server/tasks/lark/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,17 @@ def send_detect_repo(repo_id, app_id, open_id=""):
.first()
)
if repo:
bot, _ = get_bot_by_application_id(app_id)
bot, application = get_bot_by_application_id(app_id)
team = (
db.session.query(Team)
.filter(
Team.id == application.team_id,
)
.first()
)
message = ManageRepoDetect(
# TODO 这里需要使用team.name + repo_name拼接url
repo_url="https://github.com/ConnectAI-E/GitMaya",
repo_url=f"https://github.com/{team.name}/{repo.name}",
repo_name=repo.name,
repo_description=repo.description,
repo_topic=repo.extra.get("topic", []),
Expand Down

0 comments on commit 83f052d

Please sign in to comment.