Skip to content
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

Command ask #45

Closed

Conversation

ishowvel
Copy link

@ishowvel ishowvel commented Dec 8, 2024

Resolves #45

@ishowvel
Copy link
Author

ishowvel commented Dec 8, 2024

@gentlementlegen to test this you would have to change the config and specify a anthropic model in anthropicAiModel and rename the existing model to openAiModel

@ishowvel
Copy link
Author

ishowvel commented Dec 8, 2024

@0x4007
Copy link
Member

0x4007 commented Dec 10, 2024

The QA doesn't show it working. Also this should be its own plugin.

@ishowvel
Copy link
Author

ishowvel commented Dec 11, 2024

The QA doesn't show it working. Also this should be its own plugin.

@0x4007 I thought showing the edge cases of when Claude gives a non json output, when review passes, when review fails was enough, is there any thing else I need to do to qa this

I'll turn this into a standalone plugin in a bit

@0x4007
Copy link
Member

0x4007 commented Dec 11, 2024

The QA doesn't show it working. Also this should be its own plugin.

@0x4007 I thought showing the edge cases of when Claude gives a non json output, when review passes, when review fails was enough, is there any thing else I need to do to qa this

No please read the spec carefully

The bot should return actionable feedback for what is missing from the specification. It should leave the review state as requested changes. It should also convert the pull back into a draft.

@ishowvel
Copy link
Author

Only converting this to a standalone plugin is left

@ishowvel
Copy link
Author

https://github.com/ishowvel/pull-precheck
standalone plugin has been made, ill make fresh tests tomorrow

@ishowvel
Copy link
Author

@gentlementlegen can i have a little help over here?
https://github.com/ishowvel/pull-precheck/blob/development/tests/main.test.ts
somehow mocking a function from a different file just does not seem to work, any idea on how to fix this or what i am doing wrong

@ishowvel
Copy link
Author

i have tested the standalone plugin and everything works, i am just having a little difficulty setting up tests

@gentlementlegen
Copy link
Member

With ESM import order is very important and will define what / how modules are mocked. You should check the function is actually called, and if it is not your mocked function then you should figure out which import overrides your own mock by being called before you actually do mock the function.

src/adapters/claude/helpers/completions.ts Show resolved Hide resolved
src/adapters/claude/helpers/completions.ts Show resolved Hide resolved
src/adapters/claude/helpers/completions.ts Show resolved Hide resolved
src/helpers/issue-fetching.ts Show resolved Hide resolved
src/handlers/pull-request-callback.ts Show resolved Hide resolved
src/helpers/pull-helpers/get-task-spec.ts Show resolved Hide resolved
@0x4007 0x4007 marked this pull request as draft December 12, 2024 23:09
@0x4007
Copy link
Member

0x4007 commented Dec 12, 2024

This isn't a new plugin. This is ask with added features. Ask code shouldn't be here at all.

@0x4007 0x4007 closed this Dec 13, 2024
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.

Pull Precheck
4 participants