Sync eng/common directory with azure-sdk-tools for PR 2824 (#27433)
Sync eng/common directory with azure-sdk-tools for PR 2824 (#27433)

* Common scripts for git diff changes

* Remove the localizer.

* Check not PR triggered case

* Pretty print

Co-authored-by: sima-zhu <5fef37f6cbdb6842d05e30aec045f2f609cf3db2@microsoft.com>
Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java