logiguard fork v3: full patch set on verified 8c74db0 tree
Includes prior-session patches (carry forward so the app compiles): - crates/gpui/build.rs: cross-compile manifest fix - crates/gpui/src/platform.rs: PlatformWindow::activate_with_token trait method - crates/gpui/src/window.rs: Window::activate_with_token public API - crates/gpui_linux/src/linux/wayland/window.rs: WaylandWindow::activate_with_token + activate() keyboard-serial fix Plus the focus-serial fix: - serial.rs: SerialKind::KeyboardEnter - client.rs: store wl_keyboard.enter serial; latest_serial_of() Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
32
script/squawk
Executable file
32
script/squawk
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Squawk is a linter for database migrations. It helps identify dangerous patterns, and suggests alternatives.
|
||||
# Squawk flagging an error does not mean that you need to take a different approach, but it does indicate you need to think about what you're doing.
|
||||
# See also: https://squawkhq.com
|
||||
|
||||
set -e
|
||||
|
||||
if [ -z "$GITHUB_BASE_REF" ]; then
|
||||
echo 'Not a pull request, skipping squawk modified migrations linting'
|
||||
exit
|
||||
fi
|
||||
|
||||
SQUAWK_VERSION=0.26.0
|
||||
SQUAWK_BIN="./target/squawk-$SQUAWK_VERSION"
|
||||
SQUAWK_ARGS="--assume-in-transaction --config script/lib/squawk.toml"
|
||||
|
||||
pkgutil --pkg-info com.apple.pkg.RosettaUpdateAuto || /usr/sbin/softwareupdate --install-rosetta --agree-to-license
|
||||
# When bootstrapping a brand new CI machine, the `target` directory may not exist yet.
|
||||
mkdir -p "./target"
|
||||
curl -L -o "$SQUAWK_BIN" "https://github.com/sbdchd/squawk/releases/download/v$SQUAWK_VERSION/squawk-darwin-x86_64"
|
||||
chmod +x "$SQUAWK_BIN"
|
||||
|
||||
if [ -n "$SQUAWK_GITHUB_TOKEN" ]; then
|
||||
export SQUAWK_GITHUB_REPO_OWNER=$(echo $GITHUB_REPOSITORY | awk -F/ '{print $1}')
|
||||
export SQUAWK_GITHUB_REPO_NAME=$(echo $GITHUB_REPOSITORY | awk -F/ '{print $2}')
|
||||
export SQUAWK_GITHUB_PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
|
||||
|
||||
$SQUAWK_BIN $SQUAWK_ARGS upload-to-github $(git diff --name-only origin/$GITHUB_BASE_REF...origin/$GITHUB_HEAD_REF 'crates/collab/migrations/*.sql' 'crates/collab/migrations_llm/*.sql')
|
||||
else
|
||||
$SQUAWK_BIN $SQUAWK_ARGS $(git ls-files --others crates/collab/migrations/*.sql crates/collab/migrations_llm/*.sql) $(git diff --name-only main crates/collab/migrations/*.sql crates/collab/migrations_llm/*.sql)
|
||||
fi
|
||||
Reference in New Issue
Block a user