Skip to content

Conversation

@myftija
Copy link
Collaborator

@myftija myftija commented Dec 16, 2025

Useful to retry failures manually.

@changeset-bot
Copy link

changeset-bot bot commented Dec 16, 2025

⚠️ No Changeset found

Latest commit: ab75395

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 16, 2025

Walkthrough

This pull request modifies .github/workflows/publish.yml to add repository_dispatch as an event trigger alongside the existing workflow_call and push triggers. The addition enables the workflow to be invoked via repository dispatch events and utilizes the existing image_tag input parameter defined under workflow_call. No modifications were made to permissions, job definitions, or input schemas.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

This change introduces a new event trigger to a GitHub Actions workflow file. The review requires verifying that the repository_dispatch event properly integrates with the existing image_tag input parameter and that the addition does not create unintended side effects or conflicts with existing workflow behavior.

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is severely incomplete, missing all required template sections including issue reference, checklist, testing details, and changelog information. Fill out the complete PR description template with issue number, checklist confirmation, testing steps, and detailed changelog explaining the manual trigger functionality.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The PR title clearly and specifically describes the main change: adding a manual trigger to the image publishing workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch repo-dispatch-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.

@myftija myftija merged commit 11366e6 into main Dec 16, 2025
27 of 28 checks passed
@myftija myftija deleted the repo-dispatch-trigger branch December 16, 2025 15:35
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e751f88 and ab75395.

📒 Files selected for processing (1)
  • .github/workflows/publish.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (7, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (6, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (3, 8)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (8, 8)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (6, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (5, 8)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (3, 8)
  • GitHub Check: units / packages / 🧪 Unit Tests: Packages (1, 1)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (2, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (2, 8)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (5, 8)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (1, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (4, 8)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (4, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (8, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (1, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (7, 8)
  • GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - pnpm)
  • GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - npm)
  • GitHub Check: typecheck / typecheck
  • GitHub Check: Analyze (javascript-typescript)

name: 🚀 Publish Trigger.dev Docker

on:
repository_dispatch:
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Replace repository_dispatch with workflow_dispatch to support manual triggering.

When triggered via repository_dispatch, data is available through github.event.client_payload, not the inputs context. Since jobs at lines 64, 71, 78 reference inputs.image_tag, the workflow will fail when triggered via repository_dispatch because that context is unavailable.

Use workflow_dispatch instead, which provides a 'Run workflow' button on the Actions tab for manual triggering and supports the inputs context. Apply this diff:

 on:
-  repository_dispatch:
+  workflow_dispatch:
+    inputs:
+      image_tag:
+        description: The image tag to publish
+        required: true
+        type: string
   workflow_call:
     inputs:
       image_tag:

If API-triggered runs are specifically required, add repository_dispatch with conditional input handling:

on:
  workflow_dispatch:
    inputs:
      image_tag:
        description: The image tag to publish
        required: true
        type: string
  repository_dispatch:
    types: [publish]
  workflow_call:
    inputs:
      image_tag:
        description: The image tag to publish
        required: true
        type: string

Then reference the tag conditionally: with: image_tag: ${{ inputs.image_tag || github.event.client_payload.image_tag }}

Verify whether API triggering is actually required, as the PR description only mentions "retry failures manually."

🤖 Prompt for AI Agents
.github/workflows/publish.yml around line 4: the workflow is using
repository_dispatch which does not populate the inputs context (inputs.image_tag
is referenced later), causing failures when manually triggered; change the
trigger to workflow_dispatch and define the image_tag input so the inputs
context is available, or if API triggers must be supported, add both
workflow_dispatch (with inputs) and repository_dispatch plus conditional usage
of either inputs.image_tag or github.event.client_payload.image_tag in the job
step (e.g., set with: image_tag: inputs.image_tag ||
github.event.client_payload.image_tag).

myftija added a commit that referenced this pull request Dec 16, 2025
myftija added a commit that referenced this pull request Dec 16, 2025
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.

3 participants