intuit / intuit/auto

Better error handling cleanup

Open
#995 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
2.5k
Forks
221
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

When auto fails, it should revert/cleanup any changes or commits it made.

Ex: when I have uncommitted changes and run auto, it will create a CHANGELOG commit, but then fail out when it detects the issue. Unfortunately, the CHANGELOG commit stays around.

**Describe the solution you'd like**

Plugins should tap into a cleanup hook to provide functionality to revert any changes it made.

**Describe alternatives you've considered**

Potentially, auto core could do all the cleanup, but that would be difficult depending on the different functionality of plugins.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.