Use distinct action type for API provisioning error message#4427
Merged
midigofrank merged 3 commits intomainfrom Feb 16, 2026
Merged
Use distinct action type for API provisioning error message#4427midigofrank merged 3 commits intomainfrom
midigofrank merged 3 commits intomainfrom
Conversation
…message The provisioner was using `limit_github_sync` which returns "Github Sync is not enabled for your plan" even for CLI deploy requests. This adds a separate `limit_api_provisioning` action type so CLI users see "Project provisioning via API is not enabled for your plan" instead. Closes #4426
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4427 +/- ##
==========================================
+ Coverage 89.35% 89.36% +0.01%
==========================================
Files 425 425
Lines 20090 20094 +4
==========================================
+ Hits 17951 17957 +6
+ Misses 2139 2137 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Collaborator
|
Nice work @elias-ba . Can I test this locally without having thunderbolt setup? Maybe it's easier if I make a note to run QA against staging? |
josephjclark
approved these changes
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a
limit_api_provisioning/1function toVersionControlUsageLimiterand uses it inProvisioner.import_document/4instead oflimit_github_sync/1. This allows to return a context-appropriate error message when provisioning via the API is denied, rather than always returning the GitHub-sync-specific message.Validation steps
Additional notes for the reviewer
AI Usage
Please disclose whether you've used AI anywhere in this PR (it's cool, we just
want to know!):
You can read more details in our
Responsible AI Policy
Pre-submission checklist
/reviewwith Claude Code)
(e.g.,
:owner,:admin,:editor,:viewer)