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

Unexpected: Git diffing doesn't take into account unstaged files #122

Open
jamesbraza opened this issue May 30, 2024 · 2 comments
Open

Unexpected: Git diffing doesn't take into account unstaged files #122

jamesbraza opened this issue May 30, 2024 · 2 comments

Comments

@jamesbraza
Copy link
Contributor

I am manually changing my promptfooconfig.yaml in CI. This means the change is not committed, it's a local change.

promptfoo-action v1's git diff here: https://github.com/promptfoo/promptfoo-action/blob/v1/src/main.ts#L101-L105

It doesn't take into account local changes as leading to changed files. Thus my promptfoo-action doesn't invoke promptfoo and instead emits:

No LLM prompt or config files were modified.

Can we make this diff account for local file changes as well?

@typpo
Copy link
Contributor

typpo commented May 30, 2024 via email

@jamesbraza
Copy link
Contributor Author

Yeah I think in general you're right that it is unusual, so feel free to close this out.

To share, my use case is generating the promptfooconfig.yaml on the fly in CI: https://github.com/Future-House/LitQA/blob/ba2b3f9f9798b8c7f40632c9ec3d68b3c1a6c67f/.github/create_tests.py

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

No branches or pull requests

2 participants