I am wondering if there is any way to tell the git revision of the last successful build of a pipeline.
I require it to inform the following command, which returns a list of changes for a given project in my monorepo.
git diff-tree --no-commit-id --name-only -r "<last_successful_revision>..<head_revision>" -- "./$project"
Looking at only the changes for the latest revision will not suffice as the diff will likely not include changes in all the same projects as the previous revision meaning I can't determine which projects to build.