{"push_id":595619368,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"394f00a2a2fe621fce1bde7f9e2c3eb10b421003","before":"b650ebec21f732e9f93847ca8c524489cb492648","commits":[{"sha":"360f964cd475a5dcbbd192bb640d2c31be5b23e2","author":{"email":"86f39098c3d6e8fa24cceea9f4753c2782977b2d@gmail.com","name":"John Sirois"},"message":"Support local pre-commit checks.\n\nThis change adds a setup script that will install or re-install a\npre-commit hook to run pants lints.  The pre-commit script is also\nrunnable directly to support a centralized stable script developers can\nrun to execute all lints independent of performing a commit.\n\nTesting Done:\nLocal testing:\n```console\n# Install\n$ rm -f .git/hooks/pre-commit\n$ ./build-support/bin/setup.sh\nPre-commit checks installed from /home/jsirois/dev/3rdparty/jsirois-pants3/build-support/bin/pre-commit.sh to /home/jsirois/dev/3rdparty/jsirois-pants3/.git/hooks/pre-commit\n$ ./build-support/bin/setup.sh\nPre-commit checks up to date.\n\n# Unanticipated drift\n$ rm -f .git/hooks/pre-commit\n$ touch /home/jsirois/dev/3rdparty/jsirois-pants3/.git/hooks/pre-commit\n$ ./build-support/bin/setup.sh\nA pre-commit script already exists, replace with /home/jsirois/dev/3rdparty/jsirois-pants3/build-support/bin/pre-commit.sh? [Yn]n\nPre-commit checks not installed\n$ ./build-support/bin/setup.sh\nA pre-commit script already exists, replace with /home/jsirois/dev/3rdparty/jsirois-pants3/build-support/bin/pre-commit.sh? [Yn]\nPre-commit checks installed from /home/jsirois/dev/3rdparty/jsirois-pants3/build-support/bin/pre-commit.sh to /home/jsirois/dev/3rdparty/jsirois-pants3/.git/hooks/pre-commit\n$ ./build-support/bin/setup.sh\nPre-commit checks up to date.\n\n# Dogfood on this commit\n$ git commit\nChecking packages\nChecking imports\nChecking headers\nSuccess\n[jsirois/lints/commit_hooks 8458f3e] Support local pre-commit checks.\n 9 files changed, 71 insertions(+), 14 deletions(-)\n create mode 100755 build-support/bin/pre-commit.sh\n create mode 100755 build-support/bin/setup.sh\n```\n\nCI went green here:\n  https://travis-ci.org/pantsbuild/pants/builds/53506978\n\nBugs closed: 1222\n\nReviewed at https://rbcommons.com/s/twitter/r/1883/","distinct":true,"url":"https://api.github.com/repos/pantsbuild/pants-for-travis-osx-ci/commits/360f964cd475a5dcbbd192bb640d2c31be5b23e2"},{"sha":"394f00a2a2fe621fce1bde7f9e2c3eb10b421003","author":{"email":"89eb73fbef71259ee15b5c1414c7a16ad9206fb5@googlegroups.com","name":"Pants CI"},"message":"Sync of https://github.com/pantsbuild/pants/commit/360f964cd475a5dcbbd192bb640d2c31be5b23e2","distinct":true,"url":"https://api.github.com/repos/pantsbuild/pants-for-travis-osx-ci/commits/394f00a2a2fe621fce1bde7f9e2c3eb10b421003"}]}