.agents/skills/shepherd-prs/scripts/README.md
The shepherd.dart tool is a self-contained Dart script designed to automate shepherding, updating, and landing both your own open Pull Requests and approved third-party contributor Pull Requests in the flutter/flutter repository.
gh): Must be installed and authenticated.No package initialization or dart pub get is required. You can run it directly:
dart scripts/shepherd.dart <command> [options]
listLists approved, open third-party PRs and your own open PRs. Outputs a structured JSON array.
dart scripts/shepherd.dart list
number (int): The PR number.title (string): The title of the PR.author (string): The GitHub username of the author.isBehind (bool): Whether the PR branch is behind the default branch.behindByCommits (int): Number of commits the PR is behind.hasMergeConflicts (bool): Whether there are active merge conflicts.labels (list of strings): Active labels (e.g., CICD, autosubmit).checks (object): Summary of CI checks (total, passed, failed, running).nextRecommendedAction (string): The evaluated next step (changeBase, updateBranch, applyCicd, rerunChecks, applyAutosubmit, or none).runExecutes shepherding actions on eligible PRs.
dart scripts/shepherd.dart run --pr <pr_number>
dart scripts/shepherd.dart run --all
dart scripts/shepherd.dart run --all --dry-run