Skip to content

docs: add env-endpoints example snippet - #418

Merged
sgbalogh merged 1 commit into
mainfrom
devin/1791326617-env-endpoints-snippet
Oct 6, 2026
Merged

sgbalogh merged 1 commit into
mainfrom
devin/1791326617-env-endpoints-snippet

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Adds an env-endpoints anchor to examples/docs_configuration showing the opt-in s2.NewFromEnvironment(nil) helper, for injection into the docs' SDK endpoints page.

The example only runs this block when S2_ACCESS_TOKEN is set, because NewFromEnvironment panics without it.

Link to Devin session: https://app.devin.ai/sessions/522186735fc44e9db3831d13d57cf724
Open in Devin Desktop: https://app.devin.ai/desktop/session/522186735fc44e9db3831d13d57cf724?variant=devin
Requested by: @sgbalogh

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

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@sgbalogh
sgbalogh marked this pull request as ready for review October 6, 2026 22:52
@sgbalogh
sgbalogh requested a review from a team as a code owner October 6, 2026 22:52
@greptile-apps

greptile-apps Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Low risk] Adds example code snippet to documentation.

This documentation example appears safe to merge.

What we checked:

  • Example runs without a token: The example checks S2_ACCESS_TOKEN before calling the helper, so an unset or empty token skips the new block.

Summary

Adds an env-endpoints snippet showing s2.NewFromEnvironment(nil).

  • The runnable example skips it when S2_ACCESS_TOKEN is missing.
  • The snippet names the token and endpoint variables read by the helper.
  • No actionable issue introduced by this change was found.

Reviews (1) · Last reviewed commit: "docs: add env-endpoints example snippet"

@sgbalogh
sgbalogh merged commit f2bb47a into main Oct 6, 2026
11 checks passed
@sgbalogh
sgbalogh deleted the devin/1791326617-env-endpoints-snippet branch October 6, 2026 22:56
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.

1 participant