Skip to content

feat(actions): remove auto-commit option from actions#766

Open
matt2e wants to merge 1 commit into
mainfrom
remove-commit-option-from-actions
Open

feat(actions): remove auto-commit option from actions#766
matt2e wants to merge 1 commit into
mainfrom
remove-commit-option-from-actions

Conversation

@matt2e
Copy link
Copy Markdown
Contributor

@matt2e matt2e commented Jun 5, 2026

Summary

Removes the auto-commit option from actions across the stack. Actions no longer carry an auto-commit setting, and the supporting git-commit machinery is dropped.

Changes

  • builderbot-actions crate: drop the auto-commit field from action models, remove the git-commit logic from the executor and the dedicated git.rs module, and update the detector accordingly.
  • staged Tauri backend: remove auto-commit from action commands, events, store models, and store actions; add migration 0016-drop-action-auto-commit to drop the column.
  • Frontend: remove the auto-commit field from action types/commands and strip the corresponding control from ActionsSettingsPanel.

Net: +39 / −303 across 17 files.

Strip the per-action auto-commit toggle end-to-end. Actions now only
execute their command and never create git commits.

- UI: drop the auto-commit checkbox and `autoCommit` form state from the
  action editor, and remove the field from create/update/detection flows.
- TS bindings: remove `autoCommit` from `ProjectAction`/`SuggestedAction`
  and the `createRepoAction`/`updateProjectAction` signatures, and delete
  the unused `ActionAutoCommitEvent`/`listenToActionAutoCommit`.
- Tauri commands: drop the `auto_commit` parameter from `create_repo_action`
  and `update_project_action` in `lib.rs` and `web_server.rs`.
- Store: remove `RepoAction::auto_commit` and `with_auto_commit`, drop the
  column from all SQL statements, and add migration 0016 to drop the
  `repo_actions.auto_commit` column.
- Execution: stop propagating the flag into `ActionMetadata` on the local
  and remote paths.
- builderbot-actions crate: remove the auto-commit machinery — the
  `AutoCommitContext` enum, `git` module, `ExecutionEvent::AutoCommit`, the
  post-success commit block, and the `autoCommit` field from the detector
  prompt and `SuggestedAction`.

Verified with cargo check/clippy, the crate and store migration tests, and
svelte-check/tsc.

Signed-off-by: Matt Toohey <contact@matttoohey.com>
@matt2e matt2e requested review from baxen and wesbillman as code owners June 5, 2026 02:14
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