-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
# checkGraphqlBreakingChanges.sh #!/usr/bin/env bash set -e # Label allowed ALLOW_LABEL="GraphQL breaking change" # We only want to run this logic if we are on a pull request if [ -z "$BUILDKITE_PULL_REQUEST" ]; then echo "Skipping, not a pull request..." exit 0 fi # Get the labels array from the Github API for the pull request GITHUB_PR_LABELS=$(curl -u $GITHUB_USER:$GITHUB_USER_TOKEN \ -s "https://github.com/api/v3/repos/my-org/my-repo/pulls/$BUILDKITE_PULL_REQUEST" \ | jq '.labels[].name') # If label is set on the pr we stop the execution as breaking change is intentional if [[ ${GITHUB_PR_LABELS[*]} =~ "$ALLOW_LABEL" ]]; then echo "Skipping, because label is set..." exit 0 fi yarn graphql-inspector diff 'git:origin/main:./schema.json' 'schema.json'