Skip to content

Commit

Permalink
add change-assignee-with-at
Browse files Browse the repository at this point in the history
  • Loading branch information
freeziyou committed Jan 31, 2024
1 parent 6593321 commit 09ad5d4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion server/tasks/lark/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def send_issue_card(issue_id):
message_id,
# 第一条话题消息,直接放repo_url
FeishuTextMessage(
users + f"{repo_url}/issues/{issue.issue_number}"
users + f" {repo_url}/issues/{issue.issue_number}"
),
reply_in_thread=True,
).json()
Expand Down Expand Up @@ -627,6 +627,16 @@ def change_issue_assignees(users, app_id, message_id, content, data, *args, **kw
*args,
**kwargs,
)

bot, _ = get_bot_by_application_id(app_id)
# at 修改后的负责人
users = "".join([f'<at user_id="{open_id}"></at>' for open_id in users])
repo_url = f"https://github.com/{team.name}/{repo.name}"
bot.reply(
message_id,
# 第一条话题消息,直接放repo_url
FeishuTextMessage(users + f" {repo_url}/issues/{issue.issue_number}"),
)
return response


Expand Down

0 comments on commit 09ad5d4

Please sign in to comment.