Skip to content

Commit

Permalink
feat: find repo
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Feb 1, 2024
1 parent de4fc5f commit 91ff2cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/tasks/lark/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from .base import (
get_bot_by_application_id,
get_chat_group_by_chat_id,
get_git_object_by_message_id,
get_repo_name_by_repo_id,
with_authenticated_github,
)
Expand Down Expand Up @@ -191,7 +192,7 @@ def create_issue(
try:
# 如果是在话题内运行命令(repo/issue/pull_request)尝试找到对应的repo
if len(repos) == 0:
root_id = args[1]["event"]["message"].get("root_id", "")
root_id = data["event"]["message"].get("root_id", "")
if root_id:
repo, issue, pr = tasks.get_git_object_by_message_id(root_id)
if repo:
Expand Down

0 comments on commit 91ff2cf

Please sign in to comment.