-
Notifications
You must be signed in to change notification settings - Fork 0
feat(command): Add fix-issue command #260
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f3e70ef
feat(*): fix ui agent workflow
Ayush8923 433a1d0
feat(*): fix ui agent workflow
Ayush8923 79804ea
fix(*): update the node version
Ayush8923 99146b0
fix(*): remove push event
Ayush8923 962b962
fix(*): few updates
Ayush8923 50b0be0
fix(*): added the fix issue md file
Ayush8923 e69ebeb
Merge branch 'main' into feat/agent-ui-fix
Ayush8923 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| --- | ||
| description: Fix an issue and open a PR | ||
| --- | ||
|
|
||
| Fix issue #$1 in this repository. | ||
|
|
||
| ## Steps | ||
|
|
||
| 1. Read the issue: `gh issue view $1 --comments`. | ||
| If screenshots are attached, analyse them carefully. | ||
| 2. Find the relevant files. Use Glob and Grep, read before editing. | ||
| 3. Create a branch off main: `git checkout -b agent/ui-fix-$1 main` | ||
| 4. Implement the fix. | ||
| - Use existing design tokens and utility classes, never hardcoded | ||
| hex colours or pixel values. | ||
| - Touch only UI/styling files. Do not change business logic, | ||
| API calls, or auth. | ||
| - Keep the change as small as the issue requires. | ||
| 5. Verify: `npm run lint` and `npm run build` must both pass. | ||
| Fix anything you broke before continuing. | ||
| 6. Commit and push: | ||
| `git add -A && git commit -m "fix: <short description>"` | ||
| `git push -u origin HEAD` | ||
| 7. Open the PR: | ||
| `gh pr create --base main --title "fix: <short description>" --body "..."` | ||
| The body must contain `Closes #$1` and explain what changed and why. | ||
|
|
||
| ## Non-interactive | ||
|
|
||
| This runs in GitHub Actions. Nobody will answer questions. | ||
|
|
||
| If the issue is too ambiguous to fix safely, do NOT change code. | ||
| Instead: comment on the issue explaining what's unclear, add the | ||
| `agent-needs-human` label, and stop. | ||
|
|
||
| ## Done means | ||
|
|
||
| A pushed branch AND an open PR. Editing files without opening a PR | ||
| is a failed run. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
will this work ?
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.
Yes, for refrence here it's PR: #259
and corresponding issue: #258