Skip to content

feat: Add deploy_source to CLI deploy requests (EX-2032)#8155

Merged
amun-sihra merged 4 commits intomainfrom
EX-2032-cli
Apr 20, 2026
Merged

feat: Add deploy_source to CLI deploy requests (EX-2032)#8155
amun-sihra merged 4 commits intomainfrom
EX-2032-cli

Conversation

@amun-sihra
Copy link
Copy Markdown
Contributor

@amun-sihra amun-sihra commented Apr 15, 2026

🎉 Thanks for submitting a pull request! 🎉

Summary

Explicitly sends deploy_source: 'cli' in the create deploy request body so that bitballoon can distinguish CLI deploys from other API consumers. This enables the UI to show "Last deployed from CLI" instead of grouping CLI deploys under "Drop".

Fixes: https://linear.app/netlify/issue/EX-2032/last-deployed-from-ardrop-label-followup


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)
image

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 15, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c5eb81a6-f3b4-47f1-9dbc-634fded4e39d

📥 Commits

Reviewing files that changed from the base of the PR and between 89249d0 and 03df912.

📒 Files selected for processing (2)
  • src/commands/deploy/deploy.ts
  • tests/integration/commands/deploy/deploy.test.ts

📝 Walkthrough

Summary by CodeRabbit

  • Improvements
    • Deployment requests now include source identification metadata to help track deployment origins.

Walkthrough

The deploy command's api.createSiteDeploy request body now includes an additional field deploy_source: 'cli' in two code paths where a new deploy is created. A corresponding integration test was added to verify that this field is included in the POST request to create a deploy.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding deploy_source field to CLI deploy requests, and is specific and concise.
Description check ✅ Passed The description provides relevant context about why the change is needed and references the related issue, directly relating to the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch EX-2032-cli

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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 15, 2026

📊 Benchmark results

Comparing with ca9d3ca

  • Dependency count: 1,061 (no change)
  • Package size: 355 MB (no change)
  • Number of ts-expect-error directives: 356 (no change)

@amun-sihra amun-sihra changed the title EX-2032 - Add deploy_source to CLI deploy requests feat: Add deploy_source to CLI deploy requests (EX-2032) Apr 15, 2026
@amun-sihra amun-sihra marked this pull request as ready for review April 15, 2026 17:46
@amun-sihra amun-sihra requested a review from a team as a code owner April 15, 2026 17:46
@amun-sihra amun-sihra merged commit 289933d into main Apr 20, 2026
71 checks passed
@amun-sihra amun-sihra deleted the EX-2032-cli branch April 20, 2026 14:39
eduardoboucas pushed a commit that referenced this pull request Apr 21, 2026
🤖 I have created a release *beep* *boop*
---


## [25.1.0](v25.0.1...v25.1.0)
(2026-04-21)


### Features

* add `db migrations reset` command
([#8177](#8177))
([3dd0f38](3dd0f38))
* add `db status` command
([#8173](#8173))
([9bccaf9](9bccaf9))
* Add deploy_source to CLI deploy requests (EX-2032)
([#8155](#8155))
([289933d](289933d))
* restructure db command files
([#8175](#8175))
([794c2e0](794c2e0))
* support `NETLIFY_DB_BRANCH` env var in `db status` command
([#8174](#8174))
([5647420](5647420))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com>
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.

2 participants