this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 28 lines 987 B view raw
1#!/bin/sh 2set -e 3 4# Skip on branches without Rust code (e.g. crosslink/hub coordination branch) 5if [ ! -f Cargo.toml ]; then 6 exit 0 7fi 8 9# Link issue references in CHANGELOG.md 10if [ -f tools/crosslink-issue-renderer/link-changelog.sh ] && [ -f CHANGELOG.md ]; then 11 sh tools/crosslink-issue-renderer/link-changelog.sh https://issues.opake.app CHANGELOG.md 12 git add CHANGELOG.md 13fi 14 15# Rust checks (only if Rust files are staged) 16if git diff --cached --name-only | grep -q '\.rs$'; then 17 cargo fmt -- --check 18 cargo clippy --all-targets -- -D warnings 19 cargo check --target wasm32-unknown-unknown -p opake-core 20fi 21 22# Web frontend checks (only staged files under apps/web/src/) 23if git diff --cached --name-only | grep -q '^apps/web/src/'; then 24 STAGED_WEB=$(git diff --cached --name-only --diff-filter=d | grep '^apps/web/src/' | sed 's|^apps/web/||') 25 if [ -n "$STAGED_WEB" ]; then 26 (cd apps/web && bun run format:check && bunx eslint $STAGED_WEB) 27 fi 28fi