<commit_before>#!/bin/bash

set -eo pipefail

# Inspired by https://github.com/aptos-labs/aptos-core/pull/1324
# Docs: https://docs.netlify.com/configure-builds/ignore-builds/
if [ "$PULL_REQUEST" == "true" ]; then
  BASE=main
else
  BASE=$CACHED_COMMIT_REF
fi

# NOTE(sr): we include version because that's what drives releases
# Makefile and netlify.toml capture when the build infrastructure changes
# ast/builtins.go and capabilities.json are driving the builtins_metadata.
git diff --quiet $BASE $COMMIT_REF docs/ Makefile netlify.toml ast/builtins.go capabilities.json version/<commit_msg>netlify: add debug output from 'ignore' script, simplify diff approach (#5045)<commit_after>#!/bin/bash

set -exo pipefail

# NOTE(sr): we include version because that's what drives releases
# Makefile and netlify.toml capture when the build infrastructure changes
# ast/builtins.go and capabilities.json are driving the builtins_metadata.
git diff --exit-code $CACHED_COMMIT_REF $COMMIT_REF docs/ Makefile build/ netlify.toml ast/builtins.go capabilities.json version/
{'fraction_non_alphanumeric': 0.09868421052631579, 'fraction_numerical': 0.007518796992481203, 'mean_word_length': 5.085714285714285, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6928630', 'n_tokens_mistral': 348, 'n_tokens_neox': 331, 'n_words': 103}