[PR #588] [MERGED] feat: |Worker| NO_LIMIT_SEND_ROLE support multi role splited by ',' #646

Closed
opened 2026-02-26 21:32:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/588
Author: @dreamhunter2333
Created: 2/19/2025
Status: Merged
Merged: 2/22/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • 470b8e4 feat: |Worker| NO_LIMIT_SEND_ROLE support multi role splited by ','

📊 Changes

8 files changed (+24 additions, -10 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 vitepress-docs/docs/en/cli.md (+2 -1)
📝 vitepress-docs/docs/zh/guide/worker-vars.md (+1 -1)
📝 worker/src/admin_api/worker_config.ts (+2 -2)
📝 worker/src/mails_api/index.ts (+3 -2)
📝 worker/src/mails_api/send_mail_api.ts (+3 -2)
📝 worker/src/utils.ts (+10 -1)
📝 worker/wrangler.toml.template (+2 -1)

📄 Description

PR Type

enhancement, documentation


Description

  • Support for multiple roles in NO_LIMIT_SEND_ROLE using comma separation.

  • Added getSplitStringListValue utility function for splitting strings.

  • Updated relevant files to use getSplitStringListValue for NO_LIMIT_SEND_ROLE.

  • Documentation updates for the new NO_LIMIT_SEND_ROLE format.


Changes walkthrough 📝

Relevant files
Enhancement
worker_config.ts
Update NO_LIMIT_SEND_ROLE to support multiple roles           

worker/src/admin_api/worker_config.ts

  • Import getSplitStringListValue from utils.
  • Use getSplitStringListValue for NO_LIMIT_SEND_ROLE.
  • +2/-2     
    index.ts
    Enhance NO_LIMIT_SEND_ROLE handling in mails API                 

    worker/src/mails_api/index.ts

  • Import getSplitStringListValue from utils.
  • Use getSplitStringListValue for NO_LIMIT_SEND_ROLE.
  • +3/-2     
    send_mail_api.ts
    Support multiple roles in send mail API                                   

    worker/src/mails_api/send_mail_api.ts

  • Import getSplitStringListValue from utils.
  • Use getSplitStringListValue for NO_LIMIT_SEND_ROLE.
  • +3/-2     
    utils.ts
    Add utility function for splitting strings                             

    worker/src/utils.ts

  • Add getSplitStringListValue function to split strings by delimiter.
  • +10/-1   
    Documentation
    CHANGELOG.md
    Update changelog for NO_LIMIT_SEND_ROLE enhancement           

    CHANGELOG.md

    • Add entry for NO_LIMIT_SEND_ROLE multi-role support.
    +1/-0     
    cli.md
    Update CLI documentation for NO_LIMIT_SEND_ROLE                   

    vitepress-docs/docs/en/cli.md

    • Document new format for NO_LIMIT_SEND_ROLE.
    +2/-1     
    worker-vars.md
    Update worker vars documentation for NO_LIMIT_SEND_ROLE   

    vitepress-docs/docs/zh/guide/worker-vars.md

    • Document new format for NO_LIMIT_SEND_ROLE.
    +1/-1     
    wrangler.toml.template
    Update wrangler template for NO_LIMIT_SEND_ROLE                   

    worker/wrangler.toml.template

    • Document new format for NO_LIMIT_SEND_ROLE.
    +2/-1     

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.

  • 🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

    ## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/588 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 2/19/2025 **Status:** ✅ Merged **Merged:** 2/22/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`470b8e4`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/470b8e452012a3ec9a643ff04745ddd551c984ee) feat: |Worker| NO_LIMIT_SEND_ROLE support multi role splited by ',' ### 📊 Changes **8 files changed** (+24 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `vitepress-docs/docs/en/cli.md` (+2 -1) 📝 `vitepress-docs/docs/zh/guide/worker-vars.md` (+1 -1) 📝 `worker/src/admin_api/worker_config.ts` (+2 -2) 📝 `worker/src/mails_api/index.ts` (+3 -2) 📝 `worker/src/mails_api/send_mail_api.ts` (+3 -2) 📝 `worker/src/utils.ts` (+10 -1) 📝 `worker/wrangler.toml.template` (+2 -1) </details> ### 📄 Description ### **PR Type** enhancement, documentation ___ ### **Description** - Support for multiple roles in `NO_LIMIT_SEND_ROLE` using comma separation. - Added `getSplitStringListValue` utility function for splitting strings. - Updated relevant files to use `getSplitStringListValue` for `NO_LIMIT_SEND_ROLE`. - Documentation updates for the new `NO_LIMIT_SEND_ROLE` format. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>worker_config.ts</strong><dd><code>Update NO_LIMIT_SEND_ROLE to support multiple roles</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/admin_api/worker_config.ts <li>Import <code>getSplitStringListValue</code> from utils.<br> <li> Use <code>getSplitStringListValue</code> for <code>NO_LIMIT_SEND_ROLE</code>. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/588/files#diff-49df0a54d190cb8ea3788432fae88000683da8e61a5c4d0d184c8b7f0015a0ae">+2/-2</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>index.ts</strong><dd><code>Enhance NO_LIMIT_SEND_ROLE handling in mails API</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/mails_api/index.ts <li>Import <code>getSplitStringListValue</code> from utils.<br> <li> Use <code>getSplitStringListValue</code> for <code>NO_LIMIT_SEND_ROLE</code>. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/588/files#diff-83710df6a60b2b512e134f32ad9890ab9a255040f6019f0d5603f72f4561cea4">+3/-2</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>send_mail_api.ts</strong><dd><code>Support multiple roles in send mail API</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/mails_api/send_mail_api.ts <li>Import <code>getSplitStringListValue</code> from utils.<br> <li> Use <code>getSplitStringListValue</code> for <code>NO_LIMIT_SEND_ROLE</code>. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/588/files#diff-92070e9d7b3228209a2024053eb4429a76907de17f9566b97b22d0d12e4e0934">+3/-2</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>utils.ts</strong><dd><code>Add utility function for splitting strings</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/utils.ts <li>Add <code>getSplitStringListValue</code> function to split strings by delimiter. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/588/files#diff-87b77c56897ffc7830773b3d665c51ecf2210b44921bef7098a1dd6d64e56db6">+10/-1</a>&nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>CHANGELOG.md</strong><dd><code>Update changelog for NO_LIMIT_SEND_ROLE enhancement</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> CHANGELOG.md - Add entry for `NO_LIMIT_SEND_ROLE` multi-role support. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/588/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>cli.md</strong><dd><code>Update CLI documentation for NO_LIMIT_SEND_ROLE</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> vitepress-docs/docs/en/cli.md - Document new format for `NO_LIMIT_SEND_ROLE`. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/588/files#diff-3f8f72a691fa19c8581621e91cf67ad28855af7a57e58513f6563cf4c8886e5f">+2/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>worker-vars.md</strong><dd><code>Update worker vars documentation for NO_LIMIT_SEND_ROLE</code>&nbsp; &nbsp; </dd></summary> <hr> vitepress-docs/docs/zh/guide/worker-vars.md - Document new format for `NO_LIMIT_SEND_ROLE`. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/588/files#diff-1bd83b534dfb9159de9157e0943a1f5191373ecdb5af08552c8033464596d223">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>wrangler.toml.template</strong><dd><code>Update wrangler template for NO_LIMIT_SEND_ROLE</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/wrangler.toml.template - Document new format for `NO_LIMIT_SEND_ROLE`. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/588/files#diff-743273da72481b71fbeb1dddfd294be9249554eef65691dfc9bcfa9f0fd971fb">+2/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:32:12 +03:00
    Sign in to join this conversation.
    No milestone
    No project
    No assignees
    1 participant
    Notifications
    Due date
    The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

    No due date set.

    Dependencies

    No dependencies set.

    Reference
    starred/cloudflare_temp_email#646
    No description provided.