Skip to content

Visual Studio Code, rebuilt in Rust

Rust
595 B
Raw Blame
#!/bin/bash
# Reads a pull request's changed paths on stdin and prints `rust=true|false` for ci.yml's `changes` job:
# false only when every path is a document, an agent file or a picture no build reads. Any other path, and no path at all, is true.
set -euo pipefail
rust=false
count=0
while IFS= read -r path; do
  count=$((count + 1))
  case "$path" in
    native/* | port/patches/*) rust=true ;;
    *.md | docs/* | .agents/* | port/assets/* | port/plans/* | LICENSE.txt | NOTICE.txt | .github/FUNDING.yml) ;;
    *) rust=true ;;
  esac
done
[[ $count -gt 0 ]] || rust=true
echo "rust=$rust"