Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Jan 4, 2024
1 parent d6a41f3 commit 740df35
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions server/utils/lark/issue_manual_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ def __init__(
content="** 🏖️ 重新分配 Issue 负责人**\n*话题下回复「/assign + @成员」 **",
tag="lark_md",
extra=FeishuMessageSelectPerson(
*[
{
"value": person["open_id"],
}
for person in persons
],
*[FeishuMessageOption(value=open_id) for open_id in persons],
placeholder=",".join(assignees),
value={
"key": "value", # TODO 这里字段的意义需要再看一下,应该是已经选中的人员的openid
Expand Down Expand Up @@ -136,7 +131,9 @@ def __init__(
from dotenv import find_dotenv, load_dotenv

load_dotenv(find_dotenv())
message = IssueManualHelp(tags=["bug", "doc"])
message = IssueManualHelp(
persons=os.environ.get("TEST_USER_OPEN_ID").split(","), tags=["bug", "doc"]
)
print("message", json.dumps(message))
result = httpx.post(
os.environ.get("TEST_BOT_HOOK"),
Expand Down

0 comments on commit 740df35

Please sign in to comment.