From 76331aeee3519904696c801c236d4737487e657c Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 9 Oct 2023 09:21:03 +1100 Subject: [PATCH] Add a just cmd to check for API changes Add a `just` command to run the API checking script. Makes it more discoverable. --- contrib/check-for-api-changes.sh | 2 +- justfile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/check-for-api-changes.sh b/contrib/check-for-api-changes.sh index 694284ef6..d350b789b 100755 --- a/contrib/check-for-api-changes.sh +++ b/contrib/check-for-api-changes.sh @@ -72,7 +72,7 @@ generate_api_files() { popd > /dev/null } -# Check if there are changes (dirty git index) to the `api/` directory. +# Check if there are changes (dirty git index) to the `api/` directory. check_for_changes() { pushd "$REPO_DIR" > /dev/null diff --git a/justfile b/justfile index 22dbfbc9a..60dcf0c3c 100644 --- a/justfile +++ b/justfile @@ -36,3 +36,7 @@ sane: lint # Update the recent and minimal lock files. update-lock-files: contrib/update-lock-files.sh + +# Check for API changes. +check-api: + contrib/check-for-api-changes.sh