Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/autopilot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
uses: actions/checkout@v5
- name: Assign issue to copilot
run: |
open_pull_requests=$(gh pr list --state open --author 'app/copilot-swe-agent' --json number --jq 'length')
if [ "$open_pull_requests" -ge 3 ]; then
echo "Copilot already has $open_pull_requests open pull requests, skipping assignment."
exit 0
fi
issue_number=$(gh issue list --state open --label 'autopilot-candidate' --search 'no:assignee -is:blocked' --json number --jq '.[].number' | shuf -n 1)
gh issue edit $issue_number --add-assignee "@copilot"
env:
Expand Down
Loading