Skip to content

feat: add devin_blueprint and devin_snapshot_build resources - #2

Open
Abhishek21g wants to merge 1 commit into
CognitionAI:mainfrom
Abhishek21g:feat/blueprint-and-snapshot-build
Open

feat: add devin_blueprint and devin_snapshot_build resources#2
Abhishek21g wants to merge 1 commit into
CognitionAI:mainfrom
Abhishek21g:feat/blueprint-and-snapshot-build

Conversation

@Abhishek21g

@Abhishek21g Abhishek21g commented Jul 13, 2026

Copy link
Copy Markdown

Summary

  • Adds devin_blueprint resource for org- and repo-tier environment blueprints via the v3beta1 snapshot-setup API (closes Add a way to set org blueprints #1)
  • Adds devin_snapshot_build resource to trigger manual snapshot builds after blueprint changes (mutations do not auto-build)
  • Fetches blueprint YAML via presigned URL on read/import; supports optional wait_until_complete on builds

Why

Issue #1 asks for GitOps-friendly blueprint management. Blueprints are core Devin infra — this lets platform teams track environment YAML in Terraform alongside playbooks and secrets.

Test plan

  • go test ./... (field coverage + client tests)
  • TF_ACC=1 go test ./internal/provider -run Blueprint -v against localhost API with snapshot permissions
  • Manual: create org blueprint → trigger build → verify status transitions

Notes

  • Uses hand-written v3beta1 API models in internal/api/snapshot_setup.go (not yet in filtered openapi.json)
  • Delete on devin_snapshot_build cancels in-flight builds; completed builds are removed from state only

Devin Review

Status Commit
⚪ Not started

Run Devin Review

💡 Connect your GitHub account to enable automatic code reviews.

Open in Devin Review (Staging)

Closes CognitionAI#1 by exposing org/repo
blueprints and manual snapshot builds via the v3beta1 snapshot-setup API.
Includes presigned URL fetch for blueprint YAML contents and optional
wait_until_complete on builds.
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.

Add a way to set org blueprints

1 participant