Prompts and evaluators are files in Git repositories that Infere hosts. Every workspace starts with a Default Repository holding prompts/, evaluators/, examples/, a .gitignore and a README.md. You can edit in the app, or clone the repository and work with git.

Repositories

Build › Repositories lists each repository with its prompts, branches, open pull requests, last change and who has access. A repository's page has Code, Commits, Branches, Pull requests, Releases and Settings tabs, and Settings holds its name, description, default branch, branch naming pattern, access, rules per branch, checks and releases.

  • Read - clone.
  • Write - clone, push, save and open pull requests.
  • Deploy - everything write allows, and release.

Your workspace role applies in every repository; a role set in a repository covers that repository only. With no branch rule, anyone who may edit saves to a branch directly; Add a rule… protects one.

HTTPS tokens

Settings › Git access creates the tokens git uses. New HTTPS token makes one; use it to clone and push over HTTPS, and to release by git push.

Clone addresses

Each repository has its own address, e.g. https://app.infere.com/git/<workspace>/default, with an HTTPS token as the username.

Store the token once

Put the token in your system's keychain once, rather than in the remote URL:

git config --global credential.helper osxkeychain   # macOS
git config --global credential.helper manager       # Windows (Git Credential Manager)
git config --global credential.helper libsecret     # Linux (git-credential-libsecret)

Release by push

A push over HTTPS to deploy/<prompt name>/<key name> releases the pushed version of that prompt to that key, through the same checks as a release in the app:

git push origin HEAD:deploy/<prompt name>/<key name>

Git answers with the result:

  • Released - the version is live on the key.
  • Waiting for review - the release waits for a review.
  • No check ran - no check gated the release.
  • Check failed - a gating check failed, so that key keeps what it holds.
  • Blocked by a rule - a branch rule stopped it.
  • No such key - there is no key by that name.
  • File error - the prompt file could not be read.
  • Release failed - the release did not complete.
  • Two keys share the name - the key name is not unique.

A key keeps what it holds unless the release goes live. Nothing releases to a key automatically: a release always comes from the release step, the API, or a push. For example:

remote: released: <prompt> v<n> (8be04d1) → key "<key>" (<environment>), from main

Access and history

A repository's Settings tab holds its access roles and its rules per branch. Every change in the workspace is in Settings › Audit log: when, who, what, the resource and the change (before → after).