Skip to content

Commit 2ffa5c3

Browse files
committed
fixup! docs: add AGENTS.md guide for AI agents
1 parent 82b53c4 commit 2ffa5c3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎AGENTS.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ This is the source code for the Angular CLI and related build tooling. This guid
4444
## Pull Requests
4545

4646
- Use the `gh` CLI (GitHub CLI) for creating and managing pull requests.
47+
- **Fixup Commits:**
48+
- When addressing review feedback, **ALWAYS** use fixup commits (`git commit --fixup <commit>`) instead of amending existing commits. This preserves commit history during review and allows reviewers to easily see incremental changes.
49+
- Fixup commits are automatically squashed when merging with `pnpm ng-dev pr merge` or rebasing with `pnpm ng-dev pr rebase <pr>`.
4750
- Use `pnpm ng-dev pr` commands:
4851
- `pnpm ng-dev pr rebase <pr>`: Rebase a PR branch on its target branch and squash fixup commits.
4952
- `pnpm ng-dev pr merge <pr>`: Merge an approved PR into its targeted branches.

0 commit comments

Comments
 (0)