Skip to content

docs: explain GitOps resource adoption - #1451

Merged
dhruva-vapi merged 2 commits into
mainfrom
devin/1795281775-docs-gitops-adopt
Nov 24, 2026
Merged

dhruva-vapi merged 2 commits into
mainfrom
devin/1795281775-docs-gitops-adopt

Conversation

@dhruva-vapi

@dhruva-vapi dhruva-vapi commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

Documents the --adopt flag shipped in VapiAI/gitops#104.

  • fern/config-as-code.mdx: new "Adopt an existing resource" section covering when to adopt (dashboard-created resources, renamed or moved files), --adopt <resourceId>[=<uuid>] on push/apply, the resource ID format, matching without a UUID, --dry-run previews, and --dry-run --json output for automation.
  • Checked against src/adopt.ts, src/link-preflight.ts and src/push.ts on gitops main.
  • Left out on purpose: the PR's validation and safety tightening, plus gitops#106 (metadata.gitops.folderPath). Nothing in the dashboard reads that field yet.

Testing Steps

  • npx --yes fern-api check: 0 errors
  • Check the Config as code page in the preview deployment

Technical Writer opened this PR for Dhruva
Implemented in session Update docs for recent product changes
Review with Devin · Open in Devin Desktop


Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Devin Review

🟢 Devin Review found nothing to fix · View findings

@github-actions

Copy link
Copy Markdown
Contributor

@steven-diaz-vapi
steven-diaz-vapi requested review from a team and peter-vapi and removed request for a team November 23, 2026 21:11

@peter-vapi peter-vapi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nothing blocking, just a couple suggestions to increase clarity

Comment thread fern/config-as-code.mdx

## Adopt an existing resource

Use adoption to link a local file to a resource that already exists on the platform, such as one created in the dashboard or one whose local file you renamed or moved. The local file must exist and not already have a UUID mapping.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Might be nice to draw the analog to terraform import for people to quickly understand what this means

Comment thread fern/config-as-code.mdx Outdated
Comment on lines +130 to +141
Preview the mapping with `--dry-run`; it looks up candidates without saving the mapping or changing platform resources:

```bash
npm run push -- my-org --dry-run --adopt support/intake
```

To deploy using a specific existing resource, use its UUID:

```bash
npm run apply -- my-org --adopt support/intake=12345678-1234-1234-1234-123456789abc
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A worked example would be useful to show which situation this might apply to and the before/after state

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

dhruva-vapi commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Merge activity

  • Nov 24, 1:51 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Nov 24, 1:51 AM UTC: @dhruva-vapi merged this pull request with Graphite.

@dhruva-vapi
dhruva-vapi merged commit 9d6d2d9 into main Nov 24, 2026
8 of 9 checks passed
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