Skip to content

Rebase PRs #1 and #2 onto rewritten main#5

Merged
schlunsen merged 2 commits into
mainfrom
merge-prs
Jul 4, 2026
Merged

Rebase PRs #1 and #2 onto rewritten main#5
schlunsen merged 2 commits into
mainfrom
merge-prs

Conversation

@schlunsen

Copy link
Copy Markdown
Collaborator

Summary

Main was squashed to a new root in #3, so the original branches share no ancestor and can't merge directly. Supersedes #1 and #2.

🤖 Generated with Claude Code

schlunsen and others added 2 commits July 4, 2026 12:28
Adds an Authentication section documenting the one-token flow: use a N0
Personal Access Token (Bearer) for all n0 API calls, and mint the Gitea
token via POST /workspaces/<id>/gitea/token/ instead of web UI, admin SSH,
or email/password login. Enforces HTTPS git remotes and forbids SSH so the
skill runs inside the Claude Desktop / Claude Code sandbox.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ll-URL imports, runner caveats

- Warn that redeploys don't repull an unchanged :latest tag (k3s containerd
  tag cache); document the commit-SHA pin + re-import + redeploy flow
- Prefer full Gitea URL for definition imports: short org/repo form can fail
  with a misleading 'No n0-app.json found' (seen on prod app.nzero.pro)
- Mark the 'Import into k3s' CI step as conditional: containerized runners
  have no k3s binary and fail with exit 127
- Add troubleshooting rows: stale-version-after-redeploy, short-form import
  error, and Actions runs misreported as failed after the job succeeded
- Document minting a Gitea token via POST /workspaces/{ws}/gitea/token/

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 4, 2026 10:29
@schlunsen
schlunsen merged commit 7937da3 into main Jul 4, 2026
2 checks passed
@schlunsen
schlunsen deleted the merge-prs branch July 4, 2026 10:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Rebases and consolidates prior documentation updates onto the rewritten main, standardizing the N0 deploy guidance around a single PAT (Bearer) auth flow, HTTPS-only Gitea interactions, and more reliable redeploy/versioning practices in k3s-based environments.

Changes:

  • Added an “Authentication (single token, HTTPS-only)” section centered on $N0_API_BASE + $N0_API_TOKEN, including minting a Gitea token via the n0 API.
  • Updated deploy/import/redeploy examples to use the PAT Bearer token flow and expanded redeploy guidance (including :latest caching caveats and commit-SHA pinning).
  • Clarified CI runner caveats around k3s ctr images import and expanded troubleshooting notes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread SKILL.md
Comment on lines +73 to +77
**You only need ONE credential: a N0 Personal Access Token (PAT).** Everything —
n0 API calls, workspace lookup, Gitea repo creation, git push, Supabase — is done
over **HTTPS** with this single token. This is the path that works inside the
Claude Desktop / Claude Code sandbox (outbound HTTPS only, no SSH, no interactive
web login, no server SSH).
Comment thread SKILL.md
curl -s -X POST "$N0_API_BASE/workspaces/${WS_ID}/apps/definitions/" \
-H "Authorization: Bearer $N0_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"repo_url": "clovrlabs/my-app"}'
Comment thread SKILL.md
Comment on lines 1860 to 1862
git init && git add -A && git commit -m "Initial commit"
git remote add origin "https://<username>:${GITEA_TOKEN}@${GITEA_HOST}/clovrlabs/my-app.git"
git remote add origin "https://${GITEA_USER}:${GITEA_TOKEN}@${GITEA_HOST}/clovrlabs/my-app.git"
git push -u origin main --force
Comment thread SKILL.md
Comment on lines +1901 to 1902
# Visit the app (host matches your platform domain, e.g. apps.nzero.pro)
open "https://my-app.apps.privateprompt.tech"
Comment thread SKILL.md
curl -s -X POST "$N0_API_BASE/workspaces/$WS_ID/apps/definitions/" \
-H "Authorization: Bearer $N0_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"repo_url": "clovrlabs/my-app"}'
Comment thread SKILL.md
@@ -1597,19 +1648,14 @@ After generating the manifest and pushing code to Gitea, the app must be **impor

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