Skip to content

feat(im): add support for IM urgent messages.#1153

Merged
YangJunzhou-01 merged 1 commit into
larksuite:mainfrom
YangJunzhou-01:feat/im-urgent-apis
May 28, 2026
Merged

feat(im): add support for IM urgent messages.#1153
YangJunzhou-01 merged 1 commit into
larksuite:mainfrom
YangJunzhou-01:feat/im-urgent-apis

Conversation

@YangJunzhou-01
Copy link
Copy Markdown
Collaborator

@YangJunzhou-01 YangJunzhou-01 commented May 28, 2026

Summary

Add support for IM urgent messages.

Changes

  • Added app urgent message support: messages.urgent_app
  • Added SMS urgent message support: messages.urgent_sms
  • Added phone urgent message support: messages.urgent_phone
  • Added related scope entries to the IM skill.

Verification

  • lark-cli schema im.messages.urgent_app
  • lark-cli schema im.messages.urgent_sms
  • lark-cli schema im.messages.urgent_phone
  • Sent a test bot message and verified app/SMS/phone urgent calls all returned code: 0.

Related Issues

Summary by CodeRabbit

Release Notes

  • New Features

    • Added urgent messaging capabilities to the IM skill, enabling notifications via app, phone, and SMS channels.
    • Introduced emoji-reply management features.
  • Documentation

    • Updated IM skill documentation with new resource methods and corresponding permissions.

Review Change Stack

@github-actions github-actions Bot added domain/im PR touches the im domain size/M Single-domain feat or fix with limited business impact labels May 28, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 28, 2026

📝 Walkthrough

Walkthrough

Updated IM skill documentation to describe emoji-reply management capabilities. Added three new resource methods (urgent_app, urgent_phone, urgent_sms) with bot-only identity requirements and sender/presence constraints. Extended permissions table with corresponding scopes and reordered scope rows.

Changes

IM Skill Documentation Extended

Layer / File(s) Summary
IM skill documentation: urgent message methods and scopes
skills/lark-im/SKILL.md
Skill description mentions emoji-reply management. Three new urgent-message resource methods (urgent_app, urgent_phone, urgent_sms) documented as bot-only with sender and conversation-presence prerequisites. Permissions table adds im:message.urgent* scopes and reorders threads.forward relative to reactions.* rows.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

  • larksuite/cli#689: Modifies the same permission/scope table rows in skills/lark-im/SKILL.md, particularly around threads.forward ordering.

Suggested reviewers

  • haozhenghua-code
  • liangshuo-1
  • jackie3927

Poem

🐰 Three urgent paths now shine so bright,
emoji-replies set just right,
Bot-only messengers stand tall,
Scopes aligned for one and all! 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat(im): add support for IM urgent messages' clearly and concisely summarizes the main change—adding urgent message support to the IM skill.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The PR description includes all required sections with relevant content: Summary, Changes, Verification, and Related Issues are all present and complete.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

🚀 PR Preview Install Guide

🧰 CLI update

npm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@0ec2e84969a7adc5aa6f5f561276818ffcaf6f2b

🧩 Skill update

npx skills add YangJunzhou-01/cli#feat/im-urgent-apis -y -g

@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.63%. Comparing base (3cd84fc) to head (0ec2e84).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1153      +/-   ##
==========================================
- Coverage   68.64%   68.63%   -0.01%     
==========================================
  Files         625      625              
  Lines       58389    58389              
==========================================
- Hits        40079    40076       -3     
- Misses      15023    15026       +3     
  Partials     3287     3287              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Change-Id: Ide2416af6d3d47d35cfd4c60b31e2137889081c6
@YangJunzhou-01 YangJunzhou-01 merged commit 8d496b8 into larksuite:main May 28, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain/im PR touches the im domain size/M Single-domain feat or fix with limited business impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

能支持一下飞书加急消息吗

2 participants