Skip to content

feat: Cronトリガーノードを追加#131

Open
oboroge0 wants to merge 1 commit intomainfrom
feat/cron-trigger
Open

feat: Cronトリガーノードを追加#131
oboroge0 wants to merge 1 commit intomainfrom
feat/cron-trigger

Conversation

@oboroge0
Copy link
Copy Markdown
Owner

@oboroge0 oboroge0 commented Mar 9, 2026

Summary

  • Cron式でスケジュール実行するトリガーノードを新規追加
  • 標準5フィールドcron式に対応(分 時 日 月 曜日)
  • 外部ライブラリ不要の軽量cronパーサーを内蔵
  • タイムゾーン設定・有効/無効切り替え対応

cron式の例

説明
0 * * * * 毎時0分
0 9 * * * 毎日9:00
0 9 * * 1 毎週月曜9:00
*/5 * * * * 5分ごと
0 9,18 * * 1-5 平日9時と18時

変更内容

  • plugins/cron-trigger/ — プラグイン本体(manifest.json + node.ts)
  • apps/server-ts/src/engine/plugin-loader.ts — SOURCE_NODE_TYPESに追加
  • apps/web/locales/{en,ja}.json — ローカライズ追加
  • tests/plugins/cron-trigger.test.ts — cronパーサーのユニットテスト

Test plan

  • npm test — 全116テスト通過
  • bun test tests/plugins/ — cronパーサーテスト9件通過
  • npm run lint — 新規エラーなし
  • Cronトリガーノードを追加し、cron式設定UIが表示されることを確認
  • */1 * * * *(毎分)で設定し、1分ごとにトリガーが発火することを確認

closes #64

🤖 Generated with Claude Code

Cron式でスケジュール実行するトリガーノードを追加。
標準5フィールドcron式に対応し、外部ライブラリ不要の軽量パーサーを内蔵。

- プラグイン本体(manifest.json + node.ts)
- SOURCE_NODE_TYPESに登録(イベント駆動モードで動作)
- cronパーサーのユニットテスト(9件)
- 日英ローカライズ対応

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 9, 2026

Warning

Rate limit exceeded

@oboroge0 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 8 minutes and 2 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 38e767c6-82e7-4a9f-a624-1f01caa7a7b7

📥 Commits

Reviewing files that changed from the base of the PR and between b45d01e and 75fb1be.

📒 Files selected for processing (6)
  • apps/server-ts/src/engine/plugin-loader.ts
  • apps/web/locales/en.json
  • apps/web/locales/ja.json
  • plugins/cron-trigger/manifest.json
  • plugins/cron-trigger/node.ts
  • tests/plugins/cron-trigger.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/cron-trigger

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Cronトリガーノード(スケジュール実行)

1 participant