Skip to content

Conversation

@ChmaraX
Copy link
Contributor

@ChmaraX ChmaraX commented Jan 30, 2026

This pull request makes a small change to the should-halt-on-step-failure.ts utility function, improving the handling of jobs that may not have a defined type property. The update ensures that the function only checks for action step types when job.type is present, making the logic more robust.

This pull request contains changes generated by a Cursor Cloud Agent

Open in Cursor Open in Web

@cursor
Copy link
Contributor

cursor bot commented Jan 30, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@netlify
Copy link

netlify bot commented Jan 30, 2026

Deploy Preview for dashboard-v2-novu-staging canceled.

Name Link
🔨 Latest commit e7ed9b0
🔍 Latest deploy log https://app.netlify.com/projects/dashboard-v2-novu-staging/deploys/697ccd8fe22b840008e5c57b

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 30, 2026

Warning

Rate limit exceeded

@ChmaraX has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 19 minutes and 47 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.


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
Contributor

github-actions bot commented Jan 30, 2026

Hey there and thank you for opening this pull request! 👋

We require pull request titles to follow specific formatting rules and it looks like your proposed title needs to be adjusted.

Your PR title is: refactor(worker): simplify step halt return condition

Requirements:

  1. Follow the Conventional Commits specification
  2. As a team member, include Linear ticket ID at the end: fixes TICKET-ID or include it in your branch name

Expected format: feat(scope): Add fancy new feature fixes NOV-123

Details:

PR title must end with 'fixes TICKET-ID' (e.g., 'fixes NOV-123') or include ticket ID in branch name

@ChmaraX ChmaraX changed the title ShouldHaltOnStepFailure logic refactor(worker): simplify step halt return condition Jan 30, 2026
@ChmaraX ChmaraX requested a review from Copilot January 30, 2026 15:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors shouldHaltOnStepFailure to simplify the halt decision logic by collapsing the job.type early-return into a single guarded condition.

Changes:

  • Removes the explicit !job.type early return.
  • Guards the isActionStepType check with job.type in a single conditional.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

* Action steps always stop on failure across all versions (v1 & v2)
*/
if (isActionStepType(job.type)) {
if (job.type && isActionStepType(job.type)) {
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description says this change improves robustness by only calling isActionStepType when job.type is present, but the previous implementation already short-circuited on !job.type. If there’s no intended behavior change here, consider updating the PR description to reflect that this is a refactor/simplification only (or add a note if a subtle behavior/typing issue was being addressed).

Copilot uses AI. Check for mistakes.
@ChmaraX ChmaraX merged commit 3a3503b into next Jan 30, 2026
35 of 38 checks passed
@ChmaraX ChmaraX deleted the refactor/A-duplicate-return-3x9k branch January 30, 2026 15:34
atlonxp added a commit to atlonxp/renovu that referenced this pull request Jan 31, 2026
Merged 4 upstream commits:
- refactor(worker): simplify step halt return condition (novuhq#9947)
- refactor(api-service): make context required parameter for subscriber JWT (novuhq#9943)
- refactor(api-service): add type annotations to updateServices method parameters (novuhq#9945)
- refactor(worker): add type annotation to getIntegrationHandler parameter (novuhq#9946)

Kept ReNovu feature unlocks for self-hosted deployments:
- Settings page accessible
- Environments page accessible
- Settings menu in sidebar

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants