Editing in Kelpie
Every change made in Kelpie is a git commit. There is no state that exists only in Kelpie, so the repository always describes what should run.
Saving
Section titled “Saving”Saving first shows a diff of every file you changed, with a field for the commit message.
The editor always works against a base: the commit you started editing from. When you save, Kelpie fetches first.
- If the stack folder changed since your base, the save is refused and you see a 3-way diff: the base, the branch as it is now, and your edit. Resolve it in the editor and save again. Kelpie never picks a winner silently.
- If only other folders changed, Kelpie rebases your commit onto the branch and pushes it.
Commit or pull request
Section titled “Commit or pull request”The stack’s edits setting decides where the commit goes:
commit: straight to the repository’s branch.pr: to a new branch, with a pull request opened through the forge’s API. This needs a forge and a forge token on the repository.
Either way the commit then goes through the stack’s deploy mode like any other change.
Authorship
Section titled “Authorship”The author of each commit is the logged-in user, with the name and email from their account or
OpenID Connect provider. The committer is Kelpie’s own identity, KELPIE_COMMIT_NAME and
KELPIE_COMMIT_EMAIL.
Who can edit
Section titled “Who can edit”Editing compose files and secrets needs the editor role on the stack. See Access.