touchifyapp / vsts-changed-files

Azure DevOps pipeline task to get changed files since last succeeded build
MIT License
12 stars 6 forks source link

Returns All Files instead of only the changed files #47

Open chandanch opened 1 year ago

chandanch commented 1 year ago

The problem with the extension is that it used git log to check the changes and since the pipeline always runs on a different agent it pulls the whole repo

utk231 commented 4 months ago

Not working for me too.

This plugin always considers the whole repo files as changed object, Thereby not following the rule filter as that rule filter file (/azure-pipelines.yaml in this case)will always be part of the considered changes object even though there is no change on file.

Can this be fixed please, plugin seems to be of no use without this.

`2024-07-26T11:26:46.5149568Z [command]/usr/bin/git log -m -1 --name-only --pretty=format: 18145a3c9955a511b65e6e561b6fa798fdd 2024-07-26T11:26:46.5230716Z nonprod-main-account/azure-pipelines.yaml

2024-07-26T11:26:46.5234252Z > Executing: git log -m -1 --name-only --pretty=format: 94091bbccbd5c642c4c051a0be0ec458956d

2024-07-26T11:26:46.5247261Z [command]/usr/bin/git log -m -1 --name-only --pretty=format: 940915c642c4c051a0be0ec458956d 2024-07-26T11:26:46.5321292Z .gitignore 2024-07-26T11:26:46.5322236Z .pre-commit-config.yaml 2024-07-26T11:26:46.5322631Z .tflint.hcl 2024-07-26T11:26:46.5322856Z README.md 2024-07-26T11:26:46.5323234Z azure-pipelines.yml ... .... .... ... All Files of repository

2024-07-26T11:26:46.5451846Z > Executing: git log -m -1 --name-only --pretty=format: 3e78cabea87698260de05b3e517513c1b5ee 2024-07-26T11:26:46.5458943Z [command]/usr/bin/git log -m -1 --name-only --pretty=format: 3e78fbea87698260de05b3e517513c1b5ee 2024-07-26T11:26:46.5459435Z fatal: bad object 3e7848aea87698260de05b3e517513c1b5ee`