-
Notifications
You must be signed in to change notification settings - Fork 14
Add pre-push verification, diff checks, and commit squashing conventions #619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -98,10 +98,13 @@ spec: | |||||
| - Also read ALL comments on the linked issue (gh issue view {{.Number}} --comments), not just the PR. | ||||||
| - 3a. Read the existing diff (git diff main...HEAD) to understand what has already been done. Do NOT start over or rewrite from scratch. | ||||||
| - 4a. Make only the incremental changes needed to address review feedback or remaining issues. Preserve existing work. | ||||||
| - 5a. Commit and push your changes to origin kelos-task-{{.Number}}. | ||||||
| - 6a. /review the PR to verify your changes address the feedback. If changes are needed, make them, commit and push, then /review again. Repeat until the review passes. | ||||||
| - 7a. Update the PR title and description to reflect the final diff. The PR body MUST contain a standard closing keyword reference on its own line (e.g., `Fixes #{{.Number}}` or `Closes #{{.Number}}`). Do not embed the issue number in natural language. Ensure the PR has labels "generated-by-kelos" and "ok-to-test" (use `gh pr edit {{.Number}} --add-label generated-by-kelos --add-label ok-to-test` if missing). | ||||||
| - 8a. Make sure the PR passes all CI tests. | ||||||
| - 5a. Before pushing, verify your changes are clean: | ||||||
| - Run `make verify` to catch lint, fmt, and vet issues locally. | ||||||
| - Run `git diff origin/main --stat` to confirm only files relevant to the task are modified. Revert any unrelated changes. | ||||||
| - 6a. Squash your commits into a single clean commit, then push to origin kelos-task-{{.Number}}. | ||||||
| - 7a. /review the PR to verify your changes address the feedback. If changes are needed, make them, commit and push, then /review again. Repeat until the review passes. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: The self-review loop in step 7a adds commits ( Prompt for AI agents
Suggested change
|
||||||
| - 8a. Update the PR title and description to reflect the final diff. The PR body MUST contain a standard closing keyword reference on its own line (e.g., `Fixes #{{.Number}}` or `Closes #{{.Number}}`). Do not embed the issue number in natural language. Ensure the PR has labels "generated-by-kelos" and "ok-to-test" (use `gh pr edit {{.Number}} --add-label generated-by-kelos --add-label ok-to-test` if missing). | ||||||
| - 9a. Make sure the PR passes all CI tests. | ||||||
|
|
||||||
| If no PR exists: | ||||||
| - 2b. Investigate the issue #{{.Number}}. | ||||||
|
|
@@ -110,10 +113,13 @@ spec: | |||||
| - Search the codebase for existing constants, types, and patterns before creating new ones. Do not duplicate definitions. | ||||||
| - Only implement what the issue explicitly asks for. If you discover related improvements, create separate issues for them. | ||||||
| - 3b. Create a commit that fixes the issue. | ||||||
| - 4b. Push your branch to origin kelos-task-{{.Number}}. | ||||||
| - 5b. Create a PR with labels "generated-by-kelos" and "ok-to-test" (use `gh pr create --label generated-by-kelos --label ok-to-test`), then /review it. If changes are needed, make them, commit and push, then /review again. Repeat until the review passes. | ||||||
| - 6b. Update the PR title and description to reflect the final diff. The PR body MUST contain a standard closing keyword reference on its own line (e.g., `Fixes #{{.Number}}` or `Closes #{{.Number}}`). Do not embed the issue number in natural language. | ||||||
| - 7b. Make sure the PR passes all CI tests. | ||||||
| - 4b. Before pushing, verify your changes are clean: | ||||||
| - Run `make verify` to catch lint, fmt, and vet issues locally. | ||||||
| - Run `git diff origin/main --stat` to confirm only files relevant to the task are modified. Revert any unrelated changes. | ||||||
| - 5b. Squash your commits into a single clean commit, then push your branch to origin kelos-task-{{.Number}}. | ||||||
| - 6b. Create a PR with labels "generated-by-kelos" and "ok-to-test" (use `gh pr create --label generated-by-kelos --label ok-to-test`), then /review it. If changes are needed, make them, commit and push, then /review again. Repeat until the review passes. | ||||||
| - 7b. Update the PR title and description to reflect the final diff. The PR body MUST contain a standard closing keyword reference on its own line (e.g., `Fixes #{{.Number}}` or `Closes #{{.Number}}`). Do not embed the issue number in natural language. | ||||||
| - 8b. Make sure the PR passes all CI tests. | ||||||
|
|
||||||
| Post-checklist: | ||||||
| - Post a `/kelos needs-input` comment on the issue (gh issue comment {{.Number}} --body "/kelos needs-input") and leave a comment for the reason if any of the following applies: | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: After squashing, a regular
git pushwill be rejected because the rewritten history diverges from the remote. Specify--force-with-leaseto make this step actionable (it's also safer than--forcesince it aborts if someone else pushed in the meantime).Prompt for AI agents