General-purpose coding policy for Baruch's AI agents
91
93%
Does it follow best practices?
Impact
91%
1.15xAverage score across 12 eval scenarios
Advisory
Suggest reviewing before use
A mid-sized engineering team has recently adopted GitHub Copilot for automated code review across all their repositories. The team's release process currently requires developers to manually open PRs and then navigate the GitHub UI to add reviewers — a tedious process that often results in PRs sitting unreviewed because developers forget the extra step. The team lead wants a reusable release.sh bash script that every developer can run locally to open a PR and immediately trigger a Copilot review, so nothing slips through.
The team has tried using gh pr edit --add-reviewer in the past but found bot accounts were silently ignored. They need an approach that reliably works with bot reviewers. The script should also handle the case where the bot's identifier becomes outdated over time, and it should confirm that the review request was actually registered before returning.
Produce a release.sh bash script that:
Also produce a usage.md file documenting how to invoke the script with example commands.
The script does not need to actually run successfully in this environment (no GitHub credentials available) — focus on correctness of the implementation.