Skip to content

Inline non-fast-forward check and add review guidelines - #30

Merged
rafaeelricco merged 2 commits into
mainfrom
rafaeelricco/inline-non-fast-forward-check
Jun 18, 2026
Merged

Inline non-fast-forward check and add review guidelines#30
rafaeelricco merged 2 commits into
mainfrom
rafaeelricco/inline-non-fast-forward-check

Conversation

@rafaeelricco

Copy link
Copy Markdown
Owner

Motivation

Adds AGENTS.md review guidelines to keep automated/code reviews high-signal (only P0/P1 blocking findings), and consolidates the non-fast-forward error check into the Commit class to remove a single-use module.

What's New

Review guidelines

  • Add AGENTS.md defining P0/P1 blocking criteria and explicit non-blocking exclusions for reviews.

Error-check consolidation

  • Move isNonFastForwardError into a Commit.isNonFastForwardError static method.
  • Delete the single-use src/cli/commit-errors.ts module.
  • Update the push retry path in src/cli/commit.ts and the test imports accordingly.

Testing & Feedback

  • Run npm test (Vitest) and confirm commit-errors.test.ts passes against Commit.isNonFastForwardError.
  • Verify the push retry still prompts force-with-lease on non-fast-forward rejections.
  • If you find any bugs or have recommendations for improvements, please open an issue and assign it to me.

- Add `Commit.isNonFastForwardError` static method replacing the standalone `src/cli/commit-errors.ts` module.
- Update the push retry path in `src/cli/commit.ts` to call `Commit.isNonFastForwardError` and drop the removed import.
- Delete the single-use `src/cli/commit-errors.ts` module.
- Update `test/cli/commit-errors.test.ts` to import `Commit` and assert against the static method.
- Add `AGENTS.md` defining P0/P1 blocking criteria for reviews.
- Document non-blocking exclusions and the required fields for every finding.
@rafaeelricco rafaeelricco self-assigned this Jun 18, 2026
@rafaeelricco
rafaeelricco merged commit 3924837 into main Jun 18, 2026
4 checks passed
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