Skip to content

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

@jamesbraza

Description

@jamesbraza

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions