You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In CI, I would like to mark a decision accepted, stage, and commit it. pyadr accept adr.MD will mark it accepted. Based on the git adr commands, I would expect git adr accept adr.MD to accept, stage, and optionally commit.
What I Did
$ git adr accept -c decisions/XXXX-use-org.md
ADR 'decisions/XXXX-use-org.md' should be staged or committed first.
PyadrGitAdrNotStagedOrCommittedError
decisions/XXXX-use-org.md
at ~/.local/pipx/venvs/pyadr/lib/python3.10/site-packages/pyadr/git/core.py:159 in _verify_adr_staged_or_committed
155│ ) -> None:
156│ if not (self._file_staged(path) or self._file_committed(path)):
157│ if print_error_message:
158│ logger.error(f"ADR '{path}' should be staged or committed first.")
→ 159│ raise PyadrGitAdrNotStagedOrCommittedError(path)
160│
161│ def _verify_adr_staged(self, path: Path, print_error_message: bool = True) -> None:
162│ if not (self._file_staged(path) or self._file_committed(path)):
163│ if print_error_message:
The text was updated successfully, but these errors were encountered:
0.19.0
3.10.6
Description
In CI, I would like to mark a decision accepted, stage, and commit it.
pyadr accept adr.MD
will mark it accepted. Based on the git adr commands, I would expectgit adr accept adr.MD
to accept, stage, and optionally commit.What I Did
The text was updated successfully, but these errors were encountered: